Commit ec87c99d authored by Leo Yan's avatar Leo Yan Committed by Namhyung Kim
Browse files

perf parse-regs: Always build perf register functions



Currently, the macro HAVE_PERF_REGS_SUPPORT is used as a switch to turn
on or turn off the code of perf registers. If any architecture cannot
support perf register, it disables the perf register parsing, for both
the native parsing and cross parsing for other architectures.

To support both the native parsing and cross parsing, the tool should
always build the perf regs functions. Thus, this patch removes
HAVE_PERF_REGS_SUPPORT from the perf regs files.

Signed-off-by: default avatarLeo Yan <leo.yan@linux.dev>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Cc: James Clark <james.clark@arm.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Ming Wang <wangming01@loongson.cn>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: linux-csky@vger.kernel.org
Cc: linux-riscv@lists.infradead.org
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240214113947.240957-3-leo.yan@linux.dev
parent fca6af7b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#ifdef HAVE_PERF_REGS_SUPPORT

#include "../perf_regs.h"
#include "../../../arch/arm64/include/uapi/asm/perf_regs.h"

@@ -92,5 +90,3 @@ uint64_t __perf_reg_sp_arm64(void)
{
	return PERF_REG_ARM64_SP;
}

#endif
+0 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#ifdef HAVE_PERF_REGS_SUPPORT

#include "../perf_regs.h"
#include "../../../arch/arm/include/uapi/asm/perf_regs.h"

@@ -56,5 +54,3 @@ uint64_t __perf_reg_sp_arm(void)
{
	return PERF_REG_ARM_SP;
}

#endif
+0 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#ifdef HAVE_PERF_REGS_SUPPORT

#include "../perf_regs.h"
#include "../../arch/csky/include/uapi/asm/perf_regs.h"

@@ -96,5 +94,3 @@ uint64_t __perf_reg_sp_csky(void)
{
	return PERF_REG_CSKY_SP;
}

#endif
+0 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#ifdef HAVE_PERF_REGS_SUPPORT

#include "../perf_regs.h"
#include "../../../arch/loongarch/include/uapi/asm/perf_regs.h"

@@ -87,5 +85,3 @@ uint64_t __perf_reg_sp_loongarch(void)
{
	return PERF_REG_LOONGARCH_R3;
}

#endif
+0 −4
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

#ifdef HAVE_PERF_REGS_SUPPORT

#include "../perf_regs.h"
#include "../../../arch/mips/include/uapi/asm/perf_regs.h"

@@ -83,5 +81,3 @@ uint64_t __perf_reg_sp_mips(void)
{
	return PERF_REG_MIPS_R29;
}

#endif
Loading