[PATCH] riscv : select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY

sugarfillet at yeah.net sugarfillet at yeah.net
Mon Aug 15 02:12:04 PDT 2022


From: song <sugarfillet at 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 at yeah.net>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

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
-- 
2.20.1




More information about the linux-riscv mailing list