Lines Matching full:effective
63 array = rcu_dereference(cgrp->effective[atype]); in bpf_prog_run_array_cg()
325 cgrp->bpf.effective[atype], in cgroup_bpf_release()
412 /* compute a chain of effective programs for a given cgroup:
428 /* count number of effective programs by walking parents */ in compute_effective_progs()
439 /* populate the array with effective progs */ in compute_effective_progs()
466 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs()
475 * cgroup_bpf_inherit() - inherit effective programs from parent
483 #define NR ARRAY_SIZE(cgrp->bpf.effective) in cgroup_bpf_inherit()
527 /* allocate and recompute effective prog arrays */ in update_effective_progs()
558 /* oom while computing effective. Free all computed effective arrays in update_effective_progs()
755 /* Swap updated BPF program for given link in effective program arrays across
776 /* find position of link in effective progs array */ in replace_effective_prog()
793 desc->bpf.effective[atype], in replace_effective_prog()
921 /* recompute effective prog array in place */ in purge_effective_progs()
928 /* find position of link or prog in effective progs array */ in purge_effective_progs()
947 desc->bpf.effective[atype], in purge_effective_progs()
997 /* mark it deleted, so it's ignored while recomputing effective */ in __cgroup_bpf_detach()
1003 /* if update effective array failed replace the prog with a dummy prog*/ in __cgroup_bpf_detach()
1046 struct bpf_prog_array *effective; in __cgroup_bpf_query() local
1072 effective = rcu_dereference_protected(cgrp->bpf.effective[atype], in __cgroup_bpf_query()
1074 total_cnt += bpf_prog_array_length(effective); in __cgroup_bpf_query()
1080 /* always output uattr->query.attach_flags as 0 during effective query */ in __cgroup_bpf_query()
1097 effective = rcu_dereference_protected(cgrp->bpf.effective[atype], in __cgroup_bpf_query()
1099 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt); in __cgroup_bpf_query()
1100 ret = bpf_prog_array_copy_to_user(effective, prog_ids, cnt); in __cgroup_bpf_query()