diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2010-02-07 13:46:16 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-02-07 16:30:21 +0000 |
| commit | 5f485364365f00853e5249cb3ae31f876936b552 (patch) | |
| tree | 52b2bf9ef3201b6190a5f2abcb398db3e139cb38 /tools/perf/util/trace-event-scripting.c | |
| parent | perf top: Fix annotate for userspace (diff) | |
| download | kernel-5f485364365f00853e5249cb3ae31f876936b552.tar.gz kernel-5f485364365f00853e5249cb3ae31f876936b552.zip | |
perf top: Use address pattern in lookup_sym_source
Because we may have aliases, like __GI___strcoll_l in
/lib64/libc-2.10.2.so that appears in objdump as:
$ objdump --start-address=0x0000003715a86420 \
--stop-address=0x0000003715a872dc -dS /lib64/libc-2.10.2.so
0000003715a86420 <__strcoll_l>:
3715a86420: 55 push %rbp
3715a86421: 48 89 e5 mov %rsp,%rbp
3715a86424: 41 57 push %r15
[root@doppio linux-2.6-tip]#
So look for the address exactly at the start of the line instead
so that annotation can work for in these cases.
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frédéric Weisbecker <[email protected]>
Cc: Kirill Smelkov <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
