Skip to content

Commit e8eb8e1

Browse files
Pu LehuiAlexandre Ghiti
Pu Lehui
authored and
Alexandre Ghiti
committed
riscv: fgraph: Select HAVE_FUNCTION_GRAPH_TRACER depends on HAVE_DYNAMIC_FTRACE_WITH_ARGS
Currently, fgraph on riscv relies on the infrastructure of DYNAMIC_FTRACE_WITH_ARGS. However, DYNAMIC_FTRACE_WITH_ARGS may be turned off on riscv, which will cause the enabled fgraph to be abnormal. Therefore, let's select HAVE_FUNCTION_GRAPH_TRACER depends on HAVE_DYNAMIC_FTRACE_WITH_ARGS. Fixes: a3ed415 ("fgraph: Replace fgraph_ret_regs with ftrace_regs") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Pu Lehui <[email protected]> Reviewed-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Ghiti <[email protected]>
1 parent 33981b1 commit e8eb8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ config RISCV
150150
select HAVE_DYNAMIC_FTRACE_WITH_ARGS if HAVE_DYNAMIC_FTRACE
151151
select HAVE_FTRACE_GRAPH_FUNC
152152
select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
153-
select HAVE_FUNCTION_GRAPH_TRACER
153+
select HAVE_FUNCTION_GRAPH_TRACER if HAVE_DYNAMIC_FTRACE_WITH_ARGS
154154
select HAVE_FUNCTION_GRAPH_FREGS
155155
select HAVE_FUNCTION_TRACER if !XIP_KERNEL && !PREEMPTION
156156
select HAVE_EBPF_JIT if MMU

0 commit comments

Comments
 (0)