summaryrefslogtreecommitdiffstats
path: root/perf-arm-fix.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2013-09-05 10:43:44 -0400
committerJosh Boyer <jwboyer@fedoraproject.org>2013-09-05 10:43:44 -0400
commitd5a4efb50adef352b7dde6079d5df07042f2d248 (patch)
tree51732e83eac7b4f5ddacd56d93540094bf353495 /perf-arm-fix.patch
parentf55bd27d50aa3ee15819e85ca0984a3af33d3c30 (diff)
Fix perf build on ARM (from Kyle McMartin)
Diffstat (limited to 'perf-arm-fix.patch')
-rw-r--r--perf-arm-fix.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/perf-arm-fix.patch b/perf-arm-fix.patch
new file mode 100644
index 00000000..795c20ef
--- /dev/null
+++ b/perf-arm-fix.patch
@@ -0,0 +1,24 @@
+From: Kyle McMartin <kyle@redhat.com>
+
+MAP_32BIT is defined only on x86... this means perf fails to build on
+all other platforms.
+
+Signed-off-by: Kyle McMartin <kyle@redhat.com>
+
+--- a/tools/perf/builtin-trace.c
++++ b/tools/perf/builtin-trace.c
+@@ -100,7 +100,9 @@ static size_t syscall_arg__scnprintf_mmap_flags(char *bf, size_t size,
+
+ P_MMAP_FLAG(SHARED);
+ P_MMAP_FLAG(PRIVATE);
++#ifdef MAP_32BIT
+ P_MMAP_FLAG(32BIT);
++#endif
+ P_MMAP_FLAG(ANONYMOUS);
+ P_MMAP_FLAG(DENYWRITE);
+ P_MMAP_FLAG(EXECUTABLE);
+--
+To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
+the body of a message to majordomo@vger.kernel.org
+More majordomo info at http://vger.kernel.org/majordomo-info.html
+Please read the FAQ at http://www.tux.org/lkml/ \ No newline at end of file