]> git.ipfire.org Git - thirdparty/linux.git/commit
perf build: Make libunwind opt-in rather than opt-out
authorIan Rogers <irogers@google.com>
Mon, 28 Oct 2024 19:36:19 +0000 (12:36 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 4 Nov 2024 19:32:35 +0000 (11:32 -0800)
commit13e17c9ff49119aa2826dbf1e130f34d4d7a55d9
treefe05f24833abadf657695cdf9a6b69504a03ad41
parentaa5c90601b531323f82ceb02b41a66974153b76f
perf build: Make libunwind opt-in rather than opt-out

Having multiple unwinding libraries makes the perf code harder to
understand and we have unused/untested code paths.

Perf made BPF support an opt-out rather than opt-in feature. As libbpf
has a libelf dependency, elfutils that provides libelf will also
provide libdw. When libdw is present perf will use libdw unwinding
rather than libunwind unwinding even if libunwind support is compiled
in.

Rather than have libunwind built into perf and never used, explicitly
disable the support and make it opt-in.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20241028193619.247727-1-irogers@google.com
Closes: https://lore.kernel.org/linux-perf-users/CAP-5=fUXkp-d7gkzX4eF+nbjb2978dZsiHZ9abGHN=BN1qAcbg@mail.gmail.com/
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Makefile.config
tools/perf/Makefile.perf
tools/perf/tests/make