Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sukadev@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20130426173320.GA7029@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Sukadev Bhattiprolu and committed by
Arnaldo Carvalho de Melo
b3539d21 f9619d69

+12
+6
tools/perf/tests/bp_signal.c
··· 4 4 * (git://github.com/deater/perf_event_tests) 5 5 */ 6 6 7 + /* 8 + * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select 9 + * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu. 10 + */ 11 + #define __SANE_USERSPACE_TYPES__ 12 + 7 13 #include <stdlib.h> 8 14 #include <stdio.h> 9 15 #include <unistd.h>
+6
tools/perf/tests/bp_signal_overflow.c
··· 3 3 * perf_event_tests (git://github.com/deater/perf_event_tests) 4 4 */ 5 5 6 + /* 7 + * Powerpc needs __SANE_USERSPACE_TYPES__ before <linux/types.h> to select 8 + * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu. 9 + */ 10 + #define __SANE_USERSPACE_TYPES__ 11 + 6 12 #include <stdlib.h> 7 13 #include <stdio.h> 8 14 #include <unistd.h>