diff mbox series

riscv : select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY

Message ID 20220815091204.1629234-1-sugarfillet@yeah.net (mailing list archive)
State New, archived
Headers show
Series riscv : select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY | expand

Commit Message

sugarfillet@yeah.net Aug. 15, 2022, 9:12 a.m. UTC
From: song <sugarfillet@yeah.net>

riscv uses -fpatchable-function-entry with dynamic ftrace on `afc76b8b8`,
which means we don't need recordmcount.  Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY
to tell that to the build system.

Signed-off-by: song <sugarfillet@yeah.net>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index ed66c31e4655..d23fa73774b4 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -271,6 +271,7 @@  config ARCH_RV64I
 	select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && MMU && $(cc-option,-fpatchable-function-entry=8)
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
+	select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
 	select HAVE_FUNCTION_GRAPH_TRACER
 	select HAVE_FUNCTION_TRACER if !XIP_KERNEL
 	select SWIOTLB if MMU