]> git.baikalelectronics.ru Git - kernel.git/commit
perf tests record: Allow for 'sleep' being 'coreutils'
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 22 Nov 2018 13:55:45 +0000 (15:55 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 17:54:26 +0000 (14:54 -0300)
commit00d920c77c4325c64ff831dbd4112af6e4273c57
treee14b84850e648b037fa339684afc10740c54d02e
parentf88e96972042a297a1939905245084f25658c32f
perf tests record: Allow for 'sleep' being 'coreutils'

If the 'sleep' command is provided by coreutils, then the "PERF_RECORD_*
events & perf_sample fields" test will fail because the MMAP name is
'coreutils' not 'sleep', and there is an extra COMM event. Fix the test
to detect that case.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20181122135545.16295-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/perf-record.c