diff options
author | Yonghong Song <yhs@fb.com> | 2018-01-27 02:06:08 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-27 04:06:22 +0300 |
commit | af32efeede9e188fefe0af51d117c31cf281de65 (patch) | |
tree | dc262d4c79d65428bb0ca56b377d732a1ff9438e /tools/testing/selftests/bpf/Makefile | |
parent | 6dd1ec6c7a2c304e9e2e2edd9e7ccb8e8791d36a (diff) | |
download | linux-af32efeede9e188fefe0af51d117c31cf281de65.tar.xz |
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>
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 98688352208b..bf05bc5e36e5 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -11,7 +11,7 @@ ifneq ($(wildcard $(GENHDR)),) endif CFLAGS += -Wall -O2 -I$(APIDIR) -I$(LIBDIR) -I$(GENDIR) $(GENFLAGS) -I../../../include -LDLIBS += -lcap -lelf -lrt +LDLIBS += -lcap -lelf -lrt -lpthread TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \ test_align test_verifier_log test_dev_cgroup test_tcpbpf_user |