Re: [PATCH bpf-next v4 1/2] bpf: support bpf_get_func_arg() for BPF_TRACE_RAW_TP
From: Yonghong Song <yonghong.song@linux.dev>
Date: 2026-01-20 22:50:13
Also in:
bpf, lkml
From: Yonghong Song <yonghong.song@linux.dev>
Date: 2026-01-20 22:50:13
Also in:
bpf, lkml
On 1/19/26 11:30 PM, Menglong Dong wrote:
For now, bpf_get_func_arg() and bpf_get_func_arg_cnt() is not supported by the BPF_TRACE_RAW_TP, which is not convenient to get the argument of the tracepoint, especially for the case that the position of the arguments in a tracepoint can change. The target tracepoint BTF type id is specified during loading time, therefore we can get the function argument count from the function prototype instead of the stack. Signed-off-by: Menglong Dong <redacted>
Acked-by: Yonghong Song <yonghong.song@linux.dev>