]> 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)
commitb8d72dccac38d74d07ec60722b0b72b594d0f584
tree423741aaac9b0ab450e743187865491521e7cabd
parent7c23e4a6d579cd7f6aa32b889ceab7e8a48cfd3a
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