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) <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Anup Patel <[email protected]> Cc: Yang Jihong <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: David S. Miller <[email protected]> Cc: Albert Ou <[email protected]> Cc: Shenlin Liang <[email protected]> Cc: Nick Terrell <[email protected]> Cc: Guilherme Amadio <[email protected]> Cc: Steinar H. Gunderson <[email protected]> Cc: Changbin Du <[email protected]> Cc: Alexander Lobakin <[email protected]> Cc: Przemek Kitszel <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Guo Ren <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Will Deacon <[email protected]> Cc: James Clark <[email protected]> Cc: Mike Leach <[email protected]> Cc: Chen Pei <[email protected]> Cc: Leo Yan <[email protected]> Cc: Oliver Upton <[email protected]> Cc: Aditya Gupta <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Bibo Mao <[email protected]> Cc: John Garry <[email protected]> Cc: Atish Patra <[email protected]> Cc: Dima Kogan <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Dr. David Alan Gilbert <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
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.

tools/perf/arch/sparc/Makefile

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

tools/perf/arch/x86/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
HAVE_KVM_STAT_SUPPORT := 1
63
PERF_HAVE_JITDUMP := 1
74

tools/perf/arch/xtensa/Makefile

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

0 commit comments

Comments
 (0)