Home
last modified time | relevance | path

Searched refs:bpf_sockopt (Results 1 – 15 of 15) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c111 offsetof(struct bpf_sockopt, optval)),
130 offsetof(struct bpf_sockopt, level)),
137 offsetof(struct bpf_sockopt, retval)),
160 offsetof(struct bpf_sockopt, level)),
173 offsetof(struct bpf_sockopt, optname)),
180 offsetof(struct bpf_sockopt, retval)),
202 offsetof(struct bpf_sockopt, retval)),
221 offsetof(struct bpf_sockopt, optname)),
234 offsetof(struct bpf_sockopt, optlen)),
241 offsetof(struct bpf_sockopt, retval)),
[all …]
Dctx_rewrite.c162 N(CGROUP_SOCKOPT, struct bpf_sockopt, sk),
167 N(CGROUP_SOCKOPT, struct bpf_sockopt, level),
173 N(CGROUP_SOCKOPT, struct bpf_sockopt, optname),
179 N(CGROUP_SOCKOPT, struct bpf_sockopt, optlen),
185 N(CGROUP_SOCKOPT, struct bpf_sockopt, retval),
197 N(CGROUP_SOCKOPT, struct bpf_sockopt, optval),
202 N(CGROUP_SOCKOPT, struct bpf_sockopt, optval_end),
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dcgroup_getset_retval_setsockopt.c17 int get_retval(struct bpf_sockopt *ctx) in get_retval()
30 int set_eunatch(struct bpf_sockopt *ctx) in set_eunatch()
45 int set_eisconn(struct bpf_sockopt *ctx) in set_eisconn()
60 int legacy_eperm(struct bpf_sockopt *ctx) in legacy_eperm()
Dcgroup_getset_retval_getsockopt.c18 int get_retval(struct bpf_sockopt *ctx) in get_retval()
32 int set_eisconn(struct bpf_sockopt *ctx) in set_eisconn()
47 int clear_retval(struct bpf_sockopt *ctx) in clear_retval()
Dsockopt_multi.c11 int _getsockopt_child(struct bpf_sockopt *ctx) in _getsockopt_child()
40 int _getsockopt_parent(struct bpf_sockopt *ctx) in _getsockopt_parent()
69 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dsockopt_inherit.c39 static __inline struct sockopt_inherit *get_storage(struct bpf_sockopt *ctx) in get_storage()
53 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt()
84 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dsockopt_sk.c30 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt()
140 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
Dsockopt_qos_to_cc.c15 int sockopt_qos_to_cc(struct bpf_sockopt *ctx) in sockopt_qos_to_cc()
Dtest_ldsx_insn.c66 int _getsockopt(volatile struct bpf_sockopt *ctx) in _getsockopt()
/Linux-v6.6/tools/testing/selftests/bpf/
Dcgroup_getset_retval_hooks.h19 BPF_RETVAL_HOOK(getsockopt, "cgroup/getsockopt", bpf_sockopt, 0)
20 BPF_RETVAL_HOOK(setsockopt, "cgroup/setsockopt", bpf_sockopt, 0)
/Linux-v6.6/kernel/bpf/
Dcgroup.c2345 if (off < 0 || off >= sizeof(struct bpf_sockopt)) in cg_sockopt_is_valid_access()
2353 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
2358 case offsetof(struct bpf_sockopt, optname): in cg_sockopt_is_valid_access()
2360 case offsetof(struct bpf_sockopt, level): in cg_sockopt_is_valid_access()
2365 case offsetof(struct bpf_sockopt, optlen): in cg_sockopt_is_valid_access()
2373 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_is_valid_access()
2378 case offsetof(struct bpf_sockopt, optval): in cg_sockopt_is_valid_access()
2383 case offsetof(struct bpf_sockopt, optval_end): in cg_sockopt_is_valid_access()
2388 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
2421 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_convert_ctx_access()
[all …]
/Linux-v6.6/Documentation/bpf/
Dprog_cgroup_sockopt.rst15 The context (``struct bpf_sockopt``) has associated socket (``sk``) and
113 int getsockopt(struct bpf_sockopt *ctx)
139 int setsockopt(struct bpf_sockopt *ctx)
/Linux-v6.6/include/linux/
Dbpf_types.h58 struct bpf_sockopt, struct bpf_sockopt_kern)
/Linux-v6.6/tools/include/uapi/linux/
Dbpf.h7159 struct bpf_sockopt { struct
/Linux-v6.6/include/uapi/linux/
Dbpf.h7159 struct bpf_sockopt { struct