Lines Matching refs:bpf_prog

67 	const struct bpf_prog *prog;  in bpf_prog_run_array_cg()
99 const struct bpf_prog *shim_prog; in __cgroup_bpf_run_lsm_sock()
108 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_sock()
121 const struct bpf_prog *shim_prog; in __cgroup_bpf_run_lsm_socket()
130 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_socket()
143 const struct bpf_prog *shim_prog; in __cgroup_bpf_run_lsm_current()
148 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi)); in __cgroup_bpf_run_lsm_current()
239 struct bpf_prog *prog, in bpf_cgroup_storages_alloc()
373 static struct bpf_prog *prog_list_prog(struct bpf_prog_list *pl) in prog_list_prog()
624 struct bpf_prog *prog, in find_attach_entry()
626 struct bpf_prog *replace_prog, in find_attach_entry()
672 static struct bpf_prog *bpf_get_anchor_prog(u32 flags, u32 id_or_fd) in bpf_get_anchor_prog()
674 struct bpf_prog *prog = ERR_PTR(-EINVAL); in bpf_get_anchor_prog()
683 static struct bpf_prog_list *get_prog_list(struct hlist_head *progs, struct bpf_prog *prog, in get_prog_list()
690 struct bpf_prog *anchor_prog = NULL; in get_prog_list()
752 struct bpf_prog *prog, struct bpf_cgroup_link *link, in insert_pl_to_hlist()
787 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach()
793 struct bpf_prog *old_prog = NULL; in __cgroup_bpf_attach()
796 struct bpf_prog *new_prog = prog ? : link->link.prog; in __cgroup_bpf_attach()
908 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach()
979 struct bpf_prog *new_prog) in __cgroup_bpf_replace()
982 struct bpf_prog *old_prog; in __cgroup_bpf_replace()
1012 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, in cgroup_bpf_replace()
1013 struct bpf_prog *old_prog) in cgroup_bpf_replace()
1037 struct bpf_prog *prog, in find_detach_entry()
1078 static void purge_effective_progs(struct cgroup *cgrp, struct bpf_prog *prog, in purge_effective_progs()
1136 static int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in __cgroup_bpf_detach()
1141 struct bpf_prog *old_prog; in __cgroup_bpf_detach()
1199 static int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog, in cgroup_bpf_detach()
1283 struct bpf_prog *prog; in __cgroup_bpf_query()
1327 enum bpf_prog_type ptype, struct bpf_prog *prog) in cgroup_bpf_prog_attach()
1329 struct bpf_prog *replace_prog = NULL; in cgroup_bpf_prog_attach()
1358 struct bpf_prog *prog; in cgroup_bpf_prog_detach()
1478 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in cgroup_bpf_link_attach()
1819 cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_dev_func_proto()
1837 const struct bpf_prog *prog, in cgroup_dev_is_valid_access()
2366 sysctl_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in sysctl_func_proto()
2393 const struct bpf_prog *prog, in sysctl_is_valid_access()
2422 struct bpf_prog *prog, u32 *target_size) in sysctl_convert_ctx_access()
2509 cg_sockopt_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cg_sockopt_func_proto()
2547 const struct bpf_prog *prog, in cg_sockopt_is_valid_access()
2622 struct bpf_prog *prog, in cg_sockopt_convert_ctx_access()
2699 const struct bpf_prog *prog) in cg_sockopt_get_prologue()
2718 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_common_func_proto()