Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tests: Make attr script test event cpu

Make attr script to check for 'cpu' when testing event properties. This
will allow us to check the '-C X' option for both record and stat
commands.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1361785972-7431-4-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
c21d0030 097c8758

+3
+1
tools/perf/tests/attr.py
··· 24 24 25 25 class Event(dict): 26 26 terms = [ 27 + 'cpu', 27 28 'flags', 28 29 'type', 29 30 'size',
+1
tools/perf/tests/attr/base-record
··· 2 2 fd=1 3 3 group_fd=-1 4 4 flags=0 5 + cpu=* 5 6 type=0|1 6 7 size=96 7 8 config=0
+1
tools/perf/tests/attr/base-stat
··· 2 2 fd=1 3 3 group_fd=-1 4 4 flags=0 5 + cpu=* 5 6 type=0 6 7 size=96 7 8 config=0