kernel-hacking-2024-linux-s.../tools/perf
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
..
bench perf bench: Improve sched-message.c with more comfortable output 2009-11-10 19:56:46 +01:00
Documentation perf tools: Add support for breakpoint events in perf tools 2009-11-23 18:18:31 +01:00
util perf tools: Fix compilation on powerpc 2009-11-24 08:35:10 +01:00
.gitignore perf tools: .gitignore += perf*.html 2009-09-24 14:01:22 +02:00
builtin-annotate.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-bench.c perf bench: Improve builtin-bench.c for more friendly output 2009-11-10 19:56:44 +01:00
builtin-buildid-list.c perf buildid-list: Always show the DSO name 2009-11-17 07:19:54 +01:00
builtin-help.c perf: Clean up trivial style issues in builtin-help.c 2009-11-03 18:37:29 +01:00
builtin-kmem.c perf kmem: Resolve symbols 2009-11-23 21:55:20 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf/probes: Rename perf probe events group name 2009-11-04 13:02:47 +01:00
builtin-record.c perf record, x86: Print more intelligent error message when sampling fails 2009-11-23 09:40:13 +01:00
builtin-report.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-sched.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin-stat.c perf stat: Do not print ratio when task-clock event is not counted 2009-11-15 15:25:50 +01:00
builtin-timechart.c perf tools: perf_header__read() shouldn't die() 2009-11-19 18:47:17 +01:00
builtin-top.c perf tools: Move graph_line and graph_dotted_line from top 2009-11-23 21:55:20 +01:00
builtin-trace.c perf symbols: Look for vmlinux in more places 2009-11-23 19:51:48 +01:00
builtin.h perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
command-list.txt Merge branch 'perf/core' into perf/probes 2009-11-17 10:17:47 +01:00
CREDITS
design.txt perf_event: Add alignment-faults and emulation-faults software events 2009-10-28 16:13:03 +11:00
Makefile perf: Use default compiler mode by default 2009-11-23 07:55:57 +01:00
perf.c perf: Add 'perf kmem' tool 2009-11-20 09:51:41 +01:00
perf.h perf tools: Add ia64 support for tools/perf/ 2009-11-19 06:03:33 +01:00