Home
last modified time | relevance | path

Searched refs:replace_prog (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
A Dtcx.c15 struct bpf_prog *replace_prog = NULL; in tcx_prog_attach() local
26 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, in tcx_prog_attach()
28 if (IS_ERR(replace_prog)) { in tcx_prog_attach()
29 ret = PTR_ERR(replace_prog); in tcx_prog_attach()
30 replace_prog = NULL; in tcx_prog_attach()
39 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in tcx_prog_attach()
53 if (replace_prog) in tcx_prog_attach()
54 bpf_prog_put(replace_prog); in tcx_prog_attach()
A Dcgroup.c626 struct bpf_prog *replace_prog, in find_attach_entry() argument
639 if (prog && pl->prog == prog && prog != replace_prog) in find_attach_entry()
648 if (replace_prog) { in find_attach_entry()
650 if (pl->prog == replace_prog) in find_attach_entry()
809 if (link && (prog || replace_prog)) in __cgroup_bpf_attach()
812 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach()
1329 struct bpf_prog *replace_prog = NULL; in cgroup_bpf_prog_attach() local
1340 if (IS_ERR(replace_prog)) { in cgroup_bpf_prog_attach()
1342 return PTR_ERR(replace_prog); in cgroup_bpf_prog_attach()
1350 if (replace_prog) in cgroup_bpf_prog_attach()
[all …]

Completed in 10 milliseconds