selftests/bpf: Add tests for KF_RCU_PROTECTED
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 17 Sep 2025 03:27:55 +0000 (03:27 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 18 Sep 2025 22:36:17 +0000 (15:36 -0700)
commit8b788d663861271c10905b23195bc6ae862caad2
tree995ee97ec980134947f177f6a1d400d94ceec512
parent1512231b6cc860ffbfbd85b295449dfb6977d357
selftests/bpf: Add tests for KF_RCU_PROTECTED

Add a couple of test cases to ensure RCU protection is kicked in
automatically, and the return type is as expected.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20250917032755.4068726-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/iters_testmod.c
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c
tools/testing/selftests/bpf/test_kmods/bpf_testmod_kfunc.h