BPF_MAX_TRAMP_LINKS is smaller on s390x than on x86. Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> --- tools/testing/selftests/bpf/prog_tests/fexit_stress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/fexit_stress.c b/tools/testing/selftests/bpf/prog_tests/fexit_stress.c index 5a7e6011f6bf..329950f572cc 100644 --- a/tools/testing/selftests/bpf/prog_tests/fexit_stress.c +++ b/tools/testing/selftests/bpf/prog_tests/fexit_stress.c @@ -2,8 +2,12 @@ /* Copyright (c) 2019 Facebook */ #include <test_progs.h> -/* that's kernel internal BPF_MAX_TRAMP_PROGS define */ +/* that's kernel internal BPF_MAX_TRAMP_LINKS define */ +#if defined(__s390x__) +#define CNT 27 +#else #define CNT 38 +#endif void serial_test_fexit_stress(void) { -- 2.39.1