Re: perf test case probe libc fails with latest Fedora34 glibc update, more info
From: Masami Hiramatsu <mhiramat@kernel.org>
Date: 2021-06-29 14:01:37
On Tue, 29 Jun 2021 09:21:19 +0200 Thomas Richter [off-list ref] wrote:
On 6/29/21 7:02 AM, Masami Hiramatsu wrote:quoted
On Fri, 25 Jun 2021 12:43:29 +0200 Thomas Richter [off-list ref] wrote:Masami, here is more info on this issue: # nm /usr/lib64/libc-2.33.so 00000000000a7f30 t __GI_memchr 00000000000a3730 t __GI_memcmp 00000000000a37e0 t __GI_memcpy 00000000000a39a0 t __GI_memmove 00000000000a37d0 t __GI_mempcpy 00000000000a8000 t __GI___rawmemchr 00000000000a6070 t __GI_stpcpy 000000000009d190 t __GI___strcasecmp_l 00000000000a67a0 t __GI_strcat 00000000000a6ec0 t __GI_strchr 00000000000a6b70 t __GI_strcmp 00000000000a5f70 t __GI_strcpy 00000000000a7c70 t __GI_strcspn 00000000000a5ad0 t __GI_strlen 000000000009d200 t __GI___strncasecmp_l 00000000000a6ce0 t __GI_strncmp 00000000000a62a0 t __GI_strncpy 00000000000a5d30 t __GI_strnlen 00000000000a73e0 t __GI_strrchr 00000000000b8e80 t __GI_wmemchr 0000000000111f60 T __memcpy_chk 0000000000111f80 T __memmove_chk 0000000000112040 T __stpcpy_chk 0000000000112100 T __strcpy_chk # These are the entries in the .symtab section and can be used by perf: # ./perf probe -vvv -f -x /usr/lib64/libc-2.33.so -a __strcpy_chk
Are there any output of the perf probe? It may report that the event is found by map (symbol) or debuginfo.
# ./perf probe -l probe_libc:__strcpy_chk (on __strcpy_chk@debug/strcpy_chk.c in /usr/lib64/libc-2.33.so) [root@t35lp46 perf]#
Thanks! So at least the symbols in .symtab works.
Hope this helps -- Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany -- Vorsitzender des Aufsichtsrats: Gregor Pillen Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
-- Masami Hiramatsu [off-list ref]