Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4462214pxt; Wed, 11 Aug 2021 06:41:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzporvLMBqUrzIKU8q3abd+8gdQvM7jjTX8S3pQIJIdaBW3AEaVHO+iFS49nY11Ppd15MDg X-Received: by 2002:aa7:dbc8:: with SMTP id v8mr11221131edt.242.1628689281978; Wed, 11 Aug 2021 06:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628689281; cv=none; d=google.com; s=arc-20160816; b=n7MHIrWAmTtlFxUKQHai4OFdaO4H4/f36CJGi+KyWGG2BqRAVJ0AH4L23ZInlwSNYs BCHo7NXGPTH9Mu0y0R7tWUxfMqMvTVvgFmu2qQ9nX6qMnECdlOvxs/6hbUcJQ1AoHFwV 4IOgK05f9vdKk5HZTVxojQEJfeL3dNzivM8Z6ojvoT4EWOX2PVKYDmAB25uc6yGydB5s jBWSqn3luJSmbuvM6K4MyXtWKbfylsc98nSDBbj9cOppufdGP6/AR5axTQcj32mXYlQf HxLs/GK2osPPUgLxCBIEVJf0FSlHeNlwVWn308tCGERBPc7ltKwq3TXHySyNBGN47bN3 eW/w== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7KiO78aSuc7ViiyAF5igR+VMxQdleQqc6NRDGGVG9Po=; b=cQ5oTYnZLv5/jRsrmp5MNrCtNqmsbCv7if0g9vDqXT34fzNjT50YNmmODcHOHTHLDJ xg30NxXwjFcHOnVJLpHr9C2cX8VMhEpBKw/vqh7eGntX5H2g5dkZAQ8LYsNAUEACBsTG OcnV31uOMyOJXyCkJuPdpFgE2SqIxKmUf9BPCPPVw86RvoGZEJsF4xfxi5m++kjNEJLR Lf02rDbgQwqN87ia+8PYeL+JrDdRxZdBvKTVQlfHMsAa4t3iRTouWHAmutaDBOdbhI1/ /gMVV/cNiq8NLiY/kvRaLFIJ5lnLPkJYsxj1BWKG5PWpKNqjtMdGX+ueB36TPcGuRmSM z7Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dq7si12224474ejc.101.2021.08.11.06.40.54; Wed, 11 Aug 2021 06:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbhHKNhc (ORCPT + 99 others); Wed, 11 Aug 2021 09:37:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:52766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbhHKNhb (ORCPT ); Wed, 11 Aug 2021 09:37:31 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 085EC604D7; Wed, 11 Aug 2021 13:37:06 +0000 (UTC) Date: Wed, 11 Aug 2021 09:36:59 -0400 From: Steven Rostedt To: Shirish S Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , "Mel Gorman" , Daniel Bristot de Oliveira , Subject: Re: [PATCH] sched/debug: print column titles of show_state_filter()[V2] Message-ID: <20210811093659.4177e890@oasis.local.home> In-Reply-To: <20210714032705.79726-1-shirish.s@amd.com> References: <20210714032705.79726-1-shirish.s@amd.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Jul 2021 08:57:05 +0530 Shirish S wrote: > This addition in the debug output shall improve readablitly.. > Its not intuitive for users that the pid printed in last column > is of parent process. Hi Shirish, perhaps add a before and after output to show people what you are trying to improve, and that can help the maintainers see if it is a useful patch or not. Note, I'm only a reviewer of scheduling code, I'm not one that can pull in the patch. -- Steve > > v2: Dropped #ifdef logic > > Signed-off-by: Shirish S > Suggested-by: Steven Rostedt > --- > kernel/sched/core.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 2d9ff40f4661..22cee4c0f4b1 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -8194,6 +8194,9 @@ void show_state_filter(unsigned int state_filter) > { > struct task_struct *g, *p; > > + pr_info(" task%*s", BITS_PER_LONG == 32 ? 38 : 46, > + "PC stack pid father\n"); > + > rcu_read_lock(); > for_each_process_thread(g, p) { > /*