aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-06-17 17:32:53 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-06-17 18:57:20 +0000
commitfdbdd7e8580eac9bdafa532746c865644d125e34 (patch)
tree4741ddbc5f3a588f9743348aa0a612cfca2d3cc2 /tools/perf/scripts/python/compaction-times.py
parentperf trace: Fixup pointer arithmetic when consuming augmented syscall args (diff)
downloadkernel-fdbdd7e8580eac9bdafa532746c865644d125e34.tar.gz
kernel-fdbdd7e8580eac9bdafa532746c865644d125e34.zip
perf evsel: Make perf_evsel__name() accept a NULL argument
In which case it simply returns "unknown", like when it can't figure out the evsel->name value. This makes this code more robust and fixes a problem in 'perf trace' where a NULL evsel was being passed to a routine that only used the evsel for printing its name when a invalid syscall id was passed. Reported-by: Leo Yan <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions