Home
last modified time | relevance | path

Searched refs:bpf_sock (Results 1 – 25 of 51) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_sock.c84 __imm_const(bpf_sock_family, offsetof(struct bpf_sock, family)) in sk_family_non_fullsock_field_1()
104 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in sk_sk_type_fullsock_field_1()
143 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in no_null_check_on_ret_1()
167 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in sk_sk_type_fullsock_field_2()
190 __imm_const(bpf_sock_family, offsetof(struct bpf_sock, family)) in sk_family_non_fullsock_field_2()
214 __imm_const(bpf_sock_state, offsetof(struct bpf_sock, state)) in sk_sk_state_narrow_load()
286 __imm_const(__imm_0, offsetof(struct bpf_sock, dst_port) + 2), in dst_port_half_load_invalid_1()
311 __imm_const(__imm_0, offsetof(struct bpf_sock, dst_port) + 1), in sk_dst_port_byte_load()
411 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in sk_sk_type_narrow_load()
862 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in field_bpf_sk_release_sk_1()
[all …]
H A Dtest_sk_lookup_kern.c62 struct bpf_sock *sk; in sk_lookup_success()
85 struct bpf_sock *sk; in sk_lookup_success_simple()
97 struct bpf_sock *sk; in err_use_after_free()
112 struct bpf_sock *sk; in err_modify_sk_pointer()
126 struct bpf_sock *sk; in err_modify_sk_or_null_pointer()
148 struct bpf_sock *sk; in err_release_twice()
160 struct bpf_sock *sk; in err_release_unchecked()
H A Dtest_sock_fields.c49 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()
260 static __noinline bool sk_dst_port__load_word(struct bpf_sock *sk) in sk_dst_port__load_word()
266 static __noinline bool sk_dst_port__load_half(struct bpf_sock *sk) in sk_dst_port__load_half()
275 static __noinline bool sk_dst_port__load_byte(struct bpf_sock *sk) in sk_dst_port__load_byte()
[all …]
H A Dverifier_jeq_infer_not_null.c57 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in socket_for_jne_false_branch()
95 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in unchanged_for_jne_true_branch()
131 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in socket_for_jeq_true_branch()
167 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)) in unchanged_for_jeq_false_branch()
H A Dtest_sk_lookup.c111 struct bpf_sock *sk; in redir_port()
130 struct bpf_sock *sk; in redir_ip4()
153 struct bpf_sock *sk; in redir_ip6()
178 struct bpf_sock *sk; in select_sock_a()
193 struct bpf_sock *sk; in select_sock_a_no_reuseport()
219 struct bpf_sock *sk; in sk_assign_eexist()
252 struct bpf_sock *sk; in sk_assign_replace_flag()
284 struct bpf_sock *sk = NULL; in sk_assign_null()
393 struct bpf_sock *sk; in ctx_narrow_access()
577 struct bpf_sock *sk; in sk_assign_esocknosupport()
[all …]
H A Dudp_limit.c17 int sock(struct bpf_sock *ctx) in sock()
45 int sock_release(struct bpf_sock *ctx) in sock_release()
H A Dkfunc_call_test.c10 struct bpf_sock *sk = skb->sk; in kfunc_call_test4()
27 struct bpf_sock *sk = skb->sk; in kfunc_call_test2()
42 struct bpf_sock *sk = skb->sk; in kfunc_call_test1()
H A Dnetns_cookie_prog.c33 struct bpf_sock *sk = ctx->sk; in get_netns_cookie_sockops()
65 struct bpf_sock *sk = msg->sk; in get_netns_cookie_sk_msg()
H A Dcgrp_ls_attach_cgroup.c28 struct bpf_sock *sk; in set_cookie()
57 struct bpf_sock *sk; in update_cookie_sockops()
H A Dsockopt_sk.c35 struct bpf_sock *sk; in _getsockopt()
145 struct bpf_sock *sk; in _setsockopt()
H A Dverifier_ref_tracking.c1055 __imm_const(bpf_sock_mark, offsetof(struct bpf_sock, mark)), in reference_tracking_write_to_member()
1188 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)), in __flag()
1224 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)), in __flag()
1254 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)), in __flag()
1284 __imm_const(bpf_sock_src_port, offsetof(struct bpf_sock, src_port)), in after_bpf_sk_release_sk()
1315 __imm_const(bpf_sock_type, offsetof(struct bpf_sock, type)), in bpf_sk_release_listen_sk()
H A Dtest_tcp_check_syncookie_kern.c26 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 Drecvmsg4_prog.c19 struct bpf_sock *sk; in recvmsg4_prog()
H A Dbind_perm.c12 struct bpf_sock *sk; in bind_prog()
H A Dfreplace_cls_redirect.c22 struct bpf_sock *sk; in freplace_cls_redirect_test()
H A Dkfunc_call_test_subprog.c11 struct bpf_sock *sk = skb->sk; in f1()
H A Dtest_sk_assign.c104 struct bpf_sock *sk; in handle_udp()
135 struct bpf_sock *sk; in handle_tcp()
H A Drecvmsg6_prog.c22 struct bpf_sock *sk; in recvmsg6_prog()
H A Dtest_sockmap_update.c30 struct bpf_sock *sk; in copy_sock_map()
H A Dtcp_rtt.c28 struct bpf_sock *sk; in _sockops()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sock.c55 offsetof(struct bpf_sock, src_ip6[0])),
68 offsetof(struct bpf_sock, mark)),
81 offsetof(struct bpf_sock, src_ip4)),
94 offsetof(struct bpf_sock, src_port)),
207 offsetof(struct bpf_sock, src_port)),
233 offsetof(struct bpf_sock, src_ip4)),
237 offsetof(struct bpf_sock, src_port)),
263 offsetof(struct bpf_sock, src_ip4)),
267 offsetof(struct bpf_sock, src_port)),
294 offsetof(struct bpf_sock, src_ip4)),
[all …]
H A Dcgroup_getset_retval_hooks.h5 BPF_RETVAL_HOOK(sock_create, "cgroup/sock_create", bpf_sock, 0)
25 BPF_RETVAL_HOOK(sock_release, "cgroup/sock_release", bpf_sock, 0)
/openbmc/linux/samples/bpf/
H A Dtest_cgrp2_sock.c44 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 Dsock_flags.bpf.c7 int bpf_prog1(struct bpf_sock *sk) in bpf_prog1()
30 int bpf_prog2(struct bpf_sock *sk) in bpf_prog2()
H A Dtcp_dumpstats_kern.c29 struct bpf_sock *sk; in _sockops()

123