Lines Matching refs:bpf_prog

37 	const struct bpf_prog *prog;
69 const struct bpf_prog *shim_prog;
77 /*shim_prog = container_of(insn, struct bpf_prog, insnsi);*/
78 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
91 const struct bpf_prog *shim_prog;
99 /*shim_prog = container_of(insn, struct bpf_prog, insnsi);*/
100 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
113 const struct bpf_prog *shim_prog;
117 /*shim_prog = container_of(insn, struct bpf_prog, insnsi);*/
118 shim_prog = (const struct bpf_prog *)((void *)insn - offsetof(struct bpf_prog, insnsi));
209 struct bpf_prog *prog,
260 * It drops cgroup and bpf_prog refcounts, and marks bpf_link as defunct. It
340 /* Get underlying bpf_prog of bpf_prog_list entry, regardless if it's through
343 static struct bpf_prog *prog_list_prog(struct bpf_prog_list *pl)
557 struct bpf_prog *prog,
559 struct bpf_prog *replace_prog,
608 struct bpf_prog *prog, struct bpf_prog *replace_prog,
613 struct bpf_prog *old_prog = NULL;
616 struct bpf_prog *new_prog = prog ? : link->link.prog;
725 struct bpf_prog *prog, struct bpf_prog *replace_prog,
788 * @new_prog: &struct bpf_prog for the target BPF program with its refcnt
795 struct bpf_prog *new_prog)
798 struct bpf_prog *old_prog;
827 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog,
828 struct bpf_prog *old_prog)
852 struct bpf_prog *prog,
893 static void purge_effective_progs(struct cgroup *cgrp, struct bpf_prog *prog,
950 static int __cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
954 struct bpf_prog *old_prog;
1008 static int cgroup_bpf_detach(struct cgroup *cgrp, struct bpf_prog *prog,
1087 struct bpf_prog *prog;
1131 enum bpf_prog_type ptype, struct bpf_prog *prog)
1133 struct bpf_prog *replace_prog = NULL;
1161 struct bpf_prog *prog;
1274 int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
1614 cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
1636 const struct bpf_prog *prog,
2165 sysctl_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
2196 const struct bpf_prog *prog,
2225 struct bpf_prog *prog, u32 *target_size)
2312 cg_sockopt_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
2354 const struct bpf_prog *prog,
2429 struct bpf_prog *prog,
2506 const struct bpf_prog *prog)
2525 cgroup_common_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
2573 cgroup_current_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)