Lines Matching refs:replace_prog
559 struct bpf_prog *replace_prog, in find_attach_entry() argument
572 if (prog && pl->prog == prog && prog != replace_prog) in find_attach_entry()
581 if (replace_prog) { in find_attach_entry()
583 if (pl->prog == replace_prog) in find_attach_entry()
608 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() argument
626 if (link && (prog || replace_prog)) in __cgroup_bpf_attach()
629 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach()
652 pl = find_attach_entry(progs, prog, link, replace_prog, in __cgroup_bpf_attach()
725 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach() argument
733 ret = __cgroup_bpf_attach(cgrp, prog, replace_prog, link, type, flags); in cgroup_bpf_attach()
1132 struct bpf_prog *replace_prog = NULL; in cgroup_bpf_prog_attach() local
1142 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, ptype); in cgroup_bpf_prog_attach()
1143 if (IS_ERR(replace_prog)) { in cgroup_bpf_prog_attach()
1145 return PTR_ERR(replace_prog); in cgroup_bpf_prog_attach()
1149 ret = cgroup_bpf_attach(cgrp, prog, replace_prog, NULL, in cgroup_bpf_prog_attach()
1152 if (replace_prog) in cgroup_bpf_prog_attach()
1153 bpf_prog_put(replace_prog); in cgroup_bpf_prog_attach()