/Linux-v5.4/tools/testing/selftests/bpf/progs/ |
D | test_sk_lookup_kern.c | 63 struct bpf_sock *sk; in bpf_sk_lookup_test0() 85 struct bpf_sock *sk; in bpf_sk_lookup_test1() 97 struct bpf_sock *sk; in bpf_sk_lookup_uaf() 112 struct bpf_sock *sk; in bpf_sk_lookup_modptr() 127 struct bpf_sock *sk; in bpf_sk_lookup_modptr_or_null() 150 struct bpf_sock *sk; in bpf_sk_lookup_test3() 162 struct bpf_sock *sk; in bpf_sk_lookup_test4()
|
D | test_sock_fields_kern.c | 41 __type(value, struct bpf_sock); 82 static void skcpy(struct bpf_sock *dst, in skcpy() 83 const struct bpf_sock *src) in skcpy() 147 struct bpf_sock *sk, *sk_ret; in egress_read_sock_fields() 219 struct bpf_sock *sk, *sk_ret; in ingress_read_sock_fields()
|
D | test_tcp_check_syncookie_kern.c | 26 static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, in gen_syncookie() 49 struct bpf_sock *sk; in check_syncookie()
|
D | socket_cookie_prog.c | 44 struct bpf_sock *sk; in update_cookie()
|
D | tcp_rtt.c | 30 struct bpf_sock *sk; in _sockops()
|
D | connect4_prog.c | 26 struct bpf_sock *sk; in connect_v4_prog()
|
D | connect6_prog.c | 34 struct bpf_sock *sk; in connect_v6_prog()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_sock.c | 53 offsetof(struct bpf_sock, src_ip6[0])), 70 offsetof(struct bpf_sock, mark)), 87 offsetof(struct bpf_sock, src_ip4)), 104 offsetof(struct bpf_sock, src_port)), 235 offsetof(struct bpf_sock, src_ip6[3])), 239 offsetof(struct bpf_sock, src_port)), 265 offsetof(struct bpf_sock, src_ip4)), 269 offsetof(struct bpf_sock, src_port)),
|
D | bpf_helpers.h | 170 static struct bpf_sock *(*bpf_sk_lookup_tcp)(void *ctx, 175 static struct bpf_sock *(*bpf_skc_lookup_tcp)(void *ctx, 180 static struct bpf_sock *(*bpf_sk_lookup_udp)(void *ctx, 185 static int (*bpf_sk_release)(struct bpf_sock *sk) = 197 static struct bpf_sock *(*bpf_sk_fullsock)(struct bpf_sock *sk) = 199 static struct bpf_tcp_sock *(*bpf_tcp_sock)(struct bpf_sock *sk) = 201 static struct bpf_sock *(*bpf_get_listener_sock)(struct bpf_sock *sk) = 205 static int (*bpf_tcp_check_syncookie)(struct bpf_sock *sk, 227 static void *(*bpf_sk_storage_get)(void *map, struct bpf_sock *sk, 230 static int (*bpf_sk_storage_delete)(void *map, struct bpf_sock *sk) = [all …]
|
D | test_sock_fields.c | 82 static void print_sk(const struct bpf_sock *sk) in print_sk() 125 struct bpf_sock srv_sk, cli_sk, listen_sk; in check_result()
|
/Linux-v5.4/samples/bpf/ |
D | test_cgrp2_sock.c | 44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load() 62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load() 63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load() 70 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), in prog_load() 71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
|
D | sock_flags_kern.c | 9 int bpf_prog1(struct bpf_sock *sk) in bpf_prog1() 32 int bpf_prog2(struct bpf_sock *sk) in bpf_prog2()
|
D | tcp_dumpstats_kern.c | 29 struct bpf_sock *sk; in _sockops()
|
D | hbm_kern.h | 89 struct bpf_sock *sk; in get_tcp_info()
|
/Linux-v5.4/tools/testing/selftests/bpf/verifier/ |
D | sock.c | 20 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, family)), 34 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, offsetof(struct bpf_sock, type)), 62 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), 81 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), 98 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, family)), 116 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, state)), 134 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)), 152 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 1), 171 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_ip6[0]) + 1), 189 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)), [all …]
|
D | ref_tracking.c | 591 offsetof(struct bpf_sock, mark)), 695 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, offsetof(struct bpf_sock, type)), 722 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)), 744 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)), 767 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, src_port)), 788 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, offsetof(struct bpf_sock, type)),
|
D | unpriv.c | 328 offsetof(struct bpf_sock, mark)), 361 offsetof(struct bpf_sock, mark)),
|
/Linux-v5.4/include/uapi/linux/ |
D | bpf.h | 3007 __bpf_md_ptr(struct bpf_sock *, sk); 3060 struct bpf_sock { struct 3304 __bpf_md_ptr(struct bpf_sock *, sk); 3356 __bpf_md_ptr(struct bpf_sock *, sk); 3606 __bpf_md_ptr(struct bpf_sock *, sk);
|
/Linux-v5.4/tools/include/uapi/linux/ |
D | bpf.h | 3007 __bpf_md_ptr(struct bpf_sock *, sk); 3060 struct bpf_sock { struct 3304 __bpf_md_ptr(struct bpf_sock *, sk); 3356 __bpf_md_ptr(struct bpf_sock *, sk); 3606 __bpf_md_ptr(struct bpf_sock *, sk);
|
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | skb_ctx.c | 64 skb.sk = (struct bpf_sock *)1; in test_skb_ctx()
|
/Linux-v5.4/net/core/ |
D | filter.c | 4215 BPF_CALL_5(bpf_sockopt_event_output, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 4235 BPF_CALL_5(bpf_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 4238 struct sock *sk = bpf_sock->sk; in BPF_CALL_5() 4339 bool reinit = bpf_sock->op > BPF_SOCK_OPS_NEEDS_ECN; in BPF_CALL_5() 4397 BPF_CALL_5(bpf_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 4400 struct sock *sk = bpf_sock->sk; in BPF_CALL_5() 4480 BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_2() argument 4483 struct sock *sk = bpf_sock->sk; in BPF_CALL_2() 6643 case offsetof(struct bpf_sock, bound_dev_if): in __sock_filter_check_attach_type() 6644 case offsetof(struct bpf_sock, mark): in __sock_filter_check_attach_type() [all …]
|