selftests/bpf: Improve missed_kprobe_recursion test robustness
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 11 Oct 2023 22:37:25 +0000 (15:37 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 16 Oct 2023 11:49:18 +0000 (13:49 +0200)
commit08a7078feacf419305d86d36b974c48347f3abb0
treec881e184693c4e36f3bd40fee50138a1b21bff77
parent2d78928c9cf7bee08c3e2344e6e1755412855448
selftests/bpf: Improve missed_kprobe_recursion test robustness

Given missed_kprobe_recursion is non-serial and uses common testing
kfuncs to count number of recursion misses it's possible that some other
parallel test can trigger extraneous recursion misses. So we can't
expect exactly 1 miss. Relax conditions and expect at least one.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20231011223728.3188086-3-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/missed.c