kernel_optimize_test/tools/perf/util
Paul Mackerras ee3d250446 perf tools: Fix compilation on powerpc
Currently, perf fails to compile on powerpc with this error:

     CC util/header.o
 In file included from util/../perf.h:17,
                  from util/header.c:9:
 util/../../../arch/powerpc/include/asm/unistd.h:360:27: error:
 linux/linkage.h: No such file or directory make: ***
 [util/header.o] Error 1

The reason is that we still have a #define __KERNEL__ in effect
at the point where <asm/unistd.h> gets included, which means we
get extra stuff that we don't need or want.

This fixes the problem by undefining __KERNEL__ once we have
included the file for which we need __KERNEL__ defined.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <19211.24287.453183.78836@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-11-24 08:35:10 +01:00
..
include perf tools: Fix compilation on powerpc 2009-11-24 08:35:10 +01:00
abspath.c
alias.c
cache.h
callchain.c
callchain.h
color.c
color.h
config.c
ctype.c perf tools: Move graph_line and graph_dotted_line from top 2009-11-23 21:55:20 +01:00
data_map.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
data_map.h perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
debug.c
debug.h
debugfs.c
debugfs.h
environment.c
event.c
event.h perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
header.h perf tools: Eliminate some more die() uses in library functions 2009-11-19 18:47:17 +01:00
help.c
help.h
hist.c
hist.h
levenshtein.c
levenshtein.h
map.c perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
pager.c
parse-events.c perf tools: Add support for breakpoint events in perf tools 2009-11-23 18:18:31 +01:00
parse-events.h
parse-options.c
parse-options.h
path.c
PERF-VERSION-GEN
probe-finder.c
probe-finder.h
quote.c
quote.h
run-command.c
run-command.h
sigchain.c
sigchain.h
sort.c
sort.h
strbuf.c
strbuf.h
string.c
string.h
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
symbol.h perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
thread.c
thread.h perf symbols: Do lazy symtab loading for the kernel & modules too 2009-11-21 14:11:33 +01:00
trace-event-info.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event-parse.c
trace-event-read.c perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
trace-event.h perf trace: Read_tracing_data should die() another day 2009-11-21 17:45:59 +01:00
types.h
usage.c
util.h perf tools: Move graph_line and graph_dotted_line from top 2009-11-23 21:55:20 +01:00
values.c
values.h
wrapper.c