summaryrefslogtreecommitdiffstats
path: root/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch')
-rw-r--r--meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch
new file mode 100644
index 0000000..cb03946
--- /dev/null
+++ b/meta-linaro/recipes-kernel/perf/files/0001-perf-tools-Fix-build-breakage-on-arm64-targets.patch
@@ -0,0 +1,45 @@
1From 660d13296bbbe79635d1d9d700080b88061faffb Mon Sep 17 00:00:00 2001
2From: Will Deacon <will.deacon@arm.com>
3Date: Tue, 30 Sep 2014 12:27:12 +0100
4Subject: [PATCH] perf tools: Fix build breakage on arm64 targets
5
6Attempting to build the perf tool for an arm64 target results in the
7following failure:
8
9 arch/arm64/util/unwind-libunwind.c: In function 'libunwind__arch_reg_id':
10 arch/arm64/util/unwind-libunwind.c:77:3: error: implicit declaration of function 'pr_err'
11 pr_err("unwind: invalid reg id %d\n", regnum);
12 ^
13 arch/arm64/util/unwind-libunwind.c:77:3: error: nested extern declaration of 'pr_err'
14
15This is due to commit 84f5d36f4866 ("perf tools: Move pr_* debug macros
16into debug object") moving the pr_* macros into a new header file, but
17failing to update architectures other than x86.
18
19This patch adds the missing include, and fixes the build again.
20
21Signed-off-by: Will Deacon <will.deacon@arm.com>
22Cc: Jean Pihet <jean.pihet@linaro.org>
23Cc: Jiri Olsa <jolsa@kernel.org>
24Cc: linux-arm-kernel@lists.infradead.org
25Link: http://lkml.kernel.org/r/1412076432-22045-1-git-send-email-will.deacon@arm.com
26Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
27---
28 tools/perf/arch/arm64/util/unwind-libunwind.c | 1 +
29 1 file changed, 1 insertion(+)
30
31diff --git a/tools/perf/arch/arm64/util/unwind-libunwind.c b/tools/perf/arch/arm64/util/unwind-libunwind.c
32index 436ee43..a87afa9 100644
33--- a/tools/perf/arch/arm64/util/unwind-libunwind.c
34+++ b/tools/perf/arch/arm64/util/unwind-libunwind.c
35@@ -3,6 +3,7 @@
36 #include <libunwind.h>
37 #include "perf_regs.h"
38 #include "../../util/unwind.h"
39+#include "../../util/debug.h"
40
41 int libunwind__arch_reg_id(int regnum)
42 {
43--
442.1.3
45