]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf/selftests: Check errno when percpu map value size exceeds
authorTao Chen <chen.dylane@gmail.com>
Tue, 10 Sep 2024 14:41:11 +0000 (22:41 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 11 Sep 2024 20:22:45 +0000 (13:22 -0700)
commit7eab3a58ac7b389517ae2241e47ed491f065baa0
treed49ce4a5901ac2efc0ab066deacfbb68666374de
parent1d244784be6b01162b732a5a7d637dfc024c3203
bpf/selftests: Check errno when percpu map value size exceeds

This test case checks the errno message when percpu map value size
exceeds PCPU_MIN_UNIT_SIZE.

root@debian:~# ./test_maps
...
test_map_percpu_stats_hash_of_maps:PASS
test_map_percpu_stats_map_value_size:PASS
test_sk_storage_map:PASS

Signed-off-by: Jinke Han <jinkehan@didiglobal.com>
Signed-off-by: Tao Chen <chen.dylane@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240910144111.1464912-3-chen.dylane@gmail.com
tools/testing/selftests/bpf/map_tests/map_percpu_stats.c