Lines Matching full:effective

134 				cgrp->bpf.effective[type],  in cgroup_bpf_release()
221 /* compute a chain of effective programs for a given cgroup:
237 /* count number of effective programs by walking parents */ in compute_effective_progs()
248 /* populate the array with effective progs */ in compute_effective_progs()
275 old_array = rcu_replace_pointer(cgrp->bpf.effective[type], old_array, in activate_effective_progs()
284 * cgroup_bpf_inherit() - inherit effective programs from parent
292 #define NR ARRAY_SIZE(cgrp->bpf.effective) in cgroup_bpf_inherit()
336 /* allocate and recompute effective prog arrays */ in update_effective_progs()
367 /* oom while computing effective. Free all computed effective arrays in update_effective_progs()
519 /* Swap updated BPF program for given link in effective program arrays across
540 /* find position of link in effective progs array */ in replace_effective_prog()
557 desc->bpf.effective[type], in replace_effective_prog()
684 /* mark it deleted, so it's ignored while recomputing effective */ in __cgroup_bpf_detach()
719 struct bpf_prog_array *effective; in __cgroup_bpf_query() local
723 effective = rcu_dereference_protected(cgrp->bpf.effective[type], in __cgroup_bpf_query()
727 cnt = bpf_prog_array_length(effective); in __cgroup_bpf_query()
744 return bpf_prog_array_copy_to_user(effective, prog_ids, cnt); in __cgroup_bpf_query()
1013 cgrp->bpf.effective[type], skb, __bpf_prog_run_save_cb); in __cgroup_bpf_run_filter_skb()
1015 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], skb, in __cgroup_bpf_run_filter_skb()
1046 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], sk, BPF_PROG_RUN); in __cgroup_bpf_run_filter_sk()
1090 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], &ctx, BPF_PROG_RUN); in __cgroup_bpf_run_filter_sock_addr()
1119 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], sock_ops, in __cgroup_bpf_run_filter_sock_ops()
1138 allow = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], &ctx, in __cgroup_bpf_check_dev_permission()
1270 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], &ctx, BPF_PROG_RUN); in __cgroup_bpf_run_filter_sysctl()
1294 prog_array = rcu_dereference(cgrp->bpf.effective[attach_type]); in __cgroup_bpf_prog_array_is_empty()
1365 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[BPF_CGROUP_SETSOCKOPT], in __cgroup_bpf_run_filter_setsockopt()
1452 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[BPF_CGROUP_GETSOCKOPT], in __cgroup_bpf_run_filter_getsockopt()