bpf: Add test_sock_fields for skb->sk and bpf_tcp_sock
This patch adds a C program to show the usage on skb->sk and bpf_tcp_sock. Acked-by:Alexei Starovoitov <ast@kernel.org> Signed-off-by:
Martin KaFai Lau <kafai@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- tools/testing/selftests/bpf/Makefile 4 additions, 2 deletionstools/testing/selftests/bpf/Makefile
- tools/testing/selftests/bpf/bpf_helpers.h 4 additions, 0 deletionstools/testing/selftests/bpf/bpf_helpers.h
- tools/testing/selftests/bpf/test_sock_fields.c 327 additions, 0 deletionstools/testing/selftests/bpf/test_sock_fields.c
- tools/testing/selftests/bpf/test_sock_fields_kern.c 152 additions, 0 deletionstools/testing/selftests/bpf/test_sock_fields_kern.c
Loading
Please register or sign in to comment