diff options
author | Adrian Hunter | 2015-07-21 11:44:05 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2015-07-24 03:51:14 +0200 |
commit | 06b234ec26fde8d0fce54030fe0858e218636410 (patch) | |
tree | f67c8fc915bd7ee20140db6a0dc3988518d3a76a /tools/build/Makefile.feature | |
parent | perf record: Add option --switch-events to select PERF_RECORD_SWITCH events (diff) | |
download | kernel-qcow2-linux-06b234ec26fde8d0fce54030fe0858e218636410.tar.gz kernel-qcow2-linux-06b234ec26fde8d0fce54030fe0858e218636410.tar.xz kernel-qcow2-linux-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 <adrian.hunter@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1437471846-26995-5-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build/Makefile.feature')
0 files changed, 0 insertions, 0 deletions