diff options
author | Namhyung Kim <[email protected]> | 2012-02-20 10:47:26 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-02-29 18:29:44 -0300 |
commit | 30e68bcc67e41ab6dab4e4e1efc7ea8ca893c0af (patch) | |
tree | 49934bc86d7df5a86311a1123c08f3a389e8b2aa /tools/perf/scripts/python/netdev-times.py | |
parent | 30ce2f7eef095d1b8d070740f1948629814fe3c7 (diff) |
perf evlist: Return first evsel for non-sample event on old kernel
On old kernels that don't support sample_id_all feature,
perf_evlist__id2evsel() returns NULL for non-sampling events.
This breaks perf top when multiple events are given on command line. Fix
it by using first evsel in the evlist. This will also prevent getting
the same (potential) problem in such new tool/ old kernel combo.
Suggested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions