[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250918170602.2441024-1-arighi@nvidia.com>
Date: Thu, 18 Sep 2025 19:06:02 +0200
From: Andrea Righi <arighi@...dia.com>
To: Tejun Heo <tj@...nel.org>,
David Vernet <void@...ifault.com>,
Changwoo Min <changwoo@...lia.com>
Cc: sched-ext@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH v2 sched_ext/for-6.18] sched_ext: Add migration-disabled counter to error state dump
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.
Signed-off-by: Andrea Righi <arighi@...dia.com>
---
Changes in v2:
- Abbreviate migration_disabled= to nomig= (Tejun)
- Link to v1: https://lore.kernel.org/all/20250918092928.402242-1-arighi@nvidia.com/
kernel/sched/ext.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
index 4e6d83b3b7775..d33e6edef65c8 100644
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -4266,7 +4266,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 nomig=%u", cpumask_pr_args(p->cpus_ptr),
+ p->migration_disabled);
if (SCX_HAS_OP(sch, dump_task)) {
ops_dump_init(s, " ");
--
2.51.0
Powered by blists - more mailing lists