]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, tests: Add tests for atomic operations
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Mon, 9 Aug 2021 09:18:27 +0000 (11:18 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Aug 2021 09:33:28 +0000 (11:33 +0200)
commitc542a932156a67db6f3ac5121c242e3e5822e629
tree5906bda33f29c67ee9b45a11b195ae2d0e358636
parentb0ff95b648120d525ab0c85e743685477b76063f
bpf, tests: Add tests for atomic operations

Tests for each atomic arithmetic operation and BPF_XCHG, derived from
old BPF_XADD tests. The tests include BPF_W/DW and BPF_FETCH variants.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210809091829.810076-13-johan.almbladh@anyfinetworks.com
lib/test_bpf.c