]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Rewrite recvmsg{4,6} asm progs to c in test_sock_addr
authorStanislav Fomichev <sdf@google.com>
Wed, 27 Jan 2021 23:28:52 +0000 (15:28 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 29 Jan 2021 01:09:05 +0000 (02:09 +0100)
commitb0e057a9bc2aa7c9b6d0b76a9fa3f9d849065e64
tree423741aaac9b0ab450e743187865491521e7cabd
parent784ece8d6dd8d559eb21954fa3dc6d642cd6ce42
selftests/bpf: Rewrite recvmsg{4,6} asm progs to c in test_sock_addr

I'll extend them in the next patch. It's easier to work with C
than with asm.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210127232853.3753823-4-sdf@google.com
tools/testing/selftests/bpf/progs/recvmsg4_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/recvmsg6_prog.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_sock_addr.c