From: Ingo Molnar Date: Mon, 12 May 2008 19:20:51 +0000 (+0200) Subject: ftrace: disable -pg for the tracer itself X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~35922^2^2~1^2~96 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b53dde9d34f2df396540988ebc65c33400f57b04;p=mirror_ubuntu-focal-kernel.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