diff options
author | Ilya Leoshkevich <[email protected]> | 2023-01-29 20:04:54 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-01-29 19:16:28 -0800 |
commit | 7ce878ca81bca7811e669db4c394b86780e0dbe4 (patch) | |
tree | 626d3d9f9689a214a129015a5f07ffa2566dcc9f /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 07dcbd7325cee92d5798536f417b9b1da497f9da (diff) |
selftests/bpf: Fix sk_assign on s390x
sk_assign is failing on an s390x machine running Debian "bookworm" for
2 reasons: legacy server_map definition and uninitialized addrlen in
recvfrom() call.
Fix by adding a new-style server_map definition and dropping addrlen
(recvfrom() allows NULL values for src_addr and addrlen).
Since the test should support tc built without libbpf, build the prog
twice: with the old-style definition and with the new-style definition,
then select the right one at runtime. This could be done at compile
time too, but this would not be cross-compilation friendly.
Signed-off-by: Ilya Leoshkevich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions