Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2380740ybb; Fri, 27 Mar 2020 04:33:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv8rGvefZ3w74MVQ+5NVhVhrShls/ZxQHPrstSP1J/Sk053mHd2ppx2WGmfh1fXk+K3MzJ9 X-Received: by 2002:a9d:2004:: with SMTP id n4mr10438029ota.74.1585308817949; Fri, 27 Mar 2020 04:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585308817; cv=none; d=google.com; s=arc-20160816; b=oW8nLg7ZChnMThfeZrvC4ZcJSIhFq8zSfXPH1fDGrMq3/42NQ8q2/NIufMtAZL1rPG anXPxomkJzvz07z+wCdDF5Erjx4+jFCLBeu1Pj3WtKI4kHQ36oKOwjJ0+IX9lWybPeOq OO30XaDnse1Zg3TL0fRA3uAI2GgKj75fmnO0FRgbaXQDUyupdyw+XDfdAlTOGazqbxyQ 0/Jnc/X1+2dzvupV3VAVgsJpW4xaGTmnTCIY4M7LLxCgzpgp5EMyBAW0ycR61v8JiJqS 6OCx5Ks1hBvC9w3coChF9zdKGy9UeMC4o86UuzouPBKF58GJAFo9GSK6qBeqDBf6nD8A hVhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=JSMTMgocz3tmhJGEWRTrtGQ94v5gdLhsGLD3KzceUjU=; b=p6AijnlOX/rX5VKZU/5NlyLCFBTanIFCzCv51s4Wipl+ZTUghSNJOa2v6B7SKwTdDB YGQdjkPisC1gvRyQA9YGXOKrS5rZ+6h+BCUDFdMlFL0hC7uwkU4ppkYFBFelEL2QSlPU EwTyiZKr9JJHxayKnUVRHBqz9HIvB9x7mbArNCig0ynzubbiZ9qJOHIdKksPHaJxt2WE R2tkD6ozbK6VaOOWmSQSh5+SvldtA+AG+9ZUdeysdVY2dbZAmdc0O30OQqQb7WBnon78 GTtgk2KHzhNCbGs+p2wMEJw1PzdIOl9PKIzDBD5izw41axZaJggte2t6hwwvdr2EuXJh JplQ== 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 v127si2332509oib.25.2020.03.27.04.33.25; Fri, 27 Mar 2020 04:33:37 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbgC0LdE (ORCPT + 99 others); Fri, 27 Mar 2020 07:33:04 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34514 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727443AbgC0LdD (ORCPT ); Fri, 27 Mar 2020 07:33:03 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02RB7Dlh015805; Fri, 27 Mar 2020 07:32:57 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ywe7x1fy3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Mar 2020 07:32:57 -0400 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 02RBUIhT021901; Fri, 27 Mar 2020 11:32:56 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma04dal.us.ibm.com with ESMTP id 2ywawgp8mb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Mar 2020 11:32:56 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 02RBWtN457278834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 11:32:55 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4ADFB78060; Fri, 27 Mar 2020 11:32:55 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D99207805E; Fri, 27 Mar 2020 11:32:54 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.85.72.108]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Fri, 27 Mar 2020 11:32:54 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 853902E3B09; Fri, 27 Mar 2020 17:02:45 +0530 (IST) From: "Gautham R. Shenoy" To: Nathan Lynch , Michael Ellerman , Vaidyanathan Srinivasan , Kamalesh Babulal , "Naveen N. Rao" , Tyrel Datwyler Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" Subject: [PATCH v4 5/6] Documentation: Document sysfs interfaces purr, spurr, idle_purr, idle_spurr Date: Fri, 27 Mar 2020 17:02:39 +0530 Message-Id: <1585308760-28792-6-git-send-email-ego@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585308760-28792-1-git-send-email-ego@linux.vnet.ibm.com> References: <1585308760-28792-1-git-send-email-ego@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-27_03:2020-03-27,2020-03-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 bulkscore=0 phishscore=0 spamscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270097 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Gautham R. Shenoy" Add documentation for the following sysfs interfaces: /sys/devices/system/cpu/cpuX/purr /sys/devices/system/cpu/cpuX/spurr /sys/devices/system/cpu/cpuX/idle_purr /sys/devices/system/cpu/cpuX/idle_spurr Signed-off-by: Gautham R. Shenoy --- Documentation/ABI/testing/sysfs-devices-system-cpu | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu index 2e0e3b4..bc07677 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: Mar 2020 +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/idle_spurr +Date: Mar 2020 +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