Skip to contentSkip to conversation

perf: fix arm64 build error

PATCH Applied Mark Salter 3 participants 3 messages Jul 25, 2014 – Aug 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 perf: fix arm64 build error

I'm seeing the following build error on arm64:

In file included from util/event.c:3:0:
util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function)

    u64 cache_regs[PERF_REGS_MAX];
                 ^

This patch adds a PERF_REGS_MAX definition for arm64.

---
 tools/perf/arch/arm64/include/perf_regs.h | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/arch/arm64/include/perf_regs.h +2 -0
index e9441b9..1d3f39c 100644
@@ -6,6 +6,8 @@
 #include <asm/perf_regs.h>
 
 #define PERF_REGS_MASK	((1ULL << PERF_REG_ARM64_MAX) - 1)
+#define PERF_REGS_MAX	PERF_REG_ARM64_MAX
+
 #define PERF_REG_IP	PERF_REG_ARM64_PC
 #define PERF_REG_SP	PERF_REG_ARM64_SP
 
Signature · 1 line
1.9.0
maintainer Applied
#1 lore raw

Em Fri, Jul 25, 2014 at 06:02:46PM -0400, Mark Salter escreveu:

Quoted 11 lines

I'm seeing the following build error on arm64:

In file included from util/event.c:3:0:
util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function)

    u64 cache_regs[PERF_REGS_MAX];
                 ^

This patch adds a PERF_REGS_MAX definition for arm64.

Thanks, applied to my perf/core branch.

- Arnaldo

#2 lore raw

[tip:perf/core] perf tools: Fix arm64 build error

In reply to Mark Salter
perf tools: Fix arm64 build error
Commit-ID:  7d885749b6de2c9a1168d566e2380207b9177108
Gitweb:     http://git.kernel.org/tip/7d885749b6de2c9a1168d566e2380207b9177108
Author:     Mark Salter <[email protected]>
AuthorDate: Fri, 25 Jul 2014 18:02:46 -0400
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 30 Jul 2014 12:37:55 -0300

perf tools: Fix arm64 build error

I'm seeing the following build error on arm64:

In file included from util/event.c:3:0:
util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function)

    u64 cache_regs[PERF_REGS_MAX];
                 ^

This patch adds a PERF_REGS_MAX definition for arm64.

---
 tools/perf/arch/arm64/include/perf_regs.h | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/arch/arm64/include/perf_regs.h +2 -0
index e9441b9..1d3f39c 100644
@@ -6,6 +6,8 @@
 #include <asm/perf_regs.h>
 
 #define PERF_REGS_MASK	((1ULL << PERF_REG_ARM64_MAX) - 1)
+#define PERF_REGS_MAX	PERF_REG_ARM64_MAX
+
 #define PERF_REG_IP	PERF_REG_ARM64_PC
 #define PERF_REG_SP	PERF_REG_ARM64_SP