Lines Matching refs:cpuc
152 struct fcg_cpu_ctx *cpuc; in find_cpu_ctx() local
155 cpuc = bpf_map_lookup_elem(&cpu_ctx, &idx); in find_cpu_ctx()
156 if (!cpuc) { in find_cpu_ctx()
160 return cpuc; in find_cpu_ctx()
729 struct fcg_cpu_ctx *cpuc; in BPF_STRUCT_OPS() local
735 cpuc = find_cpu_ctx(); in BPF_STRUCT_OPS()
736 if (!cpuc) in BPF_STRUCT_OPS()
739 if (!cpuc->cur_cgid) in BPF_STRUCT_OPS()
742 if (time_before(now, cpuc->cur_at + cgrp_slice_ns)) { in BPF_STRUCT_OPS()
743 if (scx_bpf_dsq_move_to_local(cpuc->cur_cgid)) { in BPF_STRUCT_OPS()
756 cgrp = bpf_cgroup_from_id(cpuc->cur_cgid); in BPF_STRUCT_OPS()
771 (cpuc->cur_at + cgrp_slice_ns - now) * in BPF_STRUCT_OPS()
781 cpuc->cur_at = now; in BPF_STRUCT_OPS()
784 cpuc->cur_cgid = 0; in BPF_STRUCT_OPS()
789 if (try_pick_next_cgroup(&cpuc->cur_cgid)) { in BPF_STRUCT_OPS()