diff options
author | Masami Hiramatsu | 2016-07-18 18:12:41 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2016-07-19 00:46:34 +0200 |
commit | e70493429bb1acaad829caae01c61dd7056fe671 (patch) | |
tree | df9148b84c01f2ab1a24cfa4c1534368b316febd /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | perf cpu_map: Add more helpers (diff) | |
download | kernel-qcow2-linux-e70493429bb1acaad829caae01c61dd7056fe671.tar.gz kernel-qcow2-linux-e70493429bb1acaad829caae01c61dd7056fe671.tar.xz kernel-qcow2-linux-e70493429bb1acaad829caae01c61dd7056fe671.zip |
perf probe: Warn unmatched function filter correctly
Warn unmatched function filter correctly instead of warning
"symbol-loading error", since that can be a filter issue.
From the technical point of view, this adds a filter chech in map__load
and if there is a filter, it returns -2 (filter-out), instead of -1
(error), and perf-probe checks it and change message.
E.g. without this fix:
# perf probe -F rt_sp*
no symbols found in [kernel.kallsyms], maybe install a debug package?
Failed to load symbols in kernel
With this fix:
# perf probe -F rt_sp*
no symbols passed the given filter.
Failed to find symbols matched to "rt_sp*"
Error: Failed to show functions.
Reported-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/146885835596.16106.2293540792775552481.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions