aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 61e2c2411f9c..c2988a6a37e8 100644
--- a/Makefile
+++ b/Makefile
@@ -624,7 +624,7 @@ endif
ifdef CONFIG_FUNCTION_TRACER
ifdef CONFIG_HAVE_FENTRY
-CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY)
+CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY -grecord-gcc-switches)
endif
KBUILD_CFLAGS += -pg $(CC_USING_FENTRY)
KBUILD_AFLAGS += $(CC_USING_FENTRY)