aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/bp_signal_overflow.c
diff options
context:
space:
mode:
authorSukadev Bhattiprolu <[email protected]>2013-04-26 17:17:56 +0000
committerArnaldo Carvalho de Melo <[email protected]>2013-05-28 13:23:57 +0000
commitb3539d214f6000217aae97b5ae32df5b03faf850 (patch)
treed1c75b2fcec08f819cf54d282972624f987c2559 /tools/perf/tests/bp_signal_overflow.c
parentperf tools: Fix tab vs spaces issue in Makefile ifdef/endif (diff)
downloadkernel-b3539d214f6000217aae97b5ae32df5b03faf850.tar.gz
kernel-b3539d214f6000217aae97b5ae32df5b03faf850.zip
perf tests: Fix compile errors in bp_signal files
When building on powerpc, we get compile errors in bp_signal.c and bp_signal_overflow.c due to __u64 and '%llx'. Powerpc, needs __SANE_USERSPACE_TYPES__ to be defined so we pick up <asm-generic/int-ll64.h> and define __u64 as unsigned long long. Signed-off-by: Sukadev Bhattiprolu <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/tests/bp_signal_overflow.c')
-rw-r--r--tools/perf/tests/bp_signal_overflow.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/tests/bp_signal_overflow.c b/tools/perf/tests/bp_signal_overflow.c
index fe7ed28815f8..44ac82179708 100644
--- a/tools/perf/tests/bp_signal_overflow.c
+++ b/tools/perf/tests/bp_signal_overflow.c
@@ -3,6 +3,12 @@
* perf_event_tests (git://github.com/deater/perf_event_tests)
*/
+/*
+ * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select
+ * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
+ */
+#define __SANE_USERSPACE_TYPES__
+
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>