Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp530879pxt; Thu, 12 Aug 2021 04:10:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU6UOAvTV6QJxPO2tOMLVtCdCXIG1d0x/7GSA+to0D1yQUCOr4gEdhYCFRbOt9LSG8aW+e X-Received: by 2002:a92:1942:: with SMTP id e2mr2571549ilm.4.1628766654580; Thu, 12 Aug 2021 04:10:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628766654; cv=pass; d=google.com; s=arc-20160816; b=xWWVgJjTZ866OApKSFRhk6yPW0YRbBOPNch8nbU+SMjwMc3DRlC+Q8GLFqWFRYFniA 7IVgIo4xKNDt9XQWk0UpsNrsktUT6alq8Xi3TbKEsT6ZAaxFBmGYrfFlc0sOxQL6pbjJ oz7UtavTGGDMA19vkVi2B9QK/Wbsz77kmfIpYDi68Py/vhBoOaW78fgdc37A/+ghYgqK uXjlN1rzaUk08NphTZxqzBlCAlV5QF/in+gOnCLh6HsxvZXEGHyQGFb1uyZrD7/DxTd9 7YSHEkP5qwDikw9t/xAEISu3xGqqQhAIW6yPFa/wAeP/hWvHbHWx8TwtLHnKxjlexX/F CUwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=k1x6rKgWjoyileUQ0YQeLBsvrQRYEIyEtw/lW3xoxzI=; b=z+BQ8ksTGMHeI585jiU3EEwmPVaHCHoheTmEGl2EtKCvyL38FQM5qxU/+ySXaGOBjI A3EyADVrB1Fbm0ZLTbJRwy0AdunnlQ3j9hGk+l2EqulWiM6TWOB8jECGc1z6ijXA2i6X G04ACBymrMjr7VVnQShxDylEAOX7xIkyPlJTJy7Q5VNuU2YEGwf277JyshCQCQLZbMxL g7ui1QHeMX0Dl5M4Bb40+ZNToss6TQTUkn2dWvp3B53gcwG6ZqQtPmUx4rws+7yWRuxF GTk0pKnlYC2XBYKOBFNS4Q+5EB8WPvLvLUUBzx/VBSEbOU9vwFnM3Rj3ToZjH0W04D0W GOKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=NgmtoAqN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x4si2820180ilj.71.2021.08.12.04.10.43; Thu, 12 Aug 2021 04:10:54 -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; dkim=pass header.i=@amd.com header.s=selector1 header.b=NgmtoAqN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236678AbhHLLHy (ORCPT + 99 others); Thu, 12 Aug 2021 07:07:54 -0400 Received: from mail-mw2nam10on2050.outbound.protection.outlook.com ([40.107.94.50]:2113 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236478AbhHLLHx (ORCPT ); Thu, 12 Aug 2021 07:07:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RznfdkZVPKuNZwXLf4B8ZVl+i6jZ2DNeffQ84CLXHIdF8AYQylcXlH1ITJKF4LUrJYzGT1vdIAjxjBL/1T1tpoE0fc2kQPaTPbxy8f23wGeKxHJ/v4XpgToxD+8yllOujyD7myK8n1r7HY3K4+8K2NolOcfE1u6oqAt/etQp0V9bBu8GMtRV66wCOp7bZsm0jO5DR4AzLHSUeGFGJhsGw+Dca1PTdqjpZhM5qrlQsIHmi1Nh7AOpRzIMfKZqLAdycrGyxMh4vc8iiAnTYRmpWWIMhLsQUWZgoER0mG9w37kvAKPJbJ+l9cOKAJWvIPFEaglwSBVqCEt9nfJu2nVzHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k1x6rKgWjoyileUQ0YQeLBsvrQRYEIyEtw/lW3xoxzI=; b=USEu/1VMmMx36p1vUToU7exk1+lLCSrNF7ZtRkK4XVFTlgTBe5bWAbjQnQUho/f+Vwy5tfY57whKk3OkSNYdyzDbTNQrS5kM2q0kFxlOFhEV1Z3hMWuxvPIC65KdM8f9UMX2goy6jCV55vYzRudSr4M/4DjGdJxvcaqhv0LOj6wU/WUycB1oOkjIwVzD29Dd4+Eo5H2v1xZjhfYRndX3XISZK/ERxj3elaKIfnroSevQRC0Lb3kZ4DdvOaJgTOlcq6wlFEceTxaPO8KxAqE7k+h0auzF/0rkZgkRcFL7YCum5HYhXF3PcpZqPI4OVhHuOVUpomaNXffvKL0YOPvqJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k1x6rKgWjoyileUQ0YQeLBsvrQRYEIyEtw/lW3xoxzI=; b=NgmtoAqNIlBBDYrgFmw6BH5lfBn8S5kWrjLOl1IfLpZ+TpddkMwwC0rJIkezbEKPf+TWZ+ZQ5LYSGkDbKDum+hhWxMF+sVoDZeOSRVi4X7jWvMNisLoq2qI7ZPdKgwz+gcC4gb4lHn//Lllb4f2UlQPJf++P2USaPPNVzu5u4bM= Received: from BN9PR12MB5384.namprd12.prod.outlook.com (2603:10b6:408:105::20) by BN9PR12MB5177.namprd12.prod.outlook.com (2603:10b6:408:11a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17; Thu, 12 Aug 2021 11:07:26 +0000 Received: from BN9PR12MB5384.namprd12.prod.outlook.com ([fe80::8027:d882:45e9:7a19]) by BN9PR12MB5384.namprd12.prod.outlook.com ([fe80::8027:d882:45e9:7a19%7]) with mapi id 15.20.4394.022; Thu, 12 Aug 2021 11:07:25 +0000 From: "S, Shirish" To: Steven Rostedt CC: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] sched/debug: print column titles of show_state_filter()[V2] Thread-Topic: [PATCH] sched/debug: print column titles of show_state_filter()[V2] Thread-Index: AQHXeGApwcMMUKvQ2UeYt2AcIPdlB6tueyqAgAFoJAA= Date: Thu, 12 Aug 2021 11:07:25 +0000 Message-ID: References: <20210714032705.79726-1-shirish.s@amd.com> <20210811093659.4177e890@oasis.local.home> In-Reply-To: <20210811093659.4177e890@oasis.local.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Enabled=true; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SetDate=2021-08-12T11:07:23Z; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Method=Standard; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_Name=AMD Official Use Only-AIP 2.0; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ActionId=6c68f7c4-c275-4845-a05e-1ccdbf514684; MSIP_Label_88914ebd-7e6c-4e12-a031-a9906be2db14_ContentBits=1 authentication-results: goodmis.org; dkim=none (message not signed) header.d=none;goodmis.org; dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 82de7167-5120-4380-0819-08d95d815e0d x-ms-traffictypediagnostic: BN9PR12MB5177: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1775; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: coiGnQCJ6x+sSq7CqyuYh5wGXf/VrOrtE1/AHhM7sBoupnW1WdS7JcZyFssyD7BZ1tWNItpPe7IuxX29qc2LlumutF2SBVvdbAD4oqUgBELMD6JXD/LE2Q5oyq2kZ6ODJc31YayNdE7gAqPq3cF54PnEdtfcx7mxYAgDMpxqZSd2Ni2sf5bPpkk9ok8Wzqt+z/r1SkwcKj67WLRBKqkZIFqSdD9R4GXbxF9++jLK0F9liKhc54Ef6afil2CmWFZcIe0F7SMM5Fiwt7cAxOh64D2fpFs8lms+KfzFFElr4Dc4Ly7jVBvB0VNkCQpUMul1CWWVxYuNMVo493I0wH1+6s+2n8VVE69oni11ncUnBdNjSbTDKgst/I7CHUNycpRH7SafWGRsmZfJ0WQiidwDDIAg4aqmIOIZ3to+Jc8to41IhYHwduwmNt3304fprktphFdgS5lKIRzxSAEmPRTRRC2Xaz2dKnEJyQb4D+3YmZ2Qm2phjRbRF98iK4CoAWgH+8eABWvNayjw36pHwozQTXa2bM8WnEWw/9z8yaq0oyKBDjSuYcHerhWzyQ7lYIX/MgvAoLBQYrQUvHcpycrdM0wl+nXGUZOTofezy7fqCi8zFPuOWtrO3UOL+EDWxK8IFxO/2KDI5OYv1CG5W1OYqicIO+cDKnRS5Ow7IUOtuzTclTGtgR2hjoN8Krkd9Wfwh/4vBJLsdSRM7dhqwTDPng== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR12MB5384.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(396003)(376002)(346002)(39860400002)(366004)(53546011)(478600001)(26005)(6506007)(52536014)(7696005)(55236004)(8936002)(9686003)(33656002)(8676002)(5660300002)(38070700005)(55016002)(66946007)(86362001)(66446008)(64756008)(66556008)(66476007)(54906003)(316002)(6916009)(186003)(38100700002)(71200400001)(76116006)(122000001)(4326008)(7416002)(2906002)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?YLan03loO1mks9z4zeOJeXQuGKxpboCqMEKF/Xbc1q/08qHrlk/EcFmwsf0G?= =?us-ascii?Q?olVShhk4vZoMtAVt/IWZhGB+5feaqhC7pgtpbOstb+EOo+m6XqVbdh9VAjou?= =?us-ascii?Q?LAXiex6DrP9WkY7/ddBm7vMPfjbIWxwhLYN//7L3fjH51ow/cBX9Vhc43kcw?= =?us-ascii?Q?BlWbvzT8yWa9uy4VY592pi+LU7oLP7+i3lAnpTeS2RplgpvoTTgRKWaIrvuB?= =?us-ascii?Q?WZinxe6rhjhkkaICXeaC/mH5t9ljlSD4vs1lOViLsq3vTvTFV0l5rE46Hl2q?= =?us-ascii?Q?51+GofR4aktk7xDedymh+mvThJX/haAmEw0mBVP0yeWnYtLyBVYN81JXQY1Y?= =?us-ascii?Q?QIbQRJCnOEwTsL49u61dS1u2DTIM1NCGRLtG/Di5nbngAlEcL5MMMm/riaar?= =?us-ascii?Q?m5wwPfsFIbV9c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Kf+zHUb6+?= =?us-ascii?Q?2aBfLQs4ePn5XUfkI79SpIbU?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR12MB5384.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82de7167-5120-4380-0819-08d95d815e0d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2021 11:07:25.7283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tOMUBXTYdoPTN5XLs1Kt+DTrq/noFjyKbLfGu5tkdaG3hVvIS6poDGzwtmc49Xd+VRcq3sRyS8yHJqRyD91zfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5177 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [AMD Official Use Only] Done. Thanks. Regards, Shirish S -----Original Message----- From: Steven Rostedt =20 Sent: Wednesday, August 11, 2021 7:07 PM To: S, Shirish Cc: Ingo Molnar ; Peter Zijlstra ; = Juri Lelli ; Vincent Guittot ; Dietmar Eggemann ; Ben Segall ; Mel Gorman ; Daniel Bristot de Oliveira ; linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/debug: print column titles of show_state_filter(= )[V2] 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=20 > 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 >=20 > v2: Dropped #ifdef logic >=20 > Signed-off-by: Shirish S > Suggested-by: Steven Rostedt > --- > kernel/sched/core.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/kernel/sched/core.c b/kernel/sched/core.c index=20 > 2d9ff40f4661..22cee4c0f4b1 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -8194,6 +8194,9 @@ void show_state_filter(unsigned int=20 > state_filter) { > struct task_struct *g, *p; > =20 > + pr_info(" task%*s", BITS_PER_LONG =3D=3D 32 ? 38 : 46, > + "PC stack pid father\n"); > + > rcu_read_lock(); > for_each_process_thread(g, p) { > /*