linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can perf drop libunwind support
@ 2024-10-23 21:57 Ian Rogers
  2024-10-28  3:13 ` Masami Hiramatsu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ian Rogers @ 2024-10-23 21:57 UTC (permalink / raw)
  To: linux-perf-users, Arnaldo Carvalho de Melo, Namhyung Kim,
	Masami Hiramatsu, Jiri Olsa, Adrian Hunter

Hi,

perf wants to build with BPF support these days. libbpf has a
dependency on libelf, part of elfutils. libdw is also part of elfutils
and amongst other things provides unwinding support. My understanding
is libdw unwinding is used by perf in preference to libunwind when
present. My suspicion is that libunwind is being feature tested,
linked against but then seldom or never used. Given this could perf
drop libunwind support in order to simplify the code base?

Possible savings:
 - remove libunwind's 8 feature tests
 - removal of 10 arch or not libunwind C files in perf
 - removal of libunwind #ifdef-ed code throughout common files.

Thanks,
Ian

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

end of thread, other threads:[~2024-10-29 23:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-23 21:57 Can perf drop libunwind support Ian Rogers
2024-10-28  3:13 ` Masami Hiramatsu
2024-10-28 16:03 ` Arnaldo Carvalho de Melo
2024-10-28 17:01   ` Frederic Weisbecker
2024-10-28 19:10     ` Ian Rogers
2024-10-29 23:50 ` Namhyung Kim

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).