aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/perf_buffer.c
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2021-02-26 12:49:34 -0800
committerAlexei Starovoitov <ast@kernel.org>2021-02-26 13:23:53 -0800
commit6b9e3331347ee9e84fe5c71d3eba7ec204f9bb25 (patch)
treeab8a104aef4dfda8e7f437a936e385b36dba4975 /tools/testing/selftests/bpf/prog_tests/perf_buffer.c
parent9de7f0fdab326a37c9f741f0f6c0f1cbc320a5ab (diff)
selftests/bpf: Add arraymap test for bpf_for_each_map_elem() helper
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 <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210226204934.3885756-1-yhs@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions