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

Make these non-serial tests filter BPF programs by intended PID of
a test runner process. This makes it isolated from other parallel tests
that might interfere accidentally.

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