Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2037096ybv; Sun, 23 Feb 2020 21:17:08 -0800 (PST) X-Google-Smtp-Source: APXvYqx6bHJKgvVQbdlCdVEgpKmTn81BVIKr6WTArxxPWIMBGiIi/TU5Cl5e5GxLtnBdh1HEjJ4l X-Received: by 2002:aca:62c4:: with SMTP id w187mr11363612oib.38.1582521427911; Sun, 23 Feb 2020 21:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582521427; cv=none; d=google.com; s=arc-20160816; b=jrRsLhKkgsWR9mvJhUAE39CXGnzatLEPbVfRQuvhgmsOYmN8tAq4K0L2R1UXUHMncg KwljBSFPy0PGxXhj6CoQ7wv27jbqLPO2fc4/9kRhfUtRvRu83l7hG4OGlfViNqShiHu7 HqLNyC03qok/KwiBv6IioKXj3IU32JGCJhh2BBquLbaVtoj0snwSemE7XdD6YH69qfA6 kDUm7jsZ0eubhJBABGt8EnS0jCg1zzeNfbvsB7BEZHPW8ZPUjZ3o47ewVaM3YvkkSGFH lZqv+t2j8ZBmImtp7Rg4fqZ0xGZyAhjgmgddERR0Ru9vpIp17Eg6HNs5W99JH/jVz8vX 3TgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=yT9g7dRN1wHootMritB9QVfuT4MJmU/hC+Z1ZAEbhoM=; b=t7UcSw7b7i4l3+/6GV5ChuiToSRr55TPf3OGSH7Ingk0Ygf2FECtHDxHop5tBH2kWD x1I74UM/MZoO8t/KB18aXfmnx6cX5BafR5apTlyp5m8P5u0Rz7v5PfzdffdQd7RfMClU Ia5cYiLUqt5jp10OjduYLut0vq9Dy8haF4PC9SkQJXrKj4+Z40tD1iYPdwKcQ05kQSkg RJVIpm06any+ZEorztXYMXiFQjTVLKa8aWcWUxlkJXbyDGCSGxBX8853oJ2lJuTjsd33 PkQYqMSQUw+GRhlrpOnB9VPrGdduQfK/UZvh7SmqoLWz/uFUnDIRmQHdM1NZwcIILmN0 6VWg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a23si4522021oie.81.2020.02.23.21.16.56; Sun, 23 Feb 2020 21:17:07 -0800 (PST) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbgBXFPr (ORCPT + 99 others); Mon, 24 Feb 2020 00:15:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38706 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbgBXFPr (ORCPT ); Mon, 24 Feb 2020 00:15:47 -0500 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01O54E7V093652; Mon, 24 Feb 2020 00:15:40 -0500 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0b-001b2d01.pphosted.com with ESMTP id 2yb1c5sw33-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2020 00:15:39 -0500 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 01O55L4C000428; Mon, 24 Feb 2020 05:15:39 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma04dal.us.ibm.com with ESMTP id 2yaux6cx7m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Feb 2020 05:15:38 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01O5FbXh19464564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 24 Feb 2020 05:15:37 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B8975136055; Mon, 24 Feb 2020 05:15:37 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6C58313604F; Mon, 24 Feb 2020 05:15:37 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.124.35.26]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 24 Feb 2020 05:15:37 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 6B4922E2F59; Mon, 24 Feb 2020 10:45:35 +0530 (IST) Date: Mon, 24 Feb 2020 10:45:35 +0530 From: Gautham R Shenoy To: Nathan Lynch Cc: "Gautham R. Shenoy" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Michael Ellerman , Vaidyanathan Srinivasan , Kamalesh Babulal , "Naveen N. Rao" , Tyrel Datwyler Subject: Re: [PATCH v2 5/5] Documentation: Document sysfs interfaces purr, spurr, idle_purr, idle_spurr Message-ID: <20200224051535.GD12846@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <1582262314-8319-1-git-send-email-ego@linux.vnet.ibm.com> <1582262314-8319-6-git-send-email-ego@linux.vnet.ibm.com> <87blprubh0.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87blprubh0.fsf@linux.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-23_07:2020-02-21,2020-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002240043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 10:55:07AM -0600, Nathan Lynch wrote: > "Gautham R. Shenoy" writes: > > diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu > > index 2e0e3b4..799dc737a 100644 > > --- a/Documentation/ABI/testing/sysfs-devices-system-cpu > > +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu > > @@ -580,3 +580,42 @@ Description: Secure Virtual Machine > > If 1, it means the system is using the Protected Execution > > Facility in POWER9 and newer processors. i.e., it is a Secure > > Virtual Machine. > > + > > +What: /sys/devices/system/cpu/cpuX/purr > > +Date: Apr 2005 > > +Contact: Linux for PowerPC mailing list > > +Description: PURR ticks for this CPU since the system boot. > > + > > + The Processor Utilization Resources Register (PURR) is > > + a 64-bit counter which provides an estimate of the > > + resources used by the CPU thread. The contents of this > > + register increases monotonically. This sysfs interface > > + exposes the number of PURR ticks for cpuX. > > + > > +What: /sys/devices/system/cpu/cpuX/spurr > > +Date: Dec 2006 > > +Contact: Linux for PowerPC mailing list > > +Description: SPURR ticks for this CPU since the system boot. > > + > > + The Scaled Processor Utilization Resources Register > > + (SPURR) is a 64-bit counter that provides a frequency > > + invariant estimate of the resources used by the CPU > > + thread. The contents of this register increases > > + monotonically. This sysfs interface exposes the number > > + of SPURR ticks for cpuX. > > + > > +What: /sys/devices/system/cpu/cpuX/idle_purr > > +Date: Nov 2019 > > +Contact: Linux for PowerPC mailing list > > +Description: PURR ticks for cpuX when it was idle. > > + > > + This sysfs interface exposes the number of PURR ticks > > + for cpuX when it was idle. > > + > > +What: /sys/devices/system/cpu/cpuX/spurr > > Copy-paste error? This should be: Yes, this should have been idle_spurr. Will fix it in the next version. > > /sys/devices/system/cpu/cpuX/idle_spurr > > > +Date: Nov 2019 > > And I suppose Nov 2019 is no longer accurate. My bad. I will resend this with the updated date. > > > > +Contact: Linux for PowerPC mailing list > > +Description: SPURR ticks for cpuX when it was idle. > > + > > + This sysfs interface exposes the number of SPURR ticks > > + for cpuX when it was idle. > > -- > > 1.9.4