diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-17 19:32:53 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-17 20:57:20 +0200 |
commit | fdbdd7e8580eac9bdafa532746c865644d125e34 (patch) | |
tree | 4741ddbc5f3a588f9743348aa0a612cfca2d3cc2 /tools/perf/Makefile.config | |
parent | perf trace: Fixup pointer arithmetic when consuming augmented syscall args (diff) | |
download | linux-fdbdd7e8580eac9bdafa532746c865644d125e34.tar.xz linux-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 <leo.yan@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-f30ztaasku3z935cn3ak3h53@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile.config')
0 files changed, 0 insertions, 0 deletions