Explorar o código

ftrace: disable -pg for the tracer itself

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Ingo Molnar %!s(int64=17) %!d(string=hai) anos
pai
achega
b53dde9d34
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      kernel/trace/Makefile

+ 8 - 0
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