diff options
| author | He Kuang <[email protected]> | 2015-05-11 09:25:04 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-05-12 09:59:50 -0300 |
| commit | 7d5eaba9b33682b734e3a79c21c4a9a5f91624b1 (patch) | |
| tree | a8dcdfd13dde51b48d41cb1c6747e98ae326db34 /tools/perf/scripts/python | |
| parent | 349e8d2611316cce11c0b9d0830ebb585c9b82b8 (diff) | |
perf probe: Show better error message when failed to find variable
Indicate to check variable location range in error message when we got
failed to find the variable.
Before this patch:
$ perf probe --add 'generic_perform_write+118 bytes'
Failed to find the location of bytes at this address.
Perhaps, it has been optimized out.
Error: Failed to add events.
After this patch:
$ perf probe --add 'generic_perform_write+118 bytes'
Failed to find the location of the 'bytes' variable at this address.
Perhaps it has been optimized out.
Use -V with the --range option to show 'bytes' location range.
Error: Failed to add events.
Signed-off-by: He Kuang <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Improve the error message based on lkml thread ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions