]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
sched_ext: Add migration-disabled counter to error state dump
authorAndrea Righi <arighi@nvidia.com>
Thu, 18 Sep 2025 17:06:02 +0000 (19:06 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 18 Sep 2025 18:54:57 +0000 (08:54 -1000)
Include the task's migration-disabled counter when dumping task state
during an error exit.

This can help diagnose cases where tasks can get stuck, because they're
unable to migrate elsewhere.

tj: s/nomig/no_mig/ for readability and consistency with other keys.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c

index 477eccf0233888d6e4167fb15ed6a8d71d6e1b38..f5873f8ed669a37510fd0798f14c0005bb12fb0a 100644 (file)
@@ -4167,7 +4167,8 @@ static void scx_dump_task(struct seq_buf *s, struct scx_dump_ctx *dctx,
                  p->scx.sticky_cpu, p->scx.holding_cpu, dsq_id_buf);
        dump_line(s, "      dsq_vtime=%llu slice=%llu weight=%u",
                  p->scx.dsq_vtime, p->scx.slice, p->scx.weight);
-       dump_line(s, "      cpus=%*pb", cpumask_pr_args(p->cpus_ptr));
+       dump_line(s, "      cpus=%*pb no_mig=%u", cpumask_pr_args(p->cpus_ptr),
+                 p->migration_disabled);
 
        if (SCX_HAS_OP(sch, dump_task)) {
                ops_dump_init(s, "    ");