Lines Matching refs:level
175 static struct fcg_cgrp_ctx *find_ancestor_cgrp_ctx(struct cgroup *cgrp, int level) in find_ancestor_cgrp_ctx() argument
179 cgrp = bpf_cgroup_ancestor(cgrp, level); in find_ancestor_cgrp_ctx()
194 int level; in cgrp_refresh_hweight() local
207 bpf_for(level, 0, cgrp->level + 1) { in cgrp_refresh_hweight()
211 cgc = find_ancestor_cgrp_ctx(cgrp, level); in cgrp_refresh_hweight()
215 if (!level) { in cgrp_refresh_hweight()
221 pcgc = find_ancestor_cgrp_ctx(cgrp, level - 1); in cgrp_refresh_hweight()
454 bpf_for(idx, 0, cgrp->level) { in update_active_weight_sums()
455 int level = cgrp->level - idx; in update_active_weight_sums() local
459 cgc = find_ancestor_cgrp_ctx(cgrp, level); in update_active_weight_sums()
462 if (level) { in update_active_weight_sums()
463 pcgc = find_ancestor_cgrp_ctx(cgrp, level - 1); in update_active_weight_sums()
594 if (cgrp->level) { in BPF_STRUCT_OPS()
595 pcgc = find_ancestor_cgrp_ctx(cgrp, cgrp->level - 1); in BPF_STRUCT_OPS()