aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_sock_fields.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2019-02-09 23:22:26 -0800
committerAlexei Starovoitov <ast@kernel.org>2019-02-10 19:46:17 -0800
commitfb47d1d931f8419645db15ef5fc0dc7a857c8f4e (patch)
tree84f247f2c9ef5015f545d76069493bf87674bd08 /tools/testing/selftests/bpf/test_sock_fields.c
parentbpf: Sync bpf.h to tools/ (diff)
downloadlinux-dev-fb47d1d931f8419645db15ef5fc0dc7a857c8f4e.tar.xz
linux-dev-fb47d1d931f8419645db15ef5fc0dc7a857c8f4e.zip
bpf: Add skb->sk, bpf_sk_fullsock and bpf_tcp_sock tests to test_verifer
This patch tests accessing the skb->sk and the new helpers, bpf_sk_fullsock and bpf_tcp_sock. The errstr of some existing "reference tracking" tests is changed with s/bpf_sock/sock/ and s/socket/sock/ where "sock" is from the verifier's reg_type_str[]. Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions