selftests/bpf: Query BPF_MAX_TRAMP_LINKS using BTF
authorIlya Leoshkevich <iii@linux.ibm.com>
Sat, 28 Jan 2023 00:06:22 +0000 (01:06 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 28 Jan 2023 20:29:41 +0000 (12:29 -0800)
commit8fb9fb2f1728a56a2a6dba79de6f17975def658d
tree0d5e256420bfbde3757130f7b96e481290d2ba4f
parent390a07a921b3b1fe544cb2921de7abb94ebb7f26
selftests/bpf: Query BPF_MAX_TRAMP_LINKS using BTF

Do not hard-code the value, since for s390x it will be smaller than
for x86.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230128000650.1516334-4-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/fexit_stress.c
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_progs.h