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 arch: Update arch headers to use relative UAPI paths

The architectural specific headers perf_regs.h currently rely on the
host architecture's 'asm/perf_regs.h'.

This can lead to compilation inconsistencies or failures when including
and building perf for a target architecture that differs from the host's
architecture.

Explicitly point to the UAPI headers within the tools source tree using
relative paths.

This ensures that perf is always built against the intended
architecture.

No functional changes are intended.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Guo Ren <guoren@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Mike Leach <mike.leach@linaro.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: Thomas Falcon <thomas.falcon@intel.com>
Cc: Will Deacon <will@kernel.org>
Cc: Xudong Hao <xudong.hao@intel.com>
Cc: Zide Chen <zide.chen@intel.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Dapeng Mi and committed by
Arnaldo Carvalho de Melo
e716e69c c2e28ae2

+9 -9
+1 -1
tools/perf/arch/arm/include/perf_regs.h
··· 4 4 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 - #include <asm/perf_regs.h> 7 + #include "../../../../arch/arm/include/uapi/asm/perf_regs.h" 8 8 9 9 void perf_regs_load(u64 *regs); 10 10
+1 -1
tools/perf/arch/arm64/include/perf_regs.h
··· 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 7 #define perf_event_arm_regs perf_event_arm64_regs 8 - #include <asm/perf_regs.h> 8 + #include "../../../../arch/arm64/include/uapi/asm/perf_regs.h" 9 9 #undef perf_event_arm_regs 10 10 11 11 void perf_regs_load(u64 *regs);
+1 -1
tools/perf/arch/csky/include/perf_regs.h
··· 6 6 7 7 #include <stdlib.h> 8 8 #include <linux/types.h> 9 - #include <asm/perf_regs.h> 9 + #include "../../../../arch/csky/include/uapi/asm/perf_regs.h" 10 10 11 11 #define PERF_REGS_MASK ((1ULL << PERF_REG_CSKY_MAX) - 1) 12 12 #define PERF_REGS_MAX PERF_REG_CSKY_MAX
+1 -1
tools/perf/arch/loongarch/include/perf_regs.h
··· 4 4 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 - #include <asm/perf_regs.h> 7 + #include "../../../../arch/loongarch/include/uapi/asm/perf_regs.h" 8 8 9 9 #define PERF_REGS_MAX PERF_REG_LOONGARCH_MAX 10 10
+1 -1
tools/perf/arch/mips/include/perf_regs.h
··· 4 4 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 - #include <asm/perf_regs.h> 7 + #include "../../../../arch/mips/include/uapi/asm/perf_regs.h" 8 8 9 9 #define PERF_REGS_MAX PERF_REG_MIPS_MAX 10 10
+1 -1
tools/perf/arch/powerpc/include/perf_regs.h
··· 4 4 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 - #include <asm/perf_regs.h> 7 + #include "../../../../arch/powerpc/include/uapi/asm/perf_regs.h" 8 8 9 9 void perf_regs_load(u64 *regs); 10 10
+1 -1
tools/perf/arch/riscv/include/perf_regs.h
··· 6 6 7 7 #include <stdlib.h> 8 8 #include <linux/types.h> 9 - #include <asm/perf_regs.h> 9 + #include "../../../../arch/riscv/include/uapi/asm/perf_regs.h" 10 10 11 11 #define PERF_REGS_MASK ((1ULL << PERF_REG_RISCV_MAX) - 1) 12 12 #define PERF_REGS_MAX PERF_REG_RISCV_MAX
+1 -1
tools/perf/arch/s390/include/perf_regs.h
··· 3 3 4 4 #include <stdlib.h> 5 5 #include <linux/types.h> 6 - #include <asm/perf_regs.h> 6 + #include "../../../../arch/s390/include/uapi/asm/perf_regs.h" 7 7 8 8 void perf_regs_load(u64 *regs); 9 9
+1 -1
tools/perf/arch/x86/include/perf_regs.h
··· 4 4 5 5 #include <stdlib.h> 6 6 #include <linux/types.h> 7 - #include <asm/perf_regs.h> 7 + #include "../../../../arch/x86/include/uapi/asm/perf_regs.h" 8 8 9 9 void perf_regs_load(u64 *regs); 10 10