selftests/bpf: Cover tracing implicit kfunc args
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Mon, 13 Jul 2026 23:52:23 +0000 (16:52 -0700)
committerEduard Zingerman <eddyz87@gmail.com>
Thu, 16 Jul 2026 23:11:29 +0000 (16:11 -0700)
commit0af15f3057a60a038864d47fa4b54d1c3c3c654c
tree4680b06f6bb44f7319c3313a387a4d382f5c22ba
parent3917b1012ee2fef6da16d7450d4267dcb3e93363
selftests/bpf: Cover tracing implicit kfunc args

KF_IMPLICIT_ARGS kfuncs have a BPF-call prototype and a real kernel
target prototype. Add a tracing selftest that attaches fentry and fexit
programs to bpf_kfunc_implicit_arg(), runs a syscall BPF program that
calls it, and checks that the tracing context exposes both the explicit
argument and the implicit prog aux pointer.

Co-developed-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://patch.msgid.link/20260713235223.1639022-3-ihor.solodrai@linux.dev
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
tools/testing/selftests/bpf/prog_tests/kfunc_implicit_args_tracing.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/kfunc_implicit_args_tracing.c [new file with mode: 0644]