aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorYafang Shao <[email protected]>2024-05-17 10:30:34 +0800
committerAndrii Nakryiko <[email protected]>2024-05-29 16:01:48 -0700
commit6ba7acdb93b4ecb554d5838fca3f5f0fcf9fff14 (patch)
treea7fa5ceb4f4fb94fd757e1c64161aea51fda867f /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent4665415975b0827e9646cab91c61d02a6b364d59 (diff)
selftests/bpf: Add selftest for bits iter
Add test cases for the bits iter: - Positive cases - Bit mask representing a single word (8-byte unit) - Bit mask representing data spanning more than one word - The index of the set bit - Nagative cases - bpf_iter_bits_destroy() is required after calling bpf_iter_bits_new() - bpf_iter_bits_destroy() can only destroy an initialized iter - bpf_iter_bits_next() must use an initialized iter - Bit mask representing zero words - Bit mask representing fewer words than expected - Case for ENOMEM - Case for NULL pointer Signed-off-by: Yafang Shao <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions