aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2015-07-21 09:44:05 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-07-24 01:51:14 +0000
commit06b234ec26fde8d0fce54030fe0858e218636410 (patch)
treef67c8fc915bd7ee20140db6a0dc3988518d3a76a /tools/perf/util/python.c
parentperf record: Add option --switch-events to select PERF_RECORD_SWITCH events (diff)
downloadkernel-06b234ec26fde8d0fce54030fe0858e218636410.tar.gz
kernel-06b234ec26fde8d0fce54030fe0858e218636410.zip
perf script: Don't assume evsel position of tracking events
The tracking event does not have to be the first event so replace perf_evlist__first() with perf_evlist__id2evsel() which uses the event ID to find the correct evsel. Signed-off-by: Adrian Hunter <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Jiri Olsa <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Pawel Moll <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions