diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:20:55 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:15:14 -0400 |
commit | 1d09daa55d2e9bab7e7d30f0d05e5a7bc60b2a4a (patch) | |
tree | 81b138d50b84e052d49f7710ce03250cde1b3606 /kernel/Makefile | |
parent | 9d0a420b737f72d84fabebf29634d800cbf54538 (diff) |
ftrace: use Makefile to remove tracing from lockdep
This patch removes the "notrace" annotation from lockdep and adds the debugging
files in the kernel director to those that should not be compiled with
"-pg" mcount tracing.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/Makefile')
-rw-r--r-- | kernel/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index 7e344e7b0cb3..d2f80ea4cd9a 100644 --- a/kernel/Makefile +++ b/kernel/Makefile | |||
@@ -11,6 +11,14 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ | |||
11 | hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ | 11 | hrtimer.o rwsem.o nsproxy.o srcu.o semaphore.o \ |
12 | notifier.o ksysfs.o pm_qos_params.o sched_clock.o | 12 | notifier.o ksysfs.o pm_qos_params.o sched_clock.o |
13 | 13 | ||
14 | ifdef CONFIG_FTRACE | ||
15 | # Do not profile debug utilities | ||
16 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | ||
17 | KBUILD_CFLAGS = $(if $(filter-out lockdep% %debug,$(basename $(notdir $@))), \ | ||
18 | $(ORIG_CFLAGS), \ | ||
19 | $(subst -pg,,$(ORIG_CFLAGS))) | ||
20 | endif | ||
21 | |||
14 | obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o | 22 | obj-$(CONFIG_SYSCTL_SYSCALL_CHECK) += sysctl_check.o |
15 | obj-$(CONFIG_STACKTRACE) += stacktrace.o | 23 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
16 | obj-y += time/ | 24 | obj-y += time/ |