linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Call graph dwarf unwinding fails with lld
@ 2022-05-24 20:49 Travis Downs
  2022-05-25  7:50 ` Ian Rogers
  0 siblings, 1 reply; 8+ messages in thread
From: Travis Downs @ 2022-05-24 20:49 UTC (permalink / raw)
  To: linux-perf-users

I have been tracking down an issue locally where `perf record
--call-graph=dwarf` stopped working in the sense that unwinding always
failed.

Turns out it was related to `lld` - binaries linked with `lld` don't
seem to unwind correctly with `--call-graph=dwarf`. I've confirmed
that the `.eh_frame` sections are there, but I guess they are
different after using this linker.

Has anyone run into this?

There's an open LLVM issue at https://github.com/llvm/llvm-project/issues/53156

... but no activity since it was filed, though it is not clear if the
problem is really with lld or the unwinders.

In a related question: perf supports more than one DWARF unwinding
implementation, depending on what libraries are available at build
time, right? Is there a way to select which unwinder is used at
runtime?

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

end of thread, other threads:[~2022-05-27  6:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-24 20:49 Call graph dwarf unwinding fails with lld Travis Downs
2022-05-25  7:50 ` Ian Rogers
2022-05-25  8:10   ` Fāng-ruì Sòng
2022-05-26  3:55     ` Ian Rogers
2022-05-26  4:16   ` Fangrui Song
2022-05-26  4:25     ` Ian Rogers
2022-05-26 14:39       ` Arnaldo Carvalho de Melo
2022-05-27  6:05         ` Fāng-ruì Sòng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).