perf events: Do not generate function trace entries in perf code
authorIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 09:19:20 +0000 (10:19 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 23 Nov 2009 09:19:20 +0000 (10:19 +0100)
Decreases perf overhead when function tracing is enabled,
by about 50%.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/Makefile
kernel/Makefile

index 68537e957a9b2cd621185e275103c201af9502e6..1d2cb383410ebef206fb48e2ccecbe8fd03f90ce 100644 (file)
@@ -5,6 +5,7 @@
 # Don't trace early stages of a secondary CPU boot
 ifdef CONFIG_FUNCTION_TRACER
 CFLAGS_REMOVE_common.o = -pg
+CFLAGS_REMOVE_perf_event.o = -pg
 endif
 
 # Make sure load_percpu_segment has no stackprotector
index 17b575ec7d07aa001ff550f584dddb6d8aaf73e9..6b7ce8173dfdc063676dd6d2a565fbcc56cc7603 100644 (file)
@@ -21,6 +21,7 @@ CFLAGS_REMOVE_mutex-debug.o = -pg
 CFLAGS_REMOVE_rtmutex-debug.o = -pg
 CFLAGS_REMOVE_cgroup-debug.o = -pg
 CFLAGS_REMOVE_sched_clock.o = -pg
+CFLAGS_REMOVE_perf_event.o = -pg
 endif
 
 obj-$(CONFIG_FREEZER) += freezer.o