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

perf parse-regs: Remove unused macros PERF_REG_{IP|SP}

The macros PERF_REG_{IP|SP} have been replaced by using functions
perf_arch_reg_{ip|sp}(), remove them!

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Eric Lin <eric.lin@sifive.com>
Cc: Fangrui Song <maskray@google.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Ivan Babrou <ivan@cloudflare.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Ming Wang <wangming01@loongson.cn>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-csky@vger.kernel.org
Cc: linux-riscv@lists.infradead.org
Link: https://lore.kernel.org/r/20230606014559.21783-5-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Leo Yan and committed by
Arnaldo Carvalho de Melo
6a87e0f0 d8f69fb6

-24
-3
tools/perf/arch/arm/include/perf_regs.h
··· 12 12 #define PERF_REGS_MAX PERF_REG_ARM_MAX 13 13 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 14 14 15 - #define PERF_REG_IP PERF_REG_ARM_PC 16 - #define PERF_REG_SP PERF_REG_ARM_SP 17 - 18 15 #endif /* ARCH_PERF_REGS_H */
-3
tools/perf/arch/arm64/include/perf_regs.h
··· 14 14 #define PERF_REGS_MAX PERF_REG_ARM64_MAX 15 15 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64 16 16 17 - #define PERF_REG_IP PERF_REG_ARM64_PC 18 - #define PERF_REG_SP PERF_REG_ARM64_SP 19 - 20 17 #endif /* ARCH_PERF_REGS_H */
-3
tools/perf/arch/csky/include/perf_regs.h
··· 12 12 #define PERF_REGS_MAX PERF_REG_CSKY_MAX 13 13 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 14 14 15 - #define PERF_REG_IP PERF_REG_CSKY_PC 16 - #define PERF_REG_SP PERF_REG_CSKY_SP 17 - 18 15 #endif /* ARCH_PERF_REGS_H */
-2
tools/perf/arch/loongarch/include/perf_regs.h
··· 7 7 #include <asm/perf_regs.h> 8 8 9 9 #define PERF_REGS_MAX PERF_REG_LOONGARCH_MAX 10 - #define PERF_REG_IP PERF_REG_LOONGARCH_PC 11 - #define PERF_REG_SP PERF_REG_LOONGARCH_R3 12 10 13 11 #define PERF_REGS_MASK ((1ULL << PERF_REG_LOONGARCH_MAX) - 1) 14 12
-2
tools/perf/arch/mips/include/perf_regs.h
··· 7 7 #include <asm/perf_regs.h> 8 8 9 9 #define PERF_REGS_MAX PERF_REG_MIPS_MAX 10 - #define PERF_REG_IP PERF_REG_MIPS_PC 11 - #define PERF_REG_SP PERF_REG_MIPS_R29 12 10 13 11 #define PERF_REGS_MASK ((1ULL << PERF_REG_MIPS_MAX) - 1) 14 12
-3
tools/perf/arch/powerpc/include/perf_regs.h
··· 16 16 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 17 17 #endif 18 18 19 - #define PERF_REG_IP PERF_REG_POWERPC_NIP 20 - #define PERF_REG_SP PERF_REG_POWERPC_R1 21 - 22 19 #endif /* ARCH_PERF_REGS_H */
-3
tools/perf/arch/riscv/include/perf_regs.h
··· 16 16 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_32 17 17 #endif 18 18 19 - #define PERF_REG_IP PERF_REG_RISCV_PC 20 - #define PERF_REG_SP PERF_REG_RISCV_SP 21 - 22 19 #endif /* ARCH_PERF_REGS_H */
-3
tools/perf/arch/s390/include/perf_regs.h
··· 11 11 #define PERF_REGS_MAX PERF_REG_S390_MAX 12 12 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64 13 13 14 - #define PERF_REG_IP PERF_REG_S390_PC 15 - #define PERF_REG_SP PERF_REG_S390_R15 16 - 17 14 #endif /* ARCH_PERF_REGS_H */
-2
tools/perf/arch/x86/include/perf_regs.h
··· 20 20 #define PERF_REGS_MASK (((1ULL << PERF_REG_X86_64_MAX) - 1) & ~REG_NOSUPPORT) 21 21 #define PERF_SAMPLE_REGS_ABI PERF_SAMPLE_REGS_ABI_64 22 22 #endif 23 - #define PERF_REG_IP PERF_REG_X86_IP 24 - #define PERF_REG_SP PERF_REG_X86_SP 25 23 26 24 #endif /* ARCH_PERF_REGS_H */