]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Update kfuncs using btf_struct_meta to new variants
authorIhor Solodrai <ihor.solodrai@linux.dev>
Fri, 27 Mar 2026 20:32:41 +0000 (13:32 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 29 Mar 2026 16:56:06 +0000 (09:56 -0700)
commit101a9d9df8e794af8bf06e1e09c176e2dab2abf6
tree3c6e8de69da0fd54f98bd635fc50afdeecc6b838
parentd457072576a6a60ba853b1d815f123da57b48021
selftests/bpf: Update kfuncs using btf_struct_meta to new variants

Update selftests to use the new non-_impl kfuncs marked with
KF_IMPLICIT_ARGS by removing redundant declarations and macros from
bpf_experimental.h (the new kfuncs are present in the vmlinux.h) and
updating relevant callsites.

Fix spin_lock verifier-log matching for lock_id_kptr_preserve by
accepting variable instruction numbers. The calls to kfuncs with
implicit arguments do not have register moves (e.g. r5 = 0)
corresponding to dummy arguments anymore, so the order of instructions
has shifted.

Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260327203241.3365046-2-ihor.solodrai@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h
tools/testing/selftests/bpf/prog_tests/spin_lock.c
tools/testing/selftests/bpf/progs/kptr_xchg_inline.c