From: Ingo Molnar Date: Mon, 12 May 2008 19:20:51 +0000 (+0200) Subject: ftrace: disable -pg for the tracer itself X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~96 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b53dde9d34f2df396540988ebc65c33400f57b04;p=linux-2.6-omap-h63xx.git ftrace: disable -pg for the tracer itself Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 3fec653d653..c25a6cd6a52 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile @@ -1,3 +1,11 @@ + +# Do not instrument the tracer itself: + +ifdef CONFIG_FTRACE +ORIG_CFLAGS := $(KBUILD_CFLAGS) +KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) +endif + obj-$(CONFIG_FTRACE) += libftrace.o obj-$(CONFIG_TRACING) += trace.o