]> asedeno.scripts.mit.edu Git - linux.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)
commitf0fac2cec2861abc6fc0c094fb2584d9a33f868d
tree961ad3ec3d792a2ea195989729709438de87d127
parent30ff3c59137d00e083f68437665e00895cc271c7
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]