Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4158595ybb; Tue, 7 Apr 2020 01:49:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKSAjocI6qOSmoJza3vQrxuDqRcdAAHlb5o58PKKkutxNUFkrtqr/QNc3+84jxSVJOEkbOJ X-Received: by 2002:a54:4e86:: with SMTP id c6mr76950oiy.178.1586249382817; Tue, 07 Apr 2020 01:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586249382; cv=none; d=google.com; s=arc-20160816; b=OR2D9NwMu2am9EP/09iutv83VSiCRtonTfWY5Wrpe/yH3F4bJVHF/odad7DvEoXKSr JQu4hktv2WVrRfbUtMWrLvzM6B735IVQu5Cw14hlFPcRTMls5BeQsj3VcwLdMm25URI6 uIXccwsXQTxHkcYrF7lPXPFrwnpLGDmmJ/O3taUoBKmxkq1TL5x6uoruWhPuyl5iso/h Lr6fMdL24AgOiLymGyu19bJTQpK+eGKExAETd2lbsBBeyf/UcX14dnzhLWS7JyFkxlEL YNpI099jVMagShEfo30bRHhXY08eEev+X59aDJM5Xf/cDi8ic2BG3OLBseE3cYQs5yQO QWWw== 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=LbQRIqNCaJNbztwIkWhUw4kkdoEh+tdaXFg4x18+krA=; b=qoh7mhxo/bAXoj+fOx7l77FvI59f4Gf++K7+SUtLv793GndKbgNcXTOVUHQEMoi13l GKryG3SUwDAd0YZARgMl0WEbslp4HQ6bfSeFDdLu9bFMN5UCq7io6r6VqNgL9lQLB4Hd GzWz7XIOMqp6IxP3MJqmB3+WDAL14e0kmJA7t28Wr2+k4Nu+wvVXQhCzOSKfycylnPY7 PSMZUrvnMGebQTvhkJhjexfD0UErAkeTAi7lcz7iHxff8+qz1ak8sSjD7O7QYGWSm7Ro j1q7Y4iLZqcTXfHzK2FJXYv6mmidVieAD6xwFlkb6h//Heyxqso4ePHaLwPflabY19Mm WHFw== 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 l22si944766otd.53.2020.04.07.01.49.31; Tue, 07 Apr 2020 01:49:42 -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 S1728054AbgDGIsR (ORCPT + 99 others); Tue, 7 Apr 2020 04:48:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:58538 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgDGIsP (ORCPT ); Tue, 7 Apr 2020 04:48:15 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0378Ydvw028371; Tue, 7 Apr 2020 04:48:09 -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 3082pe73we-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Apr 2020 04:48:08 -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 0378jK2H017907; Tue, 7 Apr 2020 08:48:08 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma04dal.us.ibm.com with ESMTP id 306hv64bm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Apr 2020 08:48:08 +0000 Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0378m79L37880126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Apr 2020 08:48:07 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5A4AF2805C; Tue, 7 Apr 2020 08:48:07 +0000 (GMT) Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B000C28058; Tue, 7 Apr 2020 08:48:06 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.79.178.96]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 7 Apr 2020 08:48:06 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id CD1652E33BA; Tue, 7 Apr 2020 14:17:59 +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 v5 5/5] Documentation: Document sysfs interfaces purr, spurr, idle_purr, idle_spurr Date: Tue, 7 Apr 2020 14:17:43 +0530 Message-Id: <1586249263-14048-6-git-send-email-ego@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1586249263-14048-1-git-send-email-ego@linux.vnet.ibm.com> References: <1586249263-14048-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.676 definitions=2020-04-07_01:2020-04-07,2020-04-06 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004070068 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..b73b8b5 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: Apr 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: Apr 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