Message ID | 20230125213817.1424447-4-iii@linux.ibm.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | BPF |
Headers | show |
Series | Support bpf trampoline for s390x | expand |
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) {
BPF_MAX_TRAMP_LINKS is smaller on s390x than on x86. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> --- tools/testing/selftests/bpf/prog_tests/fexit_stress.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)