/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | tcx.c | 15 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()
|
H A D | cgroup.c | 559 struct bpf_prog *replace_prog, in find_attach_entry() 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() 600 * @replace_prog: Previously attached program to replace if BPF_F_REPLACE is set 608 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() 626 if (link && (prog || replace_prog)) in __cgroup_bpf_attach() 627 /* only either link or prog/replace_prog can be specified */ in __cgroup_bpf_attach() 629 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach() 630 /* replace_prog implie in __cgroup_bpf_attach() 556 find_attach_entry(struct hlist_head *progs, struct bpf_prog *prog, struct bpf_cgroup_link *link, struct bpf_prog *replace_prog, bool allow_multi) find_attach_entry() argument 607 __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, struct bpf_prog *replace_prog, struct bpf_cgroup_link *link, enum bpf_attach_type type, u32 flags) __cgroup_bpf_attach() argument 724 cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, struct bpf_prog *replace_prog, struct bpf_cgroup_link *link, enum bpf_attach_type type, u32 flags) cgroup_bpf_attach() argument 1133 struct bpf_prog *replace_prog = NULL; cgroup_bpf_prog_attach() local [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | cgroup.c | 385 struct bpf_prog *replace_prog, in find_attach_entry() 398 if (prog && pl->prog == prog && prog != replace_prog) in find_attach_entry() 407 if (replace_prog) { in find_attach_entry() 409 if (pl->prog == replace_prog) in find_attach_entry() 426 * @replace_prog: Previously attached program to replace if BPF_F_REPLACE is set 434 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() 450 if (link && (prog || replace_prog)) in __cgroup_bpf_attach() 451 /* only either link or prog/replace_prog can be specified */ in __cgroup_bpf_attach() 453 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach() 454 /* replace_prog implie in __cgroup_bpf_attach() 382 find_attach_entry(struct list_head *progs, struct bpf_prog *prog, struct bpf_cgroup_link *link, struct bpf_prog *replace_prog, bool allow_multi) find_attach_entry() argument 433 __cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, struct bpf_prog *replace_prog, struct bpf_cgroup_link *link, enum bpf_attach_type type, u32 flags) __cgroup_bpf_attach() argument 817 struct bpf_prog *replace_prog = NULL; cgroup_bpf_prog_attach() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | bpf-cgroup.h | 97 struct bpf_prog *prog, struct bpf_prog *replace_prog, 108 struct bpf_prog *prog, struct bpf_prog *replace_prog,
|
/kernel/linux/linux-5.10/kernel/cgroup/ |
H A D | cgroup.c | 6595 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach() 6603 ret = __cgroup_bpf_attach(cgrp, prog, replace_prog, link, type, flags); in cgroup_bpf_attach() 6594 cgroup_bpf_attach(struct cgroup *cgrp, struct bpf_prog *prog, struct bpf_prog *replace_prog, struct bpf_cgroup_link *link, enum bpf_attach_type type, u32 flags) cgroup_bpf_attach() argument
|