aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-05-12 15:20:55 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:14:28 -0400
commit9d0a420b737f72d84fabebf29634d800cbf54538 (patch)
tree6e484bfff9842782e8438b4ff8587950177a8482 /lib/Makefile
parent92205c2343527a863d660360599a4bf8cede77b0 (diff)
ftrace: remove function tracing from spinlock debug
The debug functions in spin_lock debugging pollute the output of the function tracer. This patch adds the debug files in the lib director to those that should not be compiled with 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 'lib/Makefile')
-rw-r--r--lib/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 6ca9e6ee1e33..d97ad1100b6f 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -10,8 +10,9 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
10 10
11ifdef CONFIG_FTRACE 11ifdef CONFIG_FTRACE
12# Do not profile string.o, since it may be used in early boot or vdso 12# Do not profile string.o, since it may be used in early boot or vdso
13# Also do not profile any debug utilities
13ORIG_CFLAGS := $(KBUILD_CFLAGS) 14ORIG_CFLAGS := $(KBUILD_CFLAGS)
14KBUILD_CFLAGS = $(if $(subst string,,$(basename $(notdir $@))), \ 15KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \
15 $(ORIG_CFLAGS), \ 16 $(ORIG_CFLAGS), \
16 $(subst -pg,,$(ORIG_CFLAGS))) 17 $(subst -pg,,$(ORIG_CFLAGS)))
17endif 18endif