Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp167135imm; Wed, 30 May 2018 20:41:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPokP9IVp8Yt8tbzLWWiaEtj/vPDJxnfotY10KkugNat2lzS4YAqE1tHJtJee6N2iSluYZ X-Received: by 2002:a62:e211:: with SMTP id a17-v6mr5124678pfi.126.1527738079556; Wed, 30 May 2018 20:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527738079; cv=none; d=google.com; s=arc-20160816; b=TU/e4FCfDW8eXltIz6fhrKid/xObMF6naF5GJar+HhQzQsv3raodW1kQHy7ORj/N8n jOiKh/ZYXW9mYeyCRZ2ZkKvOiNMMTI+N+sVX4WMv7HsH0yRy2FcqI+63U9qzpHz71gBt 4jgW8fc3ohSHQuIHXKUKz4wmgQ9nFe8p9DogbwGJmnhFrgtEq7wlSihDPRlQbuWf/It2 Kt0CgVmh+VlD204TLJjNZ1P0bWn2cDErzOtFl7nBPEkoJ3KxxzTIJ6i7CQZzQ133pBeS yUv24w6qth0OU45Yrw3Zj4mBbT/mo+HmrvmD5hOfOkk8wsgDPBwwMUnBz57eiK4oAIcy JI7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject:reply-to :arc-authentication-results; bh=hflVV/d/esavR94+ysmCy5+oSg3B51AzRxjSlPdQybA=; b=ep7BoIT6qlTAa0GIvkWvFTok5BIkkbaZWdvT8GqMiMafYr41k2qHvbGTZvGAS2B1L4 hi+wvEslCHzY3Cn1XuQW+62NeKjkd+iN6BfOi3ZI2r6c7mhDRECxfluue6j210aCtIJR toCXX0FDiQ9DZJllj0+Tkyz8iFiwgzz7I+2plieM8SqTNAv5yHIQ2HhUQP511/ZPYyj8 1l8/tLy9Gunde0F+HGzAs38lfgRwTQ9ye6UJqATTSuxt21C+fVoRx9XHbMmp2A91d8N/ rmeUsyrsUKnaxnscFVaB9eQteWn+i5GDUQFy0odwftod5kGvNehR+F6L7T5m3EWGKQ9R cChg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si7249793plb.502.2018.05.30.20.41.05; Wed, 30 May 2018 20:41:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932767AbeEaDjs (ORCPT + 99 others); Wed, 30 May 2018 23:39:48 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:47340 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932675AbeEaDjp (ORCPT ); Wed, 30 May 2018 23:39:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id EDEC7214C3; Thu, 31 May 2018 03:39:44 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo02-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MTegDZlde0bq; Thu, 31 May 2018 03:39:44 +0000 (UTC) Received: from [192.168.1.87] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 7373221291; Thu, 31 May 2018 03:39:37 +0000 (UTC) Reply-To: shuah@kernel.org Subject: Re: [PATCH] cpupower : Fix header name to read idle state name To: Abhishek Goel , trenn@suse.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: s1seetee@linux.vnet.ibm.com, Shuah Khan References: <20180528110303.12860-1-huntbag@linux.vnet.ibm.com> From: Shuah Khan Openpgp: preference=signencrypt Autocrypt: addr=shuah@kernel.org; prefer-encrypt=mutual; keydata= xsFNBFIzbI0BEADtNDUjCT2vg2pVl9+XAwjq43AnDpggRIWjq8c82lcGgt9WYeQ2ezoGHADx 9XS5dP8OUdf2e1j2GtxOA9DpuAE6KNp9q4n2WHl9Q6Y06JwaXcMKlqH1WzAu8QWDou8KC8UL k+Ma/80uqlwQDmy+SDuLSLSPXP03P3NfKII8vAdREVTDfDzle+IKXDgYB8E5On1533QNVXdH rWQOU/SggOF8pGklv/a8VMR6KUYbkkkFy9wGLSLeBUx6ZfRkZSYBcAinwHLqWyDGB1993l1K y/FArlfEYLjKZ9od9ZGmnA3Ww9EMqpUUTP9b7a/sNuBhmsk5WVwMhMEtCxtIxHj0PVX8+m2R mj7mvdBukwsBOfu4ef0tK8CJHUNOXpWwNEl8LY1S+yJS/AZuwvzjpmfNQCzdixGG48oAeb11 9YKDCAUP0gjI44jZOiWb38jUn1SGqphW4i2jSiDi9R82mCtrcEXFHUuom2aRGyXEVdL9cEor 9/e4uaLDDZPGI4QqlbH6VoJkLzNFTAZnCKW9UsPXonQ7lP9hzH4+3sekYDkpmm2FcIXfVBRC XQPri2YuJtk/tgjuTC/5Y+b1itiI/xuKj7YmTYwFICUjYF9ehNe/6giG7zYZPIp2cr+oKwW5 OTo49wqTdUVm84gULn90p2YQlXnbcw81l+K09AvGj5BntvmjDQARAQABzSFTaHVhaCBLaGFu IDxzaHVhaEBnb25laGlraW5nLm9yZz7CwXoEEwECACQCGwMCH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j9tHWlcx8yOmStvZ3JFpAuqgZhrDa9aAlaq9GyT/t3HsKs= Message-ID: <12c6dd21-32ef-2ea7-ab61-ff57f36803a1@kernel.org> Date: Wed, 30 May 2018 21:39:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180528110303.12860-1-huntbag@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/28/2018 05:03 AM, Abhishek Goel wrote: > The names of the idle states in the output of cpupower monitor command are > truncated to 4 characters. On POWER9, this creates ambiguity as the states > are named "stop0", "stop1", etc. > > root:~# cpupower monitor > |Idle_Stats > PKG |CORE|CPU | snoo | stop | stop | stop | stop | stop | stop > 0| 0| 0| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 1.90 > 0| 0| 1| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > 0| 0| 2| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > 0| 0| 3| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > > This patch modifies the output to print the state name that results in a > legible output. The names will be printed with atmost 1 padding in left. > > root:~# cpupower monitor > | Idle_Stats > PKG|CORE| CPU|snooze|stop0L| stop0|stop1L| stop1|stop2L| stop2 > 0| 0| 0| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.72 > 0| 0| 1| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > 0| 0| 2| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > 0| 0| 3| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00| 0.00 > > This patch does not affect the output for intel. > Output for intel before applying the patch: > > root:~# cpupower monitor > |Idle_Stats > CPU | POLL | C1-S | C1E- | C3-S | C6-S | C7s- | C8-S | C9-S | C10- > 0| 0.00| 0.14| 0.39| 0.35| 7.41| 0.00| 17.67| 1.01| 70.03 > 2| 0.00| 0.19| 0.47| 0.10| 6.50| 0.00| 29.66| 2.17| 58.07 > 1| 0.00| 0.11| 0.50| 1.50| 9.11| 0.18| 18.19| 0.40| 66.63 > 3| 0.00| 0.67| 0.42| 0.03| 5.84| 0.00| 12.58| 0.77| 77.14 > > Output for intel after applying the patch: > > root:~# cpupower monitor > | Idle_Stats > CPU| POLL | C1-S | C1E- | C3-S | C6-S | C7s- | C8-S | C9-S | C10- > 0| 0.03| 0.33| 1.01| 0.27| 3.03| 0.00| 19.18| 0.00| 71.24 > 2| 0.00| 1.58| 0.58| 0.42| 8.55| 0.09| 21.11| 0.99| 63.32 > 1| 0.00| 1.26| 0.88| 0.43| 9.00| 0.02| 7.78| 4.65| 71.91 > 3| 0.00| 0.30| 0.42| 0.06| 13.62| 0.21| 30.29| 0.00| 52.45 > > Signed-off-by: Abhishek Goel > --- > Thanks - I have this queued for 4.18-rc1 -- Shuah