From: Guilherme Amadio <amadio@gentoo.org>
To: linux-perf-users@vger.kernel.org
Cc: acme@kernel.org, namhyung@kernel.org
Subject: perf test for inet_pton probe fails to match stacktrace
Date: Fri, 22 Nov 2024 22:35:16 +0100 [thread overview]
Message-ID: <Z0D5FDu/sErQ0V/2@gentoo.org> (raw)
Hi Arnaldo, Namhyung,
I've had this test fail for me since a while, so I'm reporting below
in case we can find a good solution to fix it on my system without
breaking other OSs. The test that fails is this:
gentoo ~ # perf test -vF inet_pton
--- start ---
ping 303105 [029] 47754.974977: probe_libc:inet_pton: (7f70ca48feb7)
7f70ca48feb7 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6)
7f70ca4a2517 gaih_inet+0x112 (/usr/lib64/libc.so.6)
FAIL: expected backtrace entry ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" got "7f70ca4a2517 gaih_inet+0x112 (/usr/lib64/libc.so.6)"
---- end ----
92: probe libc's inet_pton & backtrace it with ping : FAILED!
gentoo ~ # perf version
perf version 6.12
Here's why it fails. My stack traces has more than the test expects:
gentoo ~ # perf script | tac | sed -e /^ping/q | tac
ping 267392 [010] 42482.886216: probe_libc:inet_pton: (7f168d9b4eb7)
7f168d9b4eb7 __GI___inet_pton+0x0 (/usr/lib64/libc.so.6)
7f168d9c7517 gaih_inet+0x112 (/usr/lib64/libc.so.6)
7f168d9c8b73 getaddrinfo+0x133 (/usr/lib64/libc.so.6)
55947171a518 [unknown] (/usr/bin/ping)
7f168d8d6a72 __libc_start_call_main+0x7a (/usr/lib64/libc.so.6)
7f168d8d6b29 __libc_start_main@@GLIBC_2.34+0x84 (/usr/lib64/libc.so.6)
55947171ac55 [unknown] (/usr/bin/ping)
Likely this is due to how I compile glibc:
gentoo ~ # cat /var/db/pkg/sys-libs/glibc-2.40-r5/CFLAGS
-Og -march=native -Wl,--build-id -gdwarf-4 -fno-builtin-strlen -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
If you could suggest a way to fix this, I'd appreciate it.
Best regards,
-Guilherme
next reply other threads:[~2024-11-22 21:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 21:35 Guilherme Amadio [this message]
2024-11-24 10:50 ` perf test for inet_pton probe fails to match stacktrace Leo Yan
2024-11-25 13:12 ` Guilherme Amadio
2024-11-26 5:08 ` Namhyung Kim
2024-11-26 10:27 ` Leo Yan
2024-11-26 16:39 ` Arnaldo Carvalho de Melo
2024-11-26 18:27 ` Leo Yan
2024-11-26 16:27 ` Arnaldo Carvalho de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z0D5FDu/sErQ0V/2@gentoo.org \
--to=amadio@gentoo.org \
--cc=acme@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.