]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add batch ops testing to array bpf map
authorBrian Vazquez <brianvv@google.com>
Wed, 15 Jan 2020 18:43:08 +0000 (10:43 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Jan 2020 22:00:35 +0000 (14:00 -0800)
commit4c94bb6793b5f1f9611dd4cedfc460c272b7fefe
tree961ad3ec3d792a2ea195989729709438de87d127
parent57e5972d1b7d3c66a6c8f449e20803d64b613df7
selftests/bpf: Add batch ops testing to array bpf map

Tested bpf_map_lookup_batch() and bpf_map_update_batch()
functionality.

  $ ./test_maps
      ...
        test_array_map_batch_ops:PASS
      ...

Signed-off-by: Brian Vazquez <brianvv@google.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200115184308.162644-10-brianvv@google.com
tools/testing/selftests/bpf/map_tests/array_map_batch_ops.c [new file with mode: 0644]