bpf_sock 3007 include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3304 include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3356 include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3606 include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 4217 net/core/filter.c BPF_CALL_5(bpf_sockopt_event_output, struct bpf_sock_ops_kern *, bpf_sock, bpf_sock 4237 net/core/filter.c BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, bpf_sock 4240 net/core/filter.c struct sock *sk = bpf_sock->sk; bpf_sock 4341 net/core/filter.c bool reinit = bpf_sock->op > BPF_SOCK_OPS_NEEDS_ECN; bpf_sock 4399 net/core/filter.c BPF_CALL_5(bpf_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, bpf_sock 4402 net/core/filter.c struct sock *sk = bpf_sock->sk; bpf_sock 4482 net/core/filter.c BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, bpf_sock 4485 net/core/filter.c struct sock *sk = bpf_sock->sk; bpf_sock 6644 net/core/filter.c case offsetof(struct bpf_sock, bound_dev_if): bpf_sock 6645 net/core/filter.c case offsetof(struct bpf_sock, mark): bpf_sock 6646 net/core/filter.c case offsetof(struct bpf_sock, priority): bpf_sock 6653 net/core/filter.c case bpf_ctx_range(struct bpf_sock, src_ip4): bpf_sock 6660 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, src_ip6[0], src_ip6[3]): bpf_sock 6667 net/core/filter.c case bpf_ctx_range(struct bpf_sock, src_port): bpf_sock 6687 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, type, priority): bpf_sock 6699 net/core/filter.c if (off < 0 || off >= sizeof(struct bpf_sock)) bpf_sock 6705 net/core/filter.c case offsetof(struct bpf_sock, state): bpf_sock 6706 net/core/filter.c case offsetof(struct bpf_sock, family): bpf_sock 6707 net/core/filter.c case offsetof(struct bpf_sock, type): bpf_sock 6708 net/core/filter.c case offsetof(struct bpf_sock, protocol): bpf_sock 6709 net/core/filter.c case offsetof(struct bpf_sock, dst_port): bpf_sock 6710 net/core/filter.c case offsetof(struct bpf_sock, src_port): bpf_sock 6711 net/core/filter.c case bpf_ctx_range(struct bpf_sock, src_ip4): bpf_sock 6712 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, src_ip6[0], src_ip6[3]): bpf_sock 6713 net/core/filter.c case bpf_ctx_range(struct bpf_sock, dst_ip4): bpf_sock 6714 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, dst_ip6[0], dst_ip6[3]): bpf_sock 7593 net/core/filter.c case offsetof(struct bpf_sock, bound_dev_if): bpf_sock 7604 net/core/filter.c case offsetof(struct bpf_sock, mark): bpf_sock 7615 net/core/filter.c case offsetof(struct bpf_sock, priority): bpf_sock 7626 net/core/filter.c case offsetof(struct bpf_sock, family): bpf_sock 7637 net/core/filter.c case offsetof(struct bpf_sock, type): bpf_sock 7646 net/core/filter.c case offsetof(struct bpf_sock, protocol): bpf_sock 7655 net/core/filter.c case offsetof(struct bpf_sock, src_ip4): bpf_sock 7664 net/core/filter.c case offsetof(struct bpf_sock, dst_ip4): bpf_sock 7673 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, src_ip6[0], src_ip6[3]): bpf_sock 7676 net/core/filter.c off -= offsetof(struct bpf_sock, src_ip6[0]); bpf_sock 7691 net/core/filter.c case bpf_ctx_range_till(struct bpf_sock, dst_ip6[0], dst_ip6[3]): bpf_sock 7694 net/core/filter.c off -= offsetof(struct bpf_sock, dst_ip6[0]); bpf_sock 7708 net/core/filter.c case offsetof(struct bpf_sock, src_port): bpf_sock 7718 net/core/filter.c case offsetof(struct bpf_sock, dst_port): bpf_sock 7728 net/core/filter.c case offsetof(struct bpf_sock, state): bpf_sock 89 samples/bpf/hbm_kern.h struct bpf_sock *sk; bpf_sock 9 samples/bpf/sock_flags_kern.c int bpf_prog1(struct bpf_sock *sk) bpf_sock 32 samples/bpf/sock_flags_kern.c int bpf_prog2(struct bpf_sock *sk) bpf_sock 29 samples/bpf/tcp_dumpstats_kern.c struct bpf_sock *sk; bpf_sock 44 samples/bpf/test_cgrp2_sock.c BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), bpf_sock 45 samples/bpf/test_cgrp2_sock.c BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), bpf_sock 62 samples/bpf/test_cgrp2_sock.c BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), bpf_sock 63 samples/bpf/test_cgrp2_sock.c BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), bpf_sock 70 samples/bpf/test_cgrp2_sock.c BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), bpf_sock 71 samples/bpf/test_cgrp2_sock.c BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), bpf_sock 3007 tools/include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3304 tools/include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3356 tools/include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 3606 tools/include/uapi/linux/bpf.h __bpf_md_ptr(struct bpf_sock *, sk); bpf_sock 170 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_sock *(*bpf_sk_lookup_tcp)(void *ctx, bpf_sock 175 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_sock *(*bpf_skc_lookup_tcp)(void *ctx, bpf_sock 180 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_sock *(*bpf_sk_lookup_udp)(void *ctx, bpf_sock 185 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sk_release)(struct bpf_sock *sk) = bpf_sock 197 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_sock *(*bpf_sk_fullsock)(struct bpf_sock *sk) = bpf_sock 199 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_tcp_sock *(*bpf_tcp_sock)(struct bpf_sock *sk) = bpf_sock 201 tools/testing/selftests/bpf/bpf_helpers.h static struct bpf_sock *(*bpf_get_listener_sock)(struct bpf_sock *sk) = bpf_sock 205 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_tcp_check_syncookie)(struct bpf_sock *sk, bpf_sock 227 tools/testing/selftests/bpf/bpf_helpers.h static void *(*bpf_sk_storage_get)(void *map, struct bpf_sock *sk, bpf_sock 230 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_sk_storage_delete)(void *map, struct bpf_sock *sk) = bpf_sock 233 tools/testing/selftests/bpf/bpf_helpers.h static long long (*bpf_tcp_gen_syncookie)(struct bpf_sock *sk, void *ip, bpf_sock 64 tools/testing/selftests/bpf/prog_tests/skb_ctx.c skb.sk = (struct bpf_sock *)1; bpf_sock 26 tools/testing/selftests/bpf/progs/connect4_prog.c struct bpf_sock *sk; bpf_sock 34 tools/testing/selftests/bpf/progs/connect6_prog.c struct bpf_sock *sk; bpf_sock 44 tools/testing/selftests/bpf/progs/socket_cookie_prog.c struct bpf_sock *sk; bpf_sock 30 tools/testing/selftests/bpf/progs/tcp_rtt.c struct bpf_sock *sk; bpf_sock 63 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 85 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 97 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 112 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 127 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 150 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 162 tools/testing/selftests/bpf/progs/test_sk_lookup_kern.c struct bpf_sock *sk; bpf_sock 41 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c __type(value, struct bpf_sock); bpf_sock 82 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c static void skcpy(struct bpf_sock *dst, bpf_sock 83 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c const struct bpf_sock *src) bpf_sock 147 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c struct bpf_sock *sk, *sk_ret; bpf_sock 219 tools/testing/selftests/bpf/progs/test_sock_fields_kern.c struct bpf_sock *sk, *sk_ret; bpf_sock 26 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, bpf_sock 49 tools/testing/selftests/bpf/progs/test_tcp_check_syncookie_kern.c struct bpf_sock *sk; bpf_sock 53 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_ip6[0])), bpf_sock 70 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, mark)), bpf_sock 87 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_ip4)), bpf_sock 104 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_port)), bpf_sock 235 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_ip6[3])), bpf_sock 239 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_port)), bpf_sock 265 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_ip4)), bpf_sock 269 tools/testing/selftests/bpf/test_sock.c offsetof(struct bpf_sock, src_port)), bpf_sock 82 tools/testing/selftests/bpf/test_sock_fields.c static void print_sk(const struct bpf_sock *sk) bpf_sock 125 tools/testing/selftests/bpf/test_sock_fields.c struct bpf_sock srv_sk, cli_sk, listen_sk; bpf_sock 591 tools/testing/selftests/bpf/verifier/ref_tracking.c offsetof(struct bpf_sock, mark)), bpf_sock 695 tools/testing/selftests/bpf/verifier/ref_tracking.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, offsetof(struct bpf_sock, type)), bpf_sock 722 tools/testing/selftests/bpf/verifier/ref_tracking.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)), bpf_sock 744 tools/testing/selftests/bpf/verifier/ref_tracking.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)), bpf_sock 767 tools/testing/selftests/bpf/verifier/ref_tracking.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, src_port)), bpf_sock 788 tools/testing/selftests/bpf/verifier/ref_tracking.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)), bpf_sock 20 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, family)), bpf_sock 34 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, type)), bpf_sock 62 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), bpf_sock 81 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), bpf_sock 98 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, family)), bpf_sock 116 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, state)), bpf_sock 134 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)), bpf_sock 152 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 1), bpf_sock 171 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_ip6[0]) + 1), bpf_sock 189 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), bpf_sock 207 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, protocol)), bpf_sock 225 tools/testing/selftests/bpf/verifier/sock.c BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetofend(struct bpf_sock, state)), bpf_sock 328 tools/testing/selftests/bpf/verifier/unpriv.c offsetof(struct bpf_sock, mark)), bpf_sock 361 tools/testing/selftests/bpf/verifier/unpriv.c offsetof(struct bpf_sock, mark)),