diff options
author | Masami Hiramatsu <[email protected]> | 2021-07-04 00:35:27 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-07 10:28:10 -0300 |
commit | 87704345cc602a845be713abdc679d65dc600431 (patch) | |
tree | d12a9c0ef9be859c6116a617b7e15f1cbfc7cf86 /scripts/gdb/linux/timerlist.py | |
parent | eb4717f733b5941a29ea4e0aec3227a0e0770487 (diff) |
perf symbol-elf: Decode dynsym even if symtab exists
In Fedora34, libc-2.33.so has both .dynsym and .symtab sections and
most of (not all) symbols moved to .dynsym. In this case, perf only
decode the symbols in .symtab, and perf probe can not list up the
functions in the library.
To fix this issue, decode both .symtab and .dynsym sections.
Without this fix,
-----
$ ./perf probe -x /usr/lib64/libc-2.33.so -F
@plt
@plt
calloc@plt
free@plt
malloc@plt
memalign@plt
realloc@plt
-----
With this fix.
-----
$ ./perf probe -x /usr/lib64/libc-2.33.so -F
@plt
@plt
a64l
abort
abs
accept
accept4
access
acct
addmntent
-----
Reported-by: Thomas Richter <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Acked-by: Thomas Richter <[email protected]>
Cc: Heiko Carstens <[email protected]>
Cc: Stefan Liebler <[email protected]>
Cc: Sven Schnelle <[email protected]>
Link: http://lore.kernel.org/lkml/162532652681.393143.10163733179955267999.stgit@devnote2
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions