aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/kfunc_module_order.c
AgeCommit message (Collapse)AuthorFilesLines
2024-10-10selftests/bpf: Add test for kfunc module orderSimon Sundberg1-0/+30
Add a test case for kfuncs from multiple external modules, checking that the correct kfuncs are called regardless of which order they're called in. Specifically, check that calling the kfuncs in an order different from the one the modules' BTF are loaded in works. Signed-off-by: Simon Sundberg <simon.sundberg@kau.se> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Link: https://lore.kernel.org/r/20241010-fix-kfunc-btf-caching-for-modules-v2-3-745af6c1af98@redhat.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>