public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf: builtin-trace.c: check if MAP_32BIT is defined
@ 2013-09-05 14:29 Kyle McMartin
  2013-09-05 19:25 ` Arnaldo Carvalho de Melo
  2013-09-06 12:14 ` [tip:perf/urgent] perf trace: Check " tip-bot for Kyle McMartin
  0 siblings, 2 replies; 3+ messages in thread
From: Kyle McMartin @ 2013-09-05 14:29 UTC (permalink / raw)
  To: torvalds; +Cc: mingo, acme, linux-kernel

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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-06 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 14:29 [PATCH] perf: builtin-trace.c: check if MAP_32BIT is defined Kyle McMartin
2013-09-05 19:25 ` Arnaldo Carvalho de Melo
2013-09-06 12:14 ` [tip:perf/urgent] perf trace: Check " tip-bot for Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox