Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andrea Righi and committed by
Tejun Heo
382d7efc e4975ac5

+2 -2
+2 -2
kernel/sched/ext.c
··· 5218 5218 scx_get_task_state(p), p->scx.flags & ~SCX_TASK_STATE_MASK, 5219 5219 p->scx.dsq_flags, ops_state & SCX_OPSS_STATE_MASK, 5220 5220 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", 5222 5222 p->scx.sticky_cpu, p->scx.holding_cpu, dsq_id_buf, 5223 - p->scx.dsq_vtime); 5223 + p->scx.dsq_vtime, p->scx.slice); 5224 5224 dump_line(s, " cpus=%*pb", cpumask_pr_args(p->cpus_ptr)); 5225 5225 5226 5226 if (SCX_HAS_OP(dump_task)) {