]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Prevent runqslower from racing on building bpftool
authorAndrii Nakryiko <andriin@fb.com>
Wed, 5 Aug 2020 00:47:57 +0000 (17:47 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Aug 2020 23:37:41 +0000 (16:37 -0700)
commitdfb3f8fca8c702ed57218e851308007ad9995db7
treead2b612cea54be484325839b8e0451c712a8e68b
parent04711a7cde149c288c768408a400b209afc0a8ae
selftests/bpf: Prevent runqslower from racing on building bpftool

runqslower's Makefile is building/installing bpftool into
$(OUTPUT)/sbin/bpftool, which coincides with $(DEFAULT_BPFTOOL). In practice
this means that often when building selftests from scratch (after `make
clean`), selftests are racing with runqslower to simultaneously build bpftool
and one of the two processes fail due to file being busy. Prevent this race by
explicitly order-depending on $(BPFTOOL_DEFAULT).

Fixes: 3a29fec7e698 ("selftests: Refactor build to remove tools/lib/bpf from include path")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200805004757.2960750-1-andriin@fb.com
tools/testing/selftests/bpf/Makefile