From: Ingo Molnar Date: Mon, 12 May 2008 19:20:51 +0000 (+0200) Subject: ftrace: disable -pg for the tracer itself X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b53dde9d34f2df396540988ebc65c33400f57b04;p=linux-beck.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 3fec653d6533..c25a6cd6a529 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