Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp366996ybh; Wed, 11 Mar 2020 02:38:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs6IQl+7Hl2LL/pXHvrG55X6dlNqo6qs1ZKYLts8un49LocO0OlUFTEO7ht2FXg6vF1aiCO X-Received: by 2002:a9d:1920:: with SMTP id j32mr1519846ota.221.1583919519699; Wed, 11 Mar 2020 02:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583919519; cv=none; d=google.com; s=arc-20160816; b=B0oTUaYH9IR4PHNZHmjlpdPPkGtTkp1rkrVeFQYAaIjIJGF3b0y01ygdFR9I8Fa3d2 x+xmMaofIYH8S0dygbY19CZfpLhO5UaSIGa8n3N45YyiXyyg6o527fsnSxs9UyDbs/op bKM5Fwr3AiGlVG86WWQK2CsC/ius3KVkWa8IlH0bBLEqsHkTXuCvmZHjp7j8tDApzKBu JkVjo9RO/anJMA46tGw26QM8t2Ea4cYrKe1fHnfwbde296lkJYGyQ8+yuGiYta2b/QQ7 JFSbAuu7ZXWkxic9NOPOQWkM3Sh0sV07jH8AyJMwfbTlei9lABwxCeWnNZVAdX3i5kwE N4ug== 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=hVi/BM+m5a0na/k9VUTvyUROOxYXE2o76TudZT7HpgOhZafyu871k9ELVIUNxJQY6x ldfFPv9CYheYN2qrvqxpbNMNi55KLvy2JoH1jGzlkiQ6fmyI+8HejmR92dppkchJi93l G6BmkFfdhokcMhzUAlXBas03nLlY5vzme/ivtPnejfhHgtxyRXvXID0V/1k9BdDLg4dY +6OGq3aCUlMJ9+b7vw1WisqZiIl36/qAteW5+SEtGGigTixNhVklJ54N2P/w2/G83lR0 LNDzhPU1KLagJh+5zNtuo7JT6hYgnjecnaLX8nvnhLM2o4l8lZ3B3CYPPD9pA1EBxZQb 6KvQ== 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 e24si71015ooh.57.2020.03.11.02.38.27; Wed, 11 Mar 2020 02:38:39 -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 S1728949AbgCKJiI (ORCPT + 99 others); Wed, 11 Mar 2020 05:38:08 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:65030 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728879AbgCKJiD (ORCPT ); Wed, 11 Mar 2020 05:38:03 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02B9Wscw099100; Wed, 11 Mar 2020 05:37:56 -0400 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ypvjtun99-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Mar 2020 05:37:56 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 02B9Z7IL010910; Wed, 11 Mar 2020 09:37:55 GMT Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by ppma04wdc.us.ibm.com with ESMTP id 2ypjxr3sk5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Mar 2020 09:37:55 +0000 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 02B9bsFN39846296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Mar 2020 09:37:54 GMT Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 580C86E054; Wed, 11 Mar 2020 09:37:54 +0000 (GMT) Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 000ED6E053; Wed, 11 Mar 2020 09:37:53 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.85.122.202]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 11 Mar 2020 09:37:53 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id 6573E2E340C; Wed, 11 Mar 2020 15:07:47 +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 v3 5/6] Documentation: Document sysfs interfaces purr, spurr, idle_purr, idle_spurr Date: Wed, 11 Mar 2020 15:07:40 +0530 Message-Id: <1583919461-27405-6-git-send-email-ego@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1583919461-27405-1-git-send-email-ego@linux.vnet.ibm.com> References: <1583919461-27405-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.572 definitions=2020-03-11_02:2020-03-10,2020-03-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 phishscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003110061 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