Searched refs:bpf_sockopt (Results 1 – 15 of 15) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt.c | 111 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 …]
|
D | ctx_rewrite.c | 162 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/ |
D | cgroup_getset_retval_setsockopt.c | 17 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()
|
D | cgroup_getset_retval_getsockopt.c | 18 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()
|
D | sockopt_multi.c | 11 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()
|
D | sockopt_inherit.c | 39 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()
|
D | sockopt_sk.c | 30 int _getsockopt(struct bpf_sockopt *ctx) in _getsockopt() 140 int _setsockopt(struct bpf_sockopt *ctx) in _setsockopt()
|
D | sockopt_qos_to_cc.c | 15 int sockopt_qos_to_cc(struct bpf_sockopt *ctx) in sockopt_qos_to_cc()
|
D | test_ldsx_insn.c | 66 int _getsockopt(volatile struct bpf_sockopt *ctx) in _getsockopt()
|
/Linux-v6.6/tools/testing/selftests/bpf/ |
D | cgroup_getset_retval_hooks.h | 19 BPF_RETVAL_HOOK(getsockopt, "cgroup/getsockopt", bpf_sockopt, 0) 20 BPF_RETVAL_HOOK(setsockopt, "cgroup/setsockopt", bpf_sockopt, 0)
|
/Linux-v6.6/kernel/bpf/ |
D | cgroup.c | 2345 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/ |
D | prog_cgroup_sockopt.rst | 15 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/ |
D | bpf_types.h | 58 struct bpf_sockopt, struct bpf_sockopt_kern)
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | bpf.h | 7159 struct bpf_sockopt { struct
|
/Linux-v6.6/include/uapi/linux/ |
D | bpf.h | 7159 struct bpf_sockopt { struct
|