diff options
| author | Wang Nan <[email protected]> | 2015-08-26 10:57:44 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-08-26 13:40:34 +0000 |
| commit | 6c6e024f0a62a6a08c06002fd3caa2307cc54fd0 (patch) | |
| tree | 670c5540652aa322d53988ab6ba29a6129d86937 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | perf probe: Fix list result when address is zero (diff) | |
| download | kernel-6c6e024f0a62a6a08c06002fd3caa2307cc54fd0.tar.gz kernel-6c6e024f0a62a6a08c06002fd3caa2307cc54fd0.zip | |
perf probe: Fix error reported when offset without function
This patch fixes a bug that, when offset is provided but function is
lost, parse_perf_probe_point() will give a "" string as function name,
so the checking code at the end of parse_perf_probe_point() become
useless. For example:
# perf probe +0x1234
Failed to find symbol in kernel
Error: Failed to add events.
After this patch:
# perf probe +0x1234
Semantic error :Offset requires an entry function.
Error: Command Parse Error.
Signed-off-by: Wang Nan <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
