Merge branch 'auto-ftrace-next' into tracing/for-linus
[deliverable/linux.git] / Makefile
index e3c5eb66ec52dee13127e3b2b83f84c3184bd8be..4ac1d2f71ac3598df817199fc87d573831e848a2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -528,6 +528,10 @@ KBUILD_CFLAGS      += -g
 KBUILD_AFLAGS  += -gdwarf-2
 endif
 
+ifdef CONFIG_FTRACE
+KBUILD_CFLAGS  += -pg
+endif
+
 # We trigger additional mismatches with less inlining
 ifdef CONFIG_DEBUG_SECTION_MISMATCH
 KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
This page took 0.024187 seconds and 5 git commands to generate.