aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/fentry_fexit.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2020-07-31 13:49:57 -0700
committerAlexei Starovoitov <[email protected]>2020-08-01 23:10:42 -0700
commitb5cc46cdff76cdfe2cb45ab2636d847efb1012cc (patch)
tree0ffeb2e274d95724b100c61ae7d1a9770a7ef259 /tools/testing/selftests/bpf/prog_tests/fentry_fexit.c
parent5a6b1a206d1f399c9ea19173bd9a945a657f1fbf (diff)
selftests/bpf: Fix spurious test failures in core_retro selftest
core_retro selftest uses BPF program that's triggered on sys_enter system-wide, but has no protection from some unrelated process doing syscall while selftest is running. This leads to occasional test failures with unexpected PIDs being returned. Fix that by filtering out all processes that are not test_progs process. Fixes: fcda189a5133 ("selftests/bpf: Add test relying only on CO-RE and no recent kernel features") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/fentry_fexit.c')
0 files changed, 0 insertions, 0 deletions