diff options
author | Masami Hiramatsu <[email protected]> | 2014-09-17 08:41:01 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-09-17 18:01:43 -0300 |
commit | 664fee3dc37939bb8010906913fa9dbc52abb587 (patch) | |
tree | 72972d1684a1a4930039cfae22d0799aad8738f7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 2b394bc4468c2f5e6814a8dbb2a923c0448f8497 (diff) |
perf probe: Do not use dwfl_module_addrsym if dwarf_diename finds symbol name
Do not use dwfl_module_addrsym if dwarf_diename can find the symbol
name, since dwfl_module_addrsym can be failed on shared libraries.
Without this patch
----
$ perf probe -x ../lib/traceevent/libtraceevent.so -V create_arg_op
Failed to find symbol at 0x11df1
Failed to find the address of create_arg_op
Error: Failed to show vars.
----
With this patch
----
$ perf probe -x ../lib/traceevent/libtraceevent.so -V create_arg_op
Available variables at create_arg_op
@<create_arg_op+0>
enum filter_op_type btype
struct filter_arg* arg
----
This bug was reported on [email protected].
Reported-by: david lerner <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Cc: david lerner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://permalink.gmane.org/gmane.linux.kernel.perf.user/1691
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions