Commit e716e69c authored by Dapeng Mi's avatar Dapeng Mi Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarDapeng 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: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c2e28ae2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

#include <stdlib.h>
#include <linux/types.h>
#include <asm/perf_regs.h>
#include "../../../../arch/arm/include/uapi/asm/perf_regs.h"

void perf_regs_load(u64 *regs);

+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <linux/types.h>
#define perf_event_arm_regs perf_event_arm64_regs
#include <asm/perf_regs.h>
#include "../../../../arch/arm64/include/uapi/asm/perf_regs.h"
#undef perf_event_arm_regs

void perf_regs_load(u64 *regs);
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@

#include <stdlib.h>
#include <linux/types.h>
#include <asm/perf_regs.h>
#include "../../../../arch/csky/include/uapi/asm/perf_regs.h"

#define PERF_REGS_MASK	((1ULL << PERF_REG_CSKY_MAX) - 1)
#define PERF_REGS_MAX	PERF_REG_CSKY_MAX
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

#include <stdlib.h>
#include <linux/types.h>
#include <asm/perf_regs.h>
#include "../../../../arch/loongarch/include/uapi/asm/perf_regs.h"

#define PERF_REGS_MAX PERF_REG_LOONGARCH_MAX

+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

#include <stdlib.h>
#include <linux/types.h>
#include <asm/perf_regs.h>
#include "../../../../arch/mips/include/uapi/asm/perf_regs.h"

#define PERF_REGS_MAX PERF_REG_MIPS_MAX

Loading