Re: [PATCH] tracing: fprobe: use ftrace if CONFIG_DYNAMIC_FTRACE_WITH_ARGS

From: Steven Rostedt

Date: Wed Oct 29 2025 - 10:22:27 EST


On Wed, 29 Oct 2025 22:09:40 +0800
Menglong Dong <menglong8.dong@xxxxxxxxx> wrote:

> Hi, it won't fail here, as FTRACE_OPS_FL_SAVE_ARGS has
> following definition:
>
> #ifndef CONFIG_DYNAMIC_FTRACE_WITH_ARGS
> #define FTRACE_OPS_FL_SAVE_ARGS FTRACE_OPS_FL_SAVE_REGS
> #else
> #define FTRACE_OPS_FL_SAVE_ARGS 0
> #endif

Bah, I should have known that, as I think I requested it :-p

[ chalks this up for a senior moment! ]


>
> Which means it will fallback to FTRACE_OPS_FL_SAVE_REGS if
> CONFIG_DYNAMIC_FTRACE_WITH_ARGS not defined.
>
> I have commit a PR to the bpf CI, and all testings passed and no
> building error happens:
> https://github.com/kernel-patches/bpf/pull/10110

OK, thanks,

-- Steve