* [PATCH v2] perf: fix arm64 build error
@ 2014-07-25 22:02 Mark Salter
2014-07-26 14:55 ` Arnaldo Carvalho de Melo
2014-08-13 5:12 ` [tip:perf/core] perf tools: Fix " tip-bot for Mark Salter
0 siblings, 2 replies; 3+ messages in thread
From: Mark Salter @ 2014-07-25 22:02 UTC (permalink / raw)
To: linux-kernel
Cc: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
Arnaldo Carvalho de Melo, Jean Pihet, Mark Salter
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.
Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Jean Pihet <jean.pihet@linaro.org>
---
tools/perf/arch/arm64/include/perf_regs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h
index e9441b9..1d3f39c 100644
--- a/tools/perf/arch/arm64/include/perf_regs.h
+++ b/tools/perf/arch/arm64/include/perf_regs.h
@@ -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
--
1.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] perf: fix arm64 build error
2014-07-25 22:02 [PATCH v2] perf: fix arm64 build error Mark Salter
@ 2014-07-26 14:55 ` Arnaldo Carvalho de Melo
2014-08-13 5:12 ` [tip:perf/core] perf tools: Fix " tip-bot for Mark Salter
1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2014-07-26 14:55 UTC (permalink / raw)
To: Mark Salter
Cc: linux-kernel, Peter Zijlstra, Paul Mackerras, Ingo Molnar,
Jean Pihet
Em Fri, Jul 25, 2014 at 06:02:46PM -0400, Mark Salter escreveu:
> 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.
>
> Signed-off-by: Mark Salter <msalter@redhat.com>
> Acked-by: Jean Pihet <jean.pihet@linaro.org>
Thanks, applied to my perf/core branch.
- Arnaldo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:perf/core] perf tools: Fix arm64 build error
2014-07-25 22:02 [PATCH v2] perf: fix arm64 build error Mark Salter
2014-07-26 14:55 ` Arnaldo Carvalho de Melo
@ 2014-08-13 5:12 ` tip-bot for Mark Salter
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Mark Salter @ 2014-08-13 5:12 UTC (permalink / raw)
To: linux-tip-commits
Cc: acme, linux-kernel, paulus, mingo, hpa, mingo, a.p.zijlstra,
jean.pihet, msalter, tglx
Commit-ID: 7d885749b6de2c9a1168d566e2380207b9177108
Gitweb: http://git.kernel.org/tip/7d885749b6de2c9a1168d566e2380207b9177108
Author: Mark Salter <msalter@redhat.com>
AuthorDate: Fri, 25 Jul 2014 18:02:46 -0400
Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
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.
Signed-off-by: Mark Salter <msalter@redhat.com>
Acked-by: Jean Pihet <jean.pihet@linaro.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jean Pihet <jean.pihet@linaro.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1406325766-8085-1-git-send-email-msalter@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/arch/arm64/include/perf_regs.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h
index e9441b9..1d3f39c 100644
--- a/tools/perf/arch/arm64/include/perf_regs.h
+++ b/tools/perf/arch/arm64/include/perf_regs.h
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-13 5:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25 22:02 [PATCH v2] perf: fix arm64 build error Mark Salter
2014-07-26 14:55 ` Arnaldo Carvalho de Melo
2014-08-13 5:12 ` [tip:perf/core] perf tools: Fix " tip-bot for Mark Salter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox