summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_cpp.cpp
diff options
context:
space:
mode:
authorFuyu Zhao <zhaofuyu@vivo.com>2026-09-15 20:41:04 +0800
committerAndrii Nakryiko <andrii@kernel.org>2026-09-21 09:26:40 -0700
commit66c22d8c0f62a6dfb4e9eaa58fddb804126f683d (patch)
treed95322b461d511de538915e64071418b5bf77e4d /tools/testing/selftests/bpf/test_cpp.cpp
parent34b1847924433ec088709d703bf3f93657e5a686 (diff)
downloadlinux-next-66c22d8c0f62a6dfb4e9eaa58fddb804126f683d.tar.gz
linux-next-66c22d8c0f62a6dfb4e9eaa58fddb804126f683d.zip
selftests/bpf: Add tests for selective module BTF loading
Add selftests covering selective kernel module BTF loading through bpf_object_open_opts. The tests verify that: - the existing behavior is preserved when the allowlist is not specified; - loading succeeds when the required module BTF is specified in the allowlist; - module BTFs not in the allowlist are skipped; - an empty allowlist skips loading all module BTFs; - invalid allowlist and module name inputs are rejected. Signed-off-by: Fuyu Zhao <zhaofuyu@vivo.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260915124104.77287-3-zhaofuyu@vivo.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions