Lines Matching refs:tctx
89 struct task_ctx *tctx;
92 tctx = lookup_task_ctx(p);
93 if (!tctx) {
99 if (tctx->state == TASK_ENQUEUED)
101 p->pid, p->comm, tctx->enqueue_seq);
108 tctx->state = TASK_ENQUEUED;
109 tctx->enq_cpu = scx_bpf_task_cpu(p);
110 tctx->enqueue_seq++;
116 tctx->state = TASK_DISPATCHED;
117 tctx->enq_cpu = -1;
128 struct task_ctx *tctx;
145 tctx = lookup_task_ctx(p);
146 if (!tctx)
158 p->pid, p->comm, tctx->enq_cpu,
159 scx_bpf_task_cpu(p), tctx->enqueue_seq);
163 if (tctx->state != TASK_ENQUEUED)
165 p->pid, p->comm, deq_flags, tctx->state,
166 tctx->enqueue_seq);
170 tctx->state = TASK_NONE;
173 tctx->state = TASK_DISPATCHED;
179 struct task_ctx *tctx;
202 tctx = lookup_task_ctx(p);
203 if (!tctx || tctx->state != TASK_ENQUEUED) {
238 struct task_ctx *tctx;
240 tctx = lookup_task_ctx(p);
241 if (!tctx)
245 if (tctx->state == TASK_ENQUEUED) {
248 p->pid, p->comm, tctx->enq_cpu,
249 scx_bpf_task_cpu(p), tctx->enqueue_seq);
253 if (tctx->enq_cpu >= 0 && tctx->enq_cpu != scx_bpf_task_cpu(p))
255 tctx->enq_cpu = -1;
261 struct task_ctx *tctx;
263 tctx = bpf_task_storage_get(&task_ctx_stor, p, 0,
265 if (!tctx)
269 tctx->state = TASK_NONE;
270 tctx->enq_cpu = -1;
271 tctx->enqueue_seq = 0;