MAX_TRAMP_PROGS on s390x is smaller than on x86. Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> --- tools/testing/selftests/bpf/prog_tests/trampoline_count.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/bpf/prog_tests/trampoline_count.c b/tools/testing/selftests/bpf/prog_tests/trampoline_count.c index 564b75bc087f..3d2e25492f40 100644 --- a/tools/testing/selftests/bpf/prog_tests/trampoline_count.c +++ b/tools/testing/selftests/bpf/prog_tests/trampoline_count.c @@ -2,7 +2,11 @@ #define _GNU_SOURCE #include <test_progs.h> +#if defined(__s390x__) +#define MAX_TRAMP_PROGS 27 +#else #define MAX_TRAMP_PROGS 38 +#endif struct inst { struct bpf_object *obj; -- 2.39.1