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)
commit2aac9f9d5b85da1cc77c51d78aa41012244f7518
treee14b84850e648b037fa339684afc10740c54d02e
parent0631ca3a6e6edd23a2ca7cab707d1abf291a097d
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