Skip to content

Commit

Permalink
ftrace: remove function tracing from spinlock debug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent 92205c2 commit 9d0a420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \

ifdef CONFIG_FTRACE
# Do not profile string.o, since it may be used in early boot or vdso
# Also do not profile any debug utilities
ORIG_CFLAGS := $(KBUILD_CFLAGS)
KBUILD_CFLAGS = $(if $(subst string,,$(basename $(notdir $@))), \
KBUILD_CFLAGS = $(if $(filter-out %debug debug% string%,$(basename $(notdir $@))), \
$(ORIG_CFLAGS), \
$(subst -pg,,$(ORIG_CFLAGS)))
endif
Expand Down

0 comments on commit 9d0a420

Please sign in to comment.