Re: [PATCH bpf-next v3 11/11] selftests/bpf: add arraymap test for bpf_for_each_map_elem() helper
From: Andrii Nakryiko <hidden>
Date: 2021-02-25 23:27:38
From: Andrii Nakryiko <hidden>
Date: 2021-02-25 23:27:38
On Thu, Feb 25, 2021 at 1:36 AM Yonghong Song [off-list ref] wrote:
A test is added for arraymap and percpu arraymap. The test also
exercises the early return for the helper which does not
traverse all elements.
$ ./test_progs -n 45
#45/1 hash_map:OK
#45/2 array_map:OK
#45 for_each:OK
Summary: 1/2 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Yonghong Song <redacted>
---same question about "classifier/", but otherwise: Acked-by: Andrii Nakryiko <andrii@kernel.org>
.../selftests/bpf/prog_tests/for_each.c | 58 ++++++++++++++++++ .../bpf/progs/for_each_array_map_elem.c | 61 +++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/for_each_array_map_elem.c
[...]