selftests/bpf: Add test for bpf hash map iterators
authorYonghong Song <yhs@fb.com>
Thu, 23 Jul 2020 18:41:20 +0000 (11:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:16:33 +0000 (20:16 -0700)
commit2a7c2fff7dd6e87634e47ddb2d2c7f272708dbbf
tree36faf9beadac197f6f4d955ef0ceb5148b22c8a8
parentd8793aca708602c676372b03d6493972457524af
selftests/bpf: Add test for bpf hash map iterators

Two subtests are added.
  $ ./test_progs -n 4
  ...
  #4/18 bpf_hash_map:OK
  #4/19 bpf_percpu_hash_map:OK
  ...

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200723184120.590916-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
tools/testing/selftests/bpf/progs/bpf_iter_bpf_hash_map.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/bpf_iter_bpf_percpu_hash_map.c [new file with mode: 0644]