forked from Minki/linux
e9add8bac6
.. and other related fields that do not need to be enabled for events that have sampling leader. It fixes the perf top usage Ingo reported broken: # perf top -e '{cycles,msr/aperf/}:S' The 'msr/aperf/' event is configured for write_back sampling, which is not allowed by the MSR PMU, so it fails to create the event. Adjusting related attr test. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20180423090823.32309-6-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
41 lines
541 B
Plaintext
41 lines
541 B
Plaintext
[config]
|
|
command = record
|
|
args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1
|
|
ret = 1
|
|
|
|
[event-1:base-record]
|
|
fd=1
|
|
group_fd=-1
|
|
sample_type=343
|
|
read_format=12
|
|
inherit=0
|
|
|
|
[event-2:base-record]
|
|
fd=2
|
|
group_fd=1
|
|
|
|
# cache-misses
|
|
type=0
|
|
config=3
|
|
|
|
# default | PERF_SAMPLE_READ
|
|
sample_type=343
|
|
|
|
# PERF_FORMAT_ID | PERF_FORMAT_GROUP
|
|
read_format=12
|
|
task=0
|
|
mmap=0
|
|
comm=0
|
|
enable_on_exec=0
|
|
disabled=0
|
|
|
|
# inherit is disabled for group sampling
|
|
inherit=0
|
|
|
|
# sampling disabled
|
|
sample_freq=0
|
|
sample_period=0
|
|
freq=0
|
|
write_backward=0
|
|
sample_id_all=0
|