Lines Matching refs:old_prog
439 struct bpf_prog *old_prog = NULL; in __cgroup_bpf_attach() local
487 old_prog = pl->prog; in __cgroup_bpf_attach()
506 if (old_prog) in __cgroup_bpf_attach()
507 bpf_prog_put(old_prog); in __cgroup_bpf_attach()
514 if (old_prog) { in __cgroup_bpf_attach()
515 pl->prog = old_prog; in __cgroup_bpf_attach()
519 if (!old_prog) { in __cgroup_bpf_attach()
599 struct bpf_prog *old_prog; in __cgroup_bpf_replace() local
622 old_prog = xchg(&link->link.prog, new_prog); in __cgroup_bpf_replace()
624 bpf_prog_put(old_prog); in __cgroup_bpf_replace()
629 struct bpf_prog *old_prog) in cgroup_bpf_replace() argument
642 if (old_prog && link->prog != old_prog) { in cgroup_bpf_replace()
699 struct bpf_prog *old_prog; in __cgroup_bpf_detach() local
721 old_prog = pl->prog; in __cgroup_bpf_detach()
735 if (old_prog) in __cgroup_bpf_detach()
736 bpf_prog_put(old_prog); in __cgroup_bpf_detach()
742 pl->prog = old_prog; in __cgroup_bpf_detach()