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()
414 /* compute a chain of effective programs for a given cgroup:
430 /* count number of effective programs by walking parents */ in compute_effective_progs()
441 /* populate the array with effective progs */ in compute_effective_progs()
482 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs()
491 * cgroup_bpf_inherit() - inherit effective programs from parent
499 #define NR ARRAY_SIZE(cgrp->bpf.effective) in cgroup_bpf_inherit()
543 /* allocate and recompute effective prog arrays */ in update_effective_progs()
574 /* oom while computing effective. Free all computed effective arrays in update_effective_progs()
772 /* Swap updated BPF program for given link in effective program arrays across
793 /* find position of link in effective progs array */ in replace_effective_prog()
810 desc->bpf.effective[atype], in replace_effective_prog()
938 /* recompute effective prog array in place */ in purge_effective_progs()
945 /* find position of link or prog in effective progs array */ in purge_effective_progs()
964 desc->bpf.effective[atype], in purge_effective_progs()
1014 /* mark it deleted, so it's ignored while recomputing effective */ in __cgroup_bpf_detach()
1020 /* if update effective array failed replace the prog with a dummy prog*/ in __cgroup_bpf_detach()
1063 struct bpf_prog_array *effective; in __cgroup_bpf_query() local
1089 effective = rcu_dereference_protected(cgrp->bpf.effective[atype], in __cgroup_bpf_query()
1091 total_cnt += bpf_prog_array_length(effective); in __cgroup_bpf_query()
1097 /* always output uattr->query.attach_flags as 0 during effective query */ in __cgroup_bpf_query()
1114 effective = rcu_dereference_protected(cgrp->bpf.effective[atype], in __cgroup_bpf_query()
1116 cnt = min_t(int, bpf_prog_array_length(effective), total_cnt); in __cgroup_bpf_query()
1117 ret = bpf_prog_array_copy_to_user(effective, prog_ids, cnt); in __cgroup_bpf_query()