linux-stable/tools/testing/selftests/bpf/map_tests
Hou Tao 2f553b032c selftsets/bpf: Retry map update for non-preallocated per-cpu map
BPF CI failed due to map_percpu_stats_percpu_hash from time to time [1].
It seems that the failure reason is per-cpu bpf memory allocator may not
be able to allocate per-cpu pointer successfully and it can not refill
free llist timely, and bpf_map_update_elem() will return -ENOMEM.

So mitigate the problem by retrying the update operation for
non-preallocated per-cpu map.

[1]: https://github.com/kernel-patches/bpf/actions/runs/6713177520/job/18244865326?pr=5909

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231101032455.3808547-4-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-11-09 18:58:40 -08:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
array_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
htab_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
lpm_trie_map_batch_ops.c selftests/bpf: Free the allocated resources after test case succeeds 2022-09-22 16:41:27 -07:00
map_in_map_batch_ops.c selftests/bpf: Fix compiler warnings reported in -O2 mode 2023-10-06 20:17:28 +02:00
map_percpu_stats.c selftsets/bpf: Retry map update for non-preallocated per-cpu map 2023-11-09 18:58:40 -08:00
sk_storage_map.c bpf: Set and check spin lock value in sk_storage_map_test 2022-11-21 11:45:38 -08:00
task_storage_map.c selftests/bpf: Destroy the skeleton when CONFIG_PREEMPT is off 2022-09-22 16:41:27 -07:00