selftests/bpf: Remove tests for zeroed-array kptr
authorHou Tao <houtao1@huawei.com>
Sat, 16 Dec 2023 13:10:52 +0000 (21:10 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Dec 2023 21:25:46 +0000 (13:25 -0800)
commit69ff403d87be4812571c54b1159e24998414bcab
tree40e8e9008dc0f3a7b2eca992662d5266e13b28d8
parent7ac5c53e00735d183a0f5e2cfce5eeb6c16319f2
selftests/bpf: Remove tests for zeroed-array kptr

bpf_mem_alloc() doesn't support zero-sized allocation, so removing these
tests from test_bpf_ma test. After the removal, there will no definition
for bin_data_8, so remove 8 from data_sizes array and adjust the index
of data_btf_ids array in all test cases accordingly.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20231216131052.27621-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/test_bpf_ma.c