Skip to content

Commit b81ff11

Browse files
committed
ftrace: Have tracing function args depend on PROBE_EVENTS_BTF_ARGS
The option PROBE_EVENTS_BTF_ARGS enables the functions btf_find_func_proto() and btf_get_func_param() which are used by the function argument tracing code. The option FUNCTION_TRACE_ARGS was dependent on the same configs that PROBE_EVENTS_BTF_ARGS was dependent on, but it was also dependent on PROBE_EVENTS_BTF_ARGS. In fact, if PROBE_EVENTS_BTF_ARGS is supported then FUNCTION_TRACE_ARGS is supported. Just make FUNCTION_TRACE_ARGS depend on PROBE_EVENTS_BTF_ARGS. Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Mark Rutland <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: 533c20b ("ftrace: Add print_function_args()") Closes: https://lore.kernel.org/all/DB9PR08MB75820599801BAD118D123D7D93AD2@DB9PR08MB7582.eurprd08.prod.outlook.com/ Reported-by: Christian Loehle <[email protected]> Tested-by: Christian Loehle <[email protected]> Tested-by: Leon Romanovsky <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 46d29f2 commit b81ff11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernel/trace/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ config FUNCTION_GRAPH_RETADDR
265265

266266
config FUNCTION_TRACE_ARGS
267267
bool
268-
depends on HAVE_FUNCTION_ARG_ACCESS_API
269-
depends on DEBUG_INFO_BTF
268+
depends on PROBE_EVENTS_BTF_ARGS
270269
default y
271270
help
272271
If supported with function argument access API and BTF, then

0 commit comments

Comments
 (0)