perf arch: Update arch headers to use relative UAPI paths
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Tue, 3 Feb 2026 02:43:54 +0000 (10:43 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Feb 2026 15:15:48 +0000 (12:15 -0300)
commite716e69cf67bb45c49653b884f88d8e97f454f50
treeaf262fc4939bd8fbc7e01f59e4a170fd69cc0f0b
parentc2e28ae2946f473d6c340ebbeac0cf87be46d582
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>
tools/perf/arch/arm/include/perf_regs.h
tools/perf/arch/arm64/include/perf_regs.h
tools/perf/arch/csky/include/perf_regs.h
tools/perf/arch/loongarch/include/perf_regs.h
tools/perf/arch/mips/include/perf_regs.h
tools/perf/arch/powerpc/include/perf_regs.h
tools/perf/arch/riscv/include/perf_regs.h
tools/perf/arch/s390/include/perf_regs.h
tools/perf/arch/x86/include/perf_regs.h