Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: make fexit_stress test run in serial mode

fexit_stress is attaching maximum allowed amount of fexit programs to
bpf_fentry_test1 kernel function, which is used by a bunch of other
parallel tests, thus pretty frequently interfering with their execution.

Given the test assumes nothing else is attaching to bpf_fentry_test1,
mark it serial.

Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220511232012.609370-1-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Andrii Nakryiko and committed by
Alexei Starovoitov
5790a2fe 0bed8f37

+1 -1
+1 -1
tools/testing/selftests/bpf/prog_tests/fexit_stress.c
··· 5 5 /* that's kernel internal BPF_MAX_TRAMP_PROGS define */ 6 6 #define CNT 38 7 7 8 - void test_fexit_stress(void) 8 + void serial_test_fexit_stress(void) 9 9 { 10 10 char test_skb[128] = {}; 11 11 int fexit_fd[CNT] = {};