All of lore.kernel.org
 help / color / mirror / Atom feed
* perf script intel_pt decoding reading instructions from wrong shared lib
@ 2025-04-14 21:59 Todd Lipcon
  2026-06-02 19:32 ` Adrian Hunter
  0 siblings, 1 reply; 3+ messages in thread
From: Todd Lipcon @ 2025-04-14 21:59 UTC (permalink / raw)
  To: linux-perf-users

Hi folks,

It seems there may be a bug in perf-script when processing intel_pt.
Specifically, in order to reconstruct the instructions, it maps
instruction pointers back to DSO-relative addresses, and then reads
from the associated ELF files to find the actual instructions that
were traced.

In the case that the ELF file has an associated separate-debug ELF
file linked via `.gnu-debuglink` (common in some Linux distros), it
appears to be reading the debuginfo file instead of the shared library
that actually contains the code.

I've posted a simple repro here:
https://github.com/toddlipcon/perf-debuglink-bug/blob/main/repro.sh

I haven't dug into the code yet enough to see where it's going wrong,
but figured I would report to the users list first.

Thanks
Todd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-24 20:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 21:59 perf script intel_pt decoding reading instructions from wrong shared lib Todd Lipcon
2026-06-02 19:32 ` Adrian Hunter
2026-06-24 20:23   ` Namhyung Kim

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.