From nobody Tue Jun 23 22:33:37 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6669BC433F5 for ; Fri, 25 Feb 2022 04:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237289AbiBYEKI (ORCPT ); Thu, 24 Feb 2022 23:10:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbiBYEKE (ORCPT ); Thu, 24 Feb 2022 23:10:04 -0500 X-Greylist: delayed 483 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 24 Feb 2022 20:09:31 PST Received: from mailgate01.didichuxing.com (mx2.didichuxing.com [36.110.17.22]) by lindbergh.monkeyblade.net (Postfix) with SMTP id C389B254560 for ; Thu, 24 Feb 2022 20:09:31 -0800 (PST) Received: from mail.didiglobal.com (unknown [172.20.36.141]) by mailgate01.didichuxing.com (Maildata Gateway V2.8) with ESMTP id E6919D80C3E06; Fri, 25 Feb 2022 12:01:24 +0800 (CST) Received: from localhost.localdomain (172.31.2.13) by BJSGEXMBX11.didichuxing.com (172.20.15.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 25 Feb 2022 12:01:24 +0800 X-MD-Sfrom: wanghonglei@didiglobal.com X-MD-SrcIP: 172.20.36.141 From: Honglei Wang To: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , CC: Honglei Wang , Honglei Wang Subject: [PATCH] sched debug: refine the output of sched-debug Date: Fri, 25 Feb 2022 12:01:17 +0800 Message-ID: <20220225040117.40235-1-wanghonglei@didichuxing.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.31.2.13] X-ClientProxiedBy: BJEXCAS01.didichuxing.com (172.20.36.235) To BJSGEXMBX11.didichuxing.com (172.20.15.141) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Several items including sum-block, numabalancing associates and task group path were missed in the header of sched debug info. Let's add them to make the info clearer. Signed-off-by: Honglei Wang --- kernel/sched/debug.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index aa29211de1bf..ca1316f1def6 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -548,7 +548,7 @@ print_task(struct seq_file *m, struct rq *rq, struct ta= sk_struct *p) SPLIT_NS(schedstat_val_or_zero(p->stats.sum_block_runtime))); =20 #ifdef CONFIG_NUMA_BALANCING - SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id(p)); + SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id= (p)); #endif #ifdef CONFIG_CGROUP_SCHED SEQ_printf_task_group_path(m, task_group(p), " %s") @@ -563,8 +563,16 @@ static void print_rq(struct seq_file *m, struct rq *rq= , int rq_cpu) =20 SEQ_printf(m, "\n"); SEQ_printf(m, "runnable tasks:\n"); - SEQ_printf(m, " S task PID tree-key switches prio" - " wait-time sum-exec sum-sleep\n"); + SEQ_printf(m, " S task PID tree-key switches prio"= ); + SEQ_printf(m, " wait-time sum-exec sum-sleep"); + SEQ_printf(m, " sum-block"); +#ifdef CONFIG_NUMA_BALANCING + SEQ_printf(m, " node numa-group"); +#endif +#ifdef CONFIG_CGROUP_SCHED + SEQ_printf(m, " task-group"); +#endif + SEQ_printf(m, "\n"); SEQ_printf(m, "-------------------------------------------------------" "------------------------------------------------------\n"); =20 --=20 2.14.1