Skip to content

Commit f32b4b4

Browse files
jamieilespalmer-dabbelt
authored andcommitted
RISC-V: enable dynamic ftrace for RV32I
The RISC-V mcount function is now capable of supporting RV32I so make it available in the kernel config. Signed-off-by: Jamie Iles <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent dc58a24 commit f32b4b4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/riscv/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ config RISCV
129129
select TRACE_IRQFLAGS_SUPPORT
130130
select UACCESS_MEMCPY if !MMU
131131
select ZONE_DMA32 if 64BIT
132+
select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && MMU && $(cc-option,-fpatchable-function-entry=8)
133+
select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
134+
select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
135+
select HAVE_FUNCTION_GRAPH_TRACER
136+
select HAVE_FUNCTION_TRACER if !XIP_KERNEL
132137

133138
config ARCH_MMAP_RND_BITS_MIN
134139
default 18 if 64BIT
@@ -274,11 +279,6 @@ config ARCH_RV64I
274279
bool "RV64I"
275280
select 64BIT
276281
select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
277-
select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && MMU && $(cc-option,-fpatchable-function-entry=8)
278-
select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
279-
select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
280-
select HAVE_FUNCTION_GRAPH_TRACER
281-
select HAVE_FUNCTION_TRACER if !XIP_KERNEL
282282
select SWIOTLB if MMU
283283

284284
endchoice

0 commit comments

Comments
 (0)