Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5437858ybc; Wed, 27 Nov 2019 04:07:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxhlLAFF0ynxt9Zv4Eo3DG2389VkkQLX6/xMNXJfcuq38To2vEcY4v42GvBgPorEk4BcSYm X-Received: by 2002:a05:6402:1250:: with SMTP id l16mr31358006edw.219.1574856435917; Wed, 27 Nov 2019 04:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574856435; cv=none; d=google.com; s=arc-20160816; b=GHeRBa9g0GwgcexR0j/t21eUwMS7fvnqGpzoWhtYe4rrvOcXlMdH4lj0xH+/kxz/IG opWErOns4l8QIhM1ppet6CalbisGpVLgUIShnx3FOfSQca8NuRWyRbAuPa7ksZZ8Q9BZ twAWH/MIdb+VbhyRz/JqGdKeazFc2x7lz7gaDqQw066Qw31YjQLTlA44s2EXFiq70wMc pieTR8IfL/P5uNUmxgubQKMKhSNLwf2ZwtBxN0FKbuYpnyqbEibV/w5ZQO1XEnJu2Iqc wKdwtKMZ4uATfRxFY4LU2W6/+UUsKXKTYdDj+aa2HN6m1P7hxcUeDD0opAcPF3r1nash +pcw== 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=RYqI5kr5v5mZ4HA9hZ35QEadUtFfteUg1LrN7bP6kcs=; b=ggoiuw1fpAou0dDG2UZwoUxdO5cPuZ0kUSyZW8eQhlRDj9xBAVU84To3EAj+6o/Geh oZMk0cD9yrPY5DW+h4cfrjMj289nnbzPUISYXa7dAXl2YGEfC07QRGC2TjvSvjnmUpQ8 nGAI2CVN+ldfuuxuqGhF8i5MEdUQlHYTvNCswn9anczQ/kWCwaRr3X4ZDRMnv+TiLC+y mpmh48Zbp2f/6v9pWtP1woi7BEcLRPhfl5Er+3rYdNvRx9k7VBpryBzG/3zyJIkRYNOP 5DoncXTJRqCkFCXqsoU4Nk+kY9fGtTijFZ/jZzSQ+cbM+OAipTDRk0TV3wCk3kzRD1VJ nq2g== 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 j27si2877362eja.41.2019.11.27.04.06.48; Wed, 27 Nov 2019 04:07:15 -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 S1726873AbfK0MBu (ORCPT + 99 others); Wed, 27 Nov 2019 07:01:50 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41726 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbfK0MBt (ORCPT ); Wed, 27 Nov 2019 07:01:49 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xARBqHb3052908; Wed, 27 Nov 2019 07:01:41 -0500 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 2whmsy9j0p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Nov 2019 07:01:40 -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 xARC079Y018086; Wed, 27 Nov 2019 12:01:40 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma04dal.us.ibm.com with ESMTP id 2wevd6wee7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Nov 2019 12:01:39 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xARC1cla52953450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 27 Nov 2019 12:01:38 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38130BE058; Wed, 27 Nov 2019 12:01:38 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E82E5BE051; Wed, 27 Nov 2019 12:01:37 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.124.35.209]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 27 Nov 2019 12:01:37 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 94E682E3020; Wed, 27 Nov 2019 17:31:35 +0530 (IST) From: "Gautham R. Shenoy" To: Michael Ellerman , Vaidyanathan Srinivasan , Nathan Lynch , Kamalesh Babulal , "Naveen N. Rao" , Tyrel Datwyler Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, "Gautham R. Shenoy" Subject: [PATCH 3/3] Documentation: Document sysfs interfaces purr, spurr, idle_purr, idle_spurr Date: Wed, 27 Nov 2019 17:31:12 +0530 Message-Id: <1574856072-30972-4-git-send-email-ego@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1574856072-30972-1-git-send-email-ego@linux.vnet.ibm.com> References: <1574856072-30972-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.95,18.0.572 definitions=2019-11-27_02:2019-11-27,2019-11-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 spamscore=0 suspectscore=0 mlxscore=0 clxscore=1011 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911270104 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 fc20cde..ecd23fb 100644 --- a/Documentation/ABI/testing/sysfs-devices-system-cpu +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu @@ -574,3 +574,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 +Date: Nov 2019 +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