Skip to content

Commit ddbfb6f

Browse files
captain5050namhyung
authored andcommitted
perf build: Remove PERF_HAVE_DWARF_REGS
PERF_HAVE_DWARF_REGS was true when an architecture had a dwarf-regs.c file. There are no more architecture dwarf-regs.c files, selection is done using constants from the ELF file rather than conditional compilation. When removing PERF_HAVE_DWARF_REGS was the only variable in the Makefile, remove the Makefile. Add missing SPDX for RISC-V Makefile. Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Anup Patel <anup@brainfault.org> Cc: Yang Jihong <yangjihong@bytedance.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: David S. Miller <davem@davemloft.net> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Shenlin Liang <liangshenlin@eswincomputing.com> Cc: Nick Terrell <terrelln@fb.com> Cc: Guilherme Amadio <amadio@gentoo.org> Cc: Steinar H. Gunderson <sesse@google.com> Cc: Changbin Du <changbin.du@huawei.com> Cc: Alexander Lobakin <aleksander.lobakin@intel.com> Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: Guo Ren <guoren@kernel.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Will Deacon <will@kernel.org> Cc: James Clark <james.clark@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Cc: Chen Pei <cp0613@linux.alibaba.com> Cc: Leo Yan <leo.yan@linux.dev> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Aditya Gupta <adityag@linux.ibm.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-riscv@lists.infradead.org Cc: Bibo Mao <maobibo@loongson.cn> Cc: John Garry <john.g.garry@oracle.com> Cc: Atish Patra <atishp@rivosinc.com> Cc: Dima Kogan <dima@secretsauce.net> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Dr. David Alan Gilbert <linux@treblig.org> Cc: linux-csky@vger.kernel.org Link: https://lore.kernel.org/r/20241108234606.429459-21-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 3ef6b89 commit ddbfb6f

File tree

13 files changed

+5
-51
lines changed

13 files changed

+5
-51
lines changed

tools/perf/Makefile.config

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -559,15 +559,10 @@ ifndef NO_LIBELF
559559
endif
560560

561561
ifndef NO_LIBDW
562-
ifeq ($(origin PERF_HAVE_DWARF_REGS), undefined)
563-
$(warning DWARF register mappings have not been defined for architecture $(SRCARCH), DWARF support disabled)
564-
NO_LIBDW := 1
565-
else
566-
CFLAGS += -DHAVE_LIBDW_SUPPORT $(LIBDW_CFLAGS)
567-
LDFLAGS += $(LIBDW_LDFLAGS)
568-
EXTLIBS += ${DWARFLIBS}
569-
$(call detected,CONFIG_LIBDW)
570-
endif # PERF_HAVE_DWARF_REGS
562+
CFLAGS += -DHAVE_LIBDW_SUPPORT $(LIBDW_CFLAGS)
563+
LDFLAGS += $(LIBDW_LDFLAGS)
564+
EXTLIBS += ${DWARFLIBS}
565+
$(call detected,CONFIG_LIBDW)
571566
endif # NO_LIBDW
572567

573568
ifndef NO_LIBBPF

tools/perf/arch/arm/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
52
PERF_HAVE_JITDUMP := 1

tools/perf/arch/arm64/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
52
PERF_HAVE_JITDUMP := 1
63
HAVE_KVM_STAT_SUPPORT := 1
74

tools/perf/arch/csky/Makefile

Lines changed: 0 additions & 4 deletions
This file was deleted.

tools/perf/arch/loongarch/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
52
PERF_HAVE_JITDUMP := 1
63
HAVE_KVM_STAT_SUPPORT := 1
74

tools/perf/arch/mips/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
5-
62
# Syscall table generation for perf
73
out := $(OUTPUT)arch/mips/include/generated/asm
84
header := $(out)/syscalls_n64.c

tools/perf/arch/powerpc/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
5-
62
HAVE_KVM_STAT_SUPPORT := 1
73
PERF_HAVE_JITDUMP := 1
84

tools/perf/arch/riscv/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ifndef NO_LIBDW
2-
PERF_HAVE_DWARF_REGS := 1
3-
endif
1+
# SPDX-License-Identifier: GPL-2.0
42
PERF_HAVE_JITDUMP := 1
53
HAVE_KVM_STAT_SUPPORT := 1
64

tools/perf/arch/s390/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ifndef NO_LIBDW
3-
PERF_HAVE_DWARF_REGS := 1
4-
endif
52
HAVE_KVM_STAT_SUPPORT := 1
63
PERF_HAVE_JITDUMP := 1
74

tools/perf/arch/sh/Makefile

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)