Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2397373pxm; Fri, 25 Feb 2022 00:50:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfmvRokddfjf8mFLdCUvqUEidLCGTCarQNVKun4N3feMxRdlg/GRxqTGhy1WUAKw4yu3kS X-Received: by 2002:a17:903:283:b0:14d:6e68:27cb with SMTP id j3-20020a170903028300b0014d6e6827cbmr6381847plr.80.1645779054448; Fri, 25 Feb 2022 00:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645779054; cv=none; d=google.com; s=arc-20160816; b=pk1rx1Dm0Dk6N16Fqiff0TjeYrYvuZsay/ZxlSs1vSj/j1GUiNxFin4L5bTT53jZXO xpStu2aMXIaV9jpj1gKnTF6l1R7yDshG8OP+OP0peb3t8H2vP/LMzbLnpL5v7sYTlpCH OB+NfQEWLCPWWdUGd4te2dKCPUEh9+qluIZcTdOyaQybUvmSFVJUdJa8UdmlnH7Od9PT hRj9fWiY6QQFIPXsJOvop0pEpdpFnrbHhFshRcqbQCiOzBf0N8HyD31PQlPVFkj1f2kP zoiox3yH3xsZG6NJ22YAE9AAQDMzR9HqpmEsf5xUQ4pHKhiSXWS2audInBuR6TmoITR7 oQmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZLd12dK3K2MRFZBh0oXjhfsypJUmBnHP4rtHgol8AsI=; b=LzhJioFs53apB17sVhE06E/sQMrFtI8opjUfBEYtaigU9UitimlVbbxmtqWHR/Ay0w U6cR227el38fMsDSSusALQMQ2Bmiqipr7/DwP6J09FFHhJh7rUkDm1XgfSvWwkIAbDKE tpIqcytTrF8WJhdCZR/VzgSqvSaPZxsdLllcmo2gS30mFI9KnI3hyp9MwPp1ZX/rb3dJ XtbqnvT4m3xmaSTv3rUGQO0wGcWzDbCgnxBepDKEFnfgQBys46HGj9V4S0OhJEpYbJuz d3kjjh/xiu7LNrkPMrZJUTGTjkOx2ofDEoPpEATDlaI8yLl/Vq5e1sFVlruJWcmVDbvT K0qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a6556ca000000b0037462d8c54bsi1402243pgs.408.2022.02.25.00.50.38; Fri, 25 Feb 2022 00:50:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237286AbiBYEKG (ORCPT + 99 others); Thu, 24 Feb 2022 23:10:06 -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: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.31.2.13] X-ClientProxiedBy: BJEXCAS01.didichuxing.com (172.20.36.235) To BJSGEXMBX11.didichuxing.com (172.20.15.141) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 task_struct *p) SPLIT_NS(schedstat_val_or_zero(p->stats.sum_block_runtime))); #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) 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"); -- 2.14.1