]> Pileus Git - ~andy/linux/blobdiff - Makefile
kprobes: enable clean usage of get_kprobe
[~andy/linux] / Makefile
index 2b4977c9844ec6dd6e78948093e2161f2772d6cc..ab73e496c8ee09b98b18ee9de43c11b562fe5e78 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)