summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKyle McMartin <kyle@redhat.com>2013-09-05 10:29:47 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-09-05 16:18:46 -0300
commit41817815666e4a6f302dad1fea47cbe64cc45e40 (patch)
treedb0ab76fa5ff5e0c18513a2b629fc0e638ce1743 /tools
parent99cf666c5c0cd4f4c3e4155e7b01cf593d71d60e (diff)
downloadlinux-41817815666e4a6f302dad1fea47cbe64cc45e40.tar.gz
linux-41817815666e4a6f302dad1fea47cbe64cc45e40.tar.bz2
linux-41817815666e4a6f302dad1fea47cbe64cc45e40.zip
perf trace: Check if MAP_32BIT is defined
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> Cc: Ingo Molnar <mingo@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20130905142947.GA25882@merlin.infradead.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-trace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 6016112e801a..f5aa6375e3e9 100644
--- 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);