Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A 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)),
234 offsetof(struct bpf_sockopt, optlen)),
241 offsetof(struct bpf_sockopt, retval)),
262 offsetof(struct bpf_sockopt, optlen)),
[all …]
H A 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),
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A 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()
H A 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()
H A 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()
H A Dsockopt_sk.c30 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt()
140 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
H A Dsockopt_qos_to_cc.c15 int sockopt_qos_to_cc(struct bpf_sockopt *ctx) in sockopt_qos_to_cc()
H A Dtest_ldsx_insn.c66 int _getsockopt(volatile struct bpf_sockopt *ctx) in _getsockopt()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dcgroup_getset_retval_hooks.h19 BPF_RETVAL_HOOK(getsockopt, "cgroup/getsockopt", bpf_sockopt, 0)
20 BPF_RETVAL_HOOK(setsockopt, "cgroup/setsockopt", bpf_sockopt, 0)
/openbmc/linux/kernel/bpf/
H A Dcgroup.c2386 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
2393 case offsetof(struct bpf_sockopt, level): in cg_sockopt_is_valid_access()
2398 case offsetof(struct bpf_sockopt, optlen): in cg_sockopt_is_valid_access()
2406 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_is_valid_access()
2411 case offsetof(struct bpf_sockopt, optval): in cg_sockopt_is_valid_access()
2421 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_is_valid_access()
2454 case offsetof(struct bpf_sockopt, sk): in cg_sockopt_convert_ctx_access()
2457 case offsetof(struct bpf_sockopt, level): in cg_sockopt_convert_ctx_access()
2469 case offsetof(struct bpf_sockopt, optlen): in cg_sockopt_convert_ctx_access()
2475 case offsetof(struct bpf_sockopt, retval): in cg_sockopt_convert_ctx_access()
[all …]
/openbmc/linux/Documentation/bpf/
H A 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)
/openbmc/linux/include/linux/
H A Dbpf_types.h58 struct bpf_sockopt, struct bpf_sockopt_kern)
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h7196 struct bpf_sockopt { struct
/openbmc/linux/include/uapi/linux/
H A Dbpf.h7193 struct bpf_sockopt { struct