]> git.hungrycats.org Git - linux/commit
selftests/bpf: check if bpf_fastcall is recognized for kfuncs
authorEduard Zingerman <eddyz87@gmail.com>
Thu, 22 Aug 2024 08:41:12 +0000 (01:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 22 Aug 2024 15:35:21 +0000 (08:35 -0700)
commit8c2e043daadad021fc501ac64cce131f48c3ca46
tree12248bcf91ee0c83c6f25e055a42a85acfac3323
parentf406026fefa745ff9a3153507cc3b9a87371d954
selftests/bpf: check if bpf_fastcall is recognized for kfuncs

Use kfunc_bpf_cast_to_kern_ctx() and kfunc_bpf_rdonly_cast() to verify
that bpf_fastcall pattern is recognized for kfunc calls.

Acked-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240822084112.3257995-7-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_bpf_fastcall.c