OSDN Git Service

Improve stability of find_vma BPF test
authorMykola Lysenko <mykolal@fb.com>
Tue, 8 Mar 2022 20:04:49 +0000 (12:04 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Mar 2022 01:39:29 +0000 (17:39 -0800)
commitba83af059153441d77bc2dbb4cd22421b8a34107
tree57ffe5074f8f389437e8ea468731b0b3f2e599e1
parent1fd49864127cd0d33aea8de4cf0858344c9c7265
Improve stability of find_vma BPF test

Remove unneeded spleep and increase length of dummy CPU
intensive computation to guarantee test process execution.
Also, complete aforemention computation as soon as
test success criteria is met

Signed-off-by: Mykola Lysenko <mykolal@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220308200449.1757478-4-mykolal@fb.com
tools/testing/selftests/bpf/prog_tests/find_vma.c