| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_sock_fields.c | 49 struct bpf_sock listen_sk = {}; 50 struct bpf_sock srv_sk = {}; 51 struct bpf_sock cli_sk = {}; 61 static void skcpy(struct bpf_sock *dst, in skcpy() 62 const struct bpf_sock *src) in skcpy() 127 struct bpf_sock *sk, *sk_ret; in egress_read_sock_fields() 222 struct bpf_sock *sk; in ingress_read_sock_fields() 254 static __noinline bool sk_dst_port__load_word(struct bpf_sock *sk) in sk_dst_port__load_word() 260 static __noinline bool sk_dst_port__load_half(struct bpf_sock *sk) in sk_dst_port__load_half() 266 static __noinline bool sk_dst_port__load_byte(struct bpf_sock *sk) in sk_dst_port__load_byte() [all …]
|
| H A D | test_sk_lookup_kern.c | 63 struct bpf_sock *sk; in bpf_sk_lookup_test0() 86 struct bpf_sock *sk; in bpf_sk_lookup_test1() 98 struct bpf_sock *sk; in bpf_sk_lookup_uaf() 113 struct bpf_sock *sk; in bpf_sk_lookup_modptr() 128 struct bpf_sock *sk; in bpf_sk_lookup_modptr_or_null() 151 struct bpf_sock *sk; in bpf_sk_lookup_test3() 163 struct bpf_sock *sk; in bpf_sk_lookup_test4()
|
| H A D | test_sk_lookup.c | 103 struct bpf_sock *sk; in redir_port() 122 struct bpf_sock *sk; in redir_ip4() 145 struct bpf_sock *sk; in redir_ip6() 170 struct bpf_sock *sk; in select_sock_a() 185 struct bpf_sock *sk; in select_sock_a_no_reuseport() 211 struct bpf_sock *sk; in sk_assign_eexist() 244 struct bpf_sock *sk; in sk_assign_replace_flag() 276 struct bpf_sock *sk = NULL; in sk_assign_null() 319 struct bpf_sock *sk1 = NULL, *sk2 = NULL; in access_ctx_sk() 385 struct bpf_sock *sk; in ctx_narrow_access() [all …]
|
| H A D | udp_limit.c | 17 int sock(struct bpf_sock *ctx) in sock() 46 int sock_release(struct bpf_sock *ctx) in sock_release()
|
| H A 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()
|
| H A D | test_sk_assign.c | 94 struct bpf_sock *sk; in handle_udp() 126 struct bpf_sock *sk; in handle_tcp()
|
| H A D | freplace_cls_redirect.c | 22 struct bpf_sock *sk; in freplace_cls_redirect_test()
|
| H A D | test_sockmap_update.c | 30 struct bpf_sock *sk; in copy_sock_map()
|
| H A D | socket_cookie_prog.c | 44 struct bpf_sock *sk; in update_cookie()
|
| H A D | tcp_rtt.c | 29 struct bpf_sock *sk; in _sockops()
|
| H A D | cgroup_skb_sk_lookup_kern.c | 47 struct bpf_sock *peer_sk; in is_allowed_peer_cg()
|
| H A D | connect6_prog.c | 34 struct bpf_sock *sk; in connect_v6_prog()
|
| H A D | test_btf_skc_cls_ingress.c | 72 struct bpf_sock *bpf_skc; in handle_ip6_tcp()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/verifier/ |
| H A 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_W, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)), 152 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port)), 170 BPF_LDX_MEM(BPF_H, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 2), 189 BPF_LDX_MEM(BPF_B, BPF_REG_2, BPF_REG_0, offsetof(struct bpf_sock, dst_port)), [all …]
|
| H A 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)),
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A 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)),
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A 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()
|
| H A 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()
|
| H A D | tcp_dumpstats_kern.c | 29 struct bpf_sock *sk; in _sockops()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | filter.c | 5012 BPF_CALL_5(bpf_sock_ops_setsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 5015 return _bpf_setsockopt(bpf_sock->sk, level, optname, optval, optlen); in BPF_CALL_5() 5029 static int bpf_sock_ops_get_syn(struct bpf_sock_ops_kern *bpf_sock, in bpf_sock_ops_get_syn() argument 5032 struct sk_buff *syn_skb = bpf_sock->syn_skb; in bpf_sock_ops_get_syn() 5054 struct sock *sk = bpf_sock->sk; in bpf_sock_ops_get_syn() 5097 BPF_CALL_5(bpf_sock_ops_getsockopt, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_5() argument 5105 ret = bpf_sock_ops_get_syn(bpf_sock, optname, &start); in BPF_CALL_5() 5122 return _bpf_getsockopt(bpf_sock->sk, level, optname, optval, optlen); in BPF_CALL_5() 5136 BPF_CALL_2(bpf_sock_ops_cb_flags_set, struct bpf_sock_ops_kern *, bpf_sock, in BPF_CALL_2() argument 5139 struct sock *sk = bpf_sock->sk; in BPF_CALL_2() [all …]
|
| /OK3568_Linux_fs/kernel/tools/include/uapi/linux/ |
| H A D | bpf.h | 4118 __bpf_md_ptr(struct bpf_sock *, sk); 4172 struct bpf_sock { struct 4333 __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */ 4483 __bpf_md_ptr(struct bpf_sock *, sk); 4535 __bpf_md_ptr(struct bpf_sock *, sk); 4993 __bpf_md_ptr(struct bpf_sock *, sk); 5011 __bpf_md_ptr(struct bpf_sock *, sk); /* Selected socket */
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | bpf.h | 4118 __bpf_md_ptr(struct bpf_sock *, sk); 4172 struct bpf_sock { struct 4333 __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */ 4483 __bpf_md_ptr(struct bpf_sock *, sk); 4535 __bpf_md_ptr(struct bpf_sock *, sk); 4993 __bpf_md_ptr(struct bpf_sock *, sk); 5011 __bpf_md_ptr(struct bpf_sock *, sk); /* Selected socket */
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | skb_ctx.c | 71 skb.sk = (struct bpf_sock *)1; in test_skb_ctx()
|
| H A D | sock_fields.c | 60 static void print_sk(const struct bpf_sock *sk, const char *prefix) in print_sk() 105 struct bpf_sock srv_sk, cli_sk, listen_sk; in check_result()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | bpf_types.h | 17 struct bpf_sock, struct sock)
|