diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch | |
download | meta-linaro-dizzy-enea.tar.gz |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch')
-rw-r--r-- | meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch new file mode 100644 index 0000000..4a4da97 --- /dev/null +++ b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-arm64-build-error.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 7d885749b6de2c9a1168d566e2380207b9177108 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Salter <msalter@redhat.com> | ||
3 | Date: Fri, 25 Jul 2014 18:02:46 -0400 | ||
4 | Subject: [PATCH] perf tools: Fix arm64 build error | ||
5 | |||
6 | I'm seeing the following build error on arm64: | ||
7 | |||
8 | In file included from util/event.c:3:0: | ||
9 | util/event.h:95:17: error: 'PERF_REGS_MAX' undeclared here (not in a function) | ||
10 | u64 cache_regs[PERF_REGS_MAX]; | ||
11 | ^ | ||
12 | |||
13 | This patch adds a PERF_REGS_MAX definition for arm64. | ||
14 | |||
15 | Signed-off-by: Mark Salter <msalter@redhat.com> | ||
16 | Acked-by: Jean Pihet <jean.pihet@linaro.org> | ||
17 | Cc: Ingo Molnar <mingo@redhat.com> | ||
18 | Cc: Jean Pihet <jean.pihet@linaro.org> | ||
19 | Cc: Paul Mackerras <paulus@samba.org> | ||
20 | Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> | ||
21 | Link: http://lkml.kernel.org/r/1406325766-8085-1-git-send-email-msalter@redhat.com | ||
22 | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> | ||
23 | --- | ||
24 | tools/perf/arch/arm64/include/perf_regs.h | 2 ++ | ||
25 | 1 file changed, 2 insertions(+) | ||
26 | |||
27 | diff --git a/tools/perf/arch/arm64/include/perf_regs.h b/tools/perf/arch/arm64/include/perf_regs.h | ||
28 | index e9441b9..1d3f39c 100644 | ||
29 | --- a/tools/perf/arch/arm64/include/perf_regs.h | ||
30 | +++ b/tools/perf/arch/arm64/include/perf_regs.h | ||
31 | @@ -6,6 +6,8 @@ | ||
32 | #include <asm/perf_regs.h> | ||
33 | |||
34 | #define PERF_REGS_MASK ((1ULL << PERF_REG_ARM64_MAX) - 1) | ||
35 | +#define PERF_REGS_MAX PERF_REG_ARM64_MAX | ||
36 | + | ||
37 | #define PERF_REG_IP PERF_REG_ARM64_PC | ||
38 | #define PERF_REG_SP PERF_REG_ARM64_SP | ||
39 | |||
40 | -- | ||
41 | 2.1.3 | ||
42 | |||