Skip to content

Commit 382d7ef

Browse files
arighihtejun
authored andcommitted
sched_ext: Include remaining task time slice in error state dump
Report the remaining time slice when dumping task information during an error exit. This information can be useful for tracking incorrect or excessively long time slices in schedulers that implement dynamic time slice logic. Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent e4975ac commit 382d7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sched/ext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5218,9 +5218,9 @@ static void scx_dump_task(struct seq_buf *s, struct scx_dump_ctx *dctx,
52185218
scx_get_task_state(p), p->scx.flags & ~SCX_TASK_STATE_MASK,
52195219
p->scx.dsq_flags, ops_state & SCX_OPSS_STATE_MASK,
52205220
ops_state >> SCX_OPSS_QSEQ_SHIFT);
5221-
dump_line(s, " sticky/holding_cpu=%d/%d dsq_id=%s dsq_vtime=%llu",
5221+
dump_line(s, " sticky/holding_cpu=%d/%d dsq_id=%s dsq_vtime=%llu slice=%llu",
52225222
p->scx.sticky_cpu, p->scx.holding_cpu, dsq_id_buf,
5223-
p->scx.dsq_vtime);
5223+
p->scx.dsq_vtime, p->scx.slice);
52245224
dump_line(s, " cpus=%*pb", cpumask_pr_args(p->cpus_ptr));
52255225

52265226
if (SCX_HAS_OP(dump_task)) {

0 commit comments

Comments
 (0)