diff options
author | Jiri Olsa <[email protected]> | 2012-04-04 22:21:31 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-04-05 18:58:45 -0300 |
commit | 8493fe1daf15324eb13a4cc2f94e258716daa568 (patch) | |
tree | 31cdd2296154a6288b643cda10af61b78235f4a1 /tools/perf/scripts/python/sched-migration.py | |
parent | 63fa471dd49e9c9ce029d910d1024330d9b1b145 (diff) |
perf hists browser: Fix NULL deref in hists browsing code
If there's an event with no samples in data file, the perf report
command can segfault after entering the event details menu.
Following steps reproduce the issue:
# ./perf record -e syscalls:sys_enter_kexec_load,syscalls:sys_enter_mmap ls
# ./perf report
# enter '0 syscalls:sys_enter_kexec_load' menu
# pres ENTER twice
Above steps are valid assuming ls wont run kexec.. ;)
The check for sellection to be NULL is missing. The fix makes sure it's
being check. Above steps now endup with menu being displayed allowing
'Exit' as the only option.
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Frederic Weisbecker <[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: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions