diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -609,7 +609,11 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) | |||
609 | endif | 609 | endif |
610 | 610 | ||
611 | ifdef CONFIG_FUNCTION_TRACER | 611 | ifdef CONFIG_FUNCTION_TRACER |
612 | KBUILD_CFLAGS += -pg | 612 | ifdef CONFIG_HAVE_FENTRY |
613 | CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY) | ||
614 | endif | ||
615 | KBUILD_CFLAGS += -pg $(CC_USING_FENTRY) | ||
616 | KBUILD_AFLAGS += $(CC_USING_FENTRY) | ||
613 | ifdef CONFIG_DYNAMIC_FTRACE | 617 | ifdef CONFIG_DYNAMIC_FTRACE |
614 | ifdef CONFIG_HAVE_C_RECORDMCOUNT | 618 | ifdef CONFIG_HAVE_C_RECORDMCOUNT |
615 | BUILD_C_RECORDMCOUNT := y | 619 | BUILD_C_RECORDMCOUNT := y |