mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
bpf: add selftest for tcpbpf
Added a selftest for tcpbpf (sock_ops) that checks that the appropriate callbacks occured and that it can access tcp_sock fields and that their values are correct. Run with command: ./test_tcpbpf_user Adding the flag "-d" will show why it did not pass. Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
d44874910a
commit
d6d4f60c3a
8 changed files with 480 additions and 6 deletions
51
tools/testing/selftests/bpf/tcp_client.py
Executable file
51
tools/testing/selftests/bpf/tcp_client.py
Executable file
83
tools/testing/selftests/bpf/tcp_server.py
Executable file
83
tools/testing/selftests/bpf/tcp_server.py
Executable file
Loading…
Add table
Add a link
Reference in a new issue