lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250117022254.16521-1-15645113830zzh@gmail.com>
Date: Fri, 17 Jan 2025 10:22:55 +0800
From: zihan zhou <15645113830zzh@...il.com>
To: mingo@...hat.com,
	peterz@...radead.org,
	juri.lelli@...hat.com,
	vincent.guittot@...aro.org,
	dietmar.eggemann@....com,
	rostedt@...dmis.org,
	bsegall@...gle.com,
	mgorman@...e.de,
	vschneid@...hat.com
Cc: linux-kernel@...r.kernel.org,
	zhouzihan30@...com,
	zihan zhou <15645113830zzh@...il.com>,
	yaozhenguo <yaozhenguo@...com>,
	yaowenchao1 <yaowenchao@...com>
Subject: [PATCH V1] sched/debug: change "runnable tasks" to "Tasks on cpu" on sched debug

In sched debug file /sys/kernel/debug/sched/debug, there is a "runnable
tasks" table, but not all tasks in the table are runnable.
It is inappropriate to refer to this table as "runnable tasks", so here it
is changed to "Tasks on CPU %d", like:

Tasks on cpu 31:
 S            task   PID       vruntime   eligible    deadline      
--------------------------------------------------------------------
 S        cpuhp/31   173         0.803286   E           2.153245    
 S    migration/31   174         8.167468   E          11.167468    

PS For the sake of clarity in reality, some table information has been
omitted here.


Signed-off-by: zihan zhou <15645113830zzh@...il.com>
Signed-off-by: yaozhenguo <yaozhenguo@...com>
Signed-off-by: yaowenchao1 <yaowenchao@...com>
---
 kernel/sched/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index a1be00a988bf..687487128400 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -771,7 +771,7 @@ static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
 	struct task_struct *g, *p;
 
 	SEQ_printf(m, "\n");
-	SEQ_printf(m, "runnable tasks:\n");
+	SEQ_printf(m, "Tasks on cpu %d:\n", rq_cpu);
 	SEQ_printf(m, " S            task   PID       vruntime   eligible    "
 		   "deadline             slice          sum-exec      switches  "
 		   "prio         wait-time        sum-sleep       sum-block"
-- 
2.33.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ