Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf build: Remove NO_LIBDW_DWARF_UNWIND option

Libdw unwinding support is present for every architecture that has a
perf_regs.h - perf registers are needed for the initial frame to
unwind.

Elfutils also supports SPARC, ARC and m68k but there is no support in
the Linux kernel for perf registers on these architectures.

As the perf supported DWARF unwinding architectures are a subset of the
elfutils ones, remove NO_LIBDW_DWARF_UNWIND as there isn't a case of
elfutils lacking the support need for perf.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Aditya Bodkhe <aditya.b1@linux.ibm.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.ibm.com>
Cc: Chun-Tse Shao <ctshao@google.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Haibo Xu <haibo1.xu@intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Krzysztof Łopatowski <krzysztof.m.lopatowski@gmail.com>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Mark Wielaard <mark@klomp.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <pjw@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sergei Trofimovich <slyich@gmail.com>
Cc: Shimin Guo <shimin.guo@skydio.com>
Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
Cc: Thomas Falcon <thomas.falcon@intel.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
2e919157 406b51a9

+3 -22
+1 -18
tools/perf/Makefile.config
··· 118 118 endif 119 119 endif 120 120 121 - # So far there's only x86 and arm libdw unwind support merged in perf. 122 - # Disable it on all other architectures in case libdw unwind 123 - # support is detected in system. Add supported architectures 124 - # to the check. 125 - ifneq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc s390 csky riscv loongarch)) 126 - NO_LIBDW_DWARF_UNWIND := 1 127 - endif 128 - 129 121 ifneq ($(LIBUNWIND),1) 130 122 NO_LIBUNWIND := 1 131 123 endif ··· 448 456 ifdef NO_LIBELF 449 457 NO_LIBDW := 1 450 458 NO_LIBUNWIND := 1 451 - NO_LIBDW_DWARF_UNWIND := 1 452 459 NO_LIBBPF := 1 453 460 NO_JVMTI := 1 454 461 else ··· 493 502 ifndef NO_AIO 494 503 CFLAGS += -DHAVE_AIO_SUPPORT 495 504 endif 496 - endif 497 - 498 - ifdef NO_LIBDW 499 - NO_LIBDW_DWARF_UNWIND := 1 500 505 endif 501 506 502 507 ifeq ($(feature-scandirat), 1) ··· 744 757 745 758 # setup DWARF post unwinder 746 759 ifdef NO_LIBUNWIND 747 - ifdef NO_LIBDW_DWARF_UNWIND 760 + ifdef NO_LIBDW 748 761 $(warning Disabling post unwind, no support found.) 749 762 dwarf-post-unwind := 0 750 763 else ··· 754 767 else 755 768 dwarf-post-unwind-text := libunwind 756 769 $(call detected,CONFIG_LIBUNWIND) 757 - # Enable libunwind support by default. 758 - ifndef NO_LIBDW_DWARF_UNWIND 759 - NO_LIBDW_DWARF_UNWIND := 1 760 - endif 761 770 endif 762 771 763 772 ifeq ($(dwarf-post-unwind),1)
+1 -2
tools/perf/tests/make
··· 83 83 make_no_libelf := NO_LIBELF=1 84 84 make_no_libdw := NO_LIBDW=1 85 85 make_libunwind := LIBUNWIND=1 86 - make_no_libdw_dwarf_unwind := NO_LIBDW_DWARF_UNWIND=1 87 86 make_no_backtrace := NO_BACKTRACE=1 88 87 make_no_libcapstone := NO_CAPSTONE=1 89 88 make_no_libnuma := NO_LIBNUMA=1 ··· 119 120 make_minimal := NO_LIBPYTHON=1 NO_GTK2=1 120 121 make_minimal += NO_DEMANGLE=1 NO_LIBELF=1 NO_BACKTRACE=1 121 122 make_minimal += NO_LIBNUMA=1 NO_LIBBIONIC=1 NO_LIBDW=1 122 - make_minimal += NO_LIBDW_DWARF_UNWIND=1 NO_LIBBPF=1 123 + make_minimal += NO_LIBBPF=1 123 124 make_minimal += NO_SDT=1 NO_JVMTI=1 NO_LIBZSTD=1 124 125 make_minimal += NO_LIBCAP=1 NO_CAPSTONE=1 125 126
+1 -2
tools/perf/util/Build
··· 223 223 perf-util-$(CONFIG_LIBDW) += debuginfo.o 224 224 perf-util-$(CONFIG_LIBDW) += annotate-data.o 225 225 perf-util-$(CONFIG_LIBDW) += libdw.o 226 + perf-util-$(CONFIG_LIBDW) += unwind-libdw.o 226 227 227 - perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw.o 228 - perf-util-$(CONFIG_LIBDW_DWARF_UNWIND) += unwind-libdw-arch/ 229 228 perf-util-$(CONFIG_LOCAL_LIBUNWIND) += unwind-libunwind-local.o 230 229 perf-util-$(CONFIG_LIBUNWIND) += unwind-libunwind.o 231 230 perf-util-$(CONFIG_LIBUNWIND_X86) += libunwind/x86_32.o