]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_map
authorYonghong Song <yhs@fb.com>
Fri, 26 Jan 2018 23:06:08 +0000 (15:06 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Jan 2018 01:06:22 +0000 (17:06 -0800)
commit94f08702c43488555ea8bf1a373343dcb5672aa2
treedc262d4c79d65428bb0ca56b377d732a1ff9438e
parent24302e0d523ca90efe3f7ef66e6d51a54dd1db76
tools/bpf: add a multithreaded stress test in bpf selftests test_lpm_map

The new test will spawn four threads, doing map update, delete, lookup
and get_next_key in parallel. It is able to reproduce the issue in the
previous commit found by syzbot and Eric Dumazet.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_lpm_map.c