Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp154145pxb; Thu, 2 Sep 2021 22:13:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxodEYRmFK54Du11nGoEfxkIV3WzmYOUL0hmdJUPqQE4yF1zB7TcA5x9F24q93Xs7B7S3aa X-Received: by 2002:a05:6e02:1c08:: with SMTP id l8mr1308151ilh.134.1630645987526; Thu, 02 Sep 2021 22:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630645987; cv=none; d=google.com; s=arc-20160816; b=Aalp7L6SE4t6OGsDKxkz0l3H96TmUtfmoACrvufayOoE67lL212h+6JWaKWroCdDBF yuHNSiLR0NAeUK+AdVCg9+ikZgGTtMrGflNXXoxBEINElg2kSATmBmUFHbNilwseA8hb GjDbwkzTqWmhZjKvza+ewDxuVJV9YJtwFhHLH34puGtuLU9Cqf2KTQ0owH30bgQVso+m pbB7BH3jUCvrW/BuiywX3aR4398/2rlyGG+rjW/YJ8FDQsrlKSIfvD5vIWt04YRwbDQZ cRwlILJ572pvwtCUYEgqJGyYayn5azYNDgwEWE28AE6ONsWiJRfUx04zkUE9qnC1ESCd fveg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eoTJEvz+JydVpcyo3wyKqaG3a7A5ENI2Xhcr/Kl0uXY=; b=V+eP4zT/AuH+09DguJPvZZvQ3vWGbzVJJ9lgHGnxNE2wT0QRbcWzGA84ilYmsEm19B iBHlzbVXceoGa5o5h6RZLNEDK9pBTmPhTg+4ErpaQL23LSDO1acOJa08ibf83Fmui+w2 YZjVvqoUZQZbRSRSyUHgP2nEcNYDLAx2POfxf8vCp4nn5WxcVVP5gCijx60qizaFtRDt YryStWDn++eF17F1FyMtfpEs0wXeR71IXowFdwDgx+sWHXsEBT5Eg2wa4HChBmsmzJPd v74wxBp9H5Yy5Xb851Z3Arq7V6MzNOxLG3kX5yqG1RoelVxu0eaNSvYow0guWw01O+gU 3vTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FmABiGU2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si3765075jaa.51.2021.09.02.22.12.56; Thu, 02 Sep 2021 22:13:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=FmABiGU2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236241AbhICFMR (ORCPT + 99 others); Fri, 3 Sep 2021 01:12:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:15248 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233992AbhICFMP (ORCPT ); Fri, 3 Sep 2021 01:12:15 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 183552hW133147; Fri, 3 Sep 2021 01:11:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=eoTJEvz+JydVpcyo3wyKqaG3a7A5ENI2Xhcr/Kl0uXY=; b=FmABiGU2i+IssTmvrf3vZScjoGkHZGsnJ5iCQSHE1m7Su7m25zS7HeyPsC0/inJ5VvlI 8C6AZTzhU0Gpi3rKPS8RvikEI62d0ZiwBpSvvg7sZt+UMeevNTtiFgkMP1AOWQMZ26I1 jCp6jo/SXLWb5LPmQrhPmm1FzsD1+IjaXZHuRuM5m+bWwRcIqyLKDnzPxkisXtZzbdI5 jH2wd7+9d9aEQ6RNu1TQdeIzBu9NXrWDntcrBsnRjGqHVG5MBZ6D+fRJ6/jwnNMHD8K8 ECR3B8wJ28mBb4ziycv90u1qqFvW3TYz+JiOZjKB+H7rxiqF4MaaZ1LWbEpHqAy2DL2A 7A== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 3au9nd46gt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Sep 2021 01:11:02 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 18358EHh023744; Fri, 3 Sep 2021 05:11:01 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma03fra.de.ibm.com with ESMTP id 3au6q7anjw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Sep 2021 05:11:01 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1835AvZa55575018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 3 Sep 2021 05:10:57 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 892DC4204C; Fri, 3 Sep 2021 05:10:57 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5342742041; Fri, 3 Sep 2021 05:10:53 +0000 (GMT) Received: from localhost.localdomain.com (unknown [9.43.127.78]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 3 Sep 2021 05:10:53 +0000 (GMT) From: Kajol Jain To: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, peterz@infradead.org, dan.j.williams@intel.com, ira.weiny@intel.com, vishal.l.verma@intel.com Cc: maddy@linux.ibm.com, santosh@fossix.org, aneesh.kumar@linux.ibm.com, vaibhav@linux.ibm.com, atrajeev@linux.vnet.ibm.com, tglx@linutronix.de, kjain@linux.ibm.com, rnsastry@linux.ibm.com Subject: [RESEND PATCH v4 4/4] powerpc/papr_scm: Document papr_scm sysfs event format entries Date: Fri, 3 Sep 2021 10:39:14 +0530 Message-Id: <20210903050914.273525-5-kjain@linux.ibm.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210903050914.273525-1-kjain@linux.ibm.com> References: <20210903050914.273525-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: n9BbT-cotmfn1okyO5TSLQB4iyDtA2TR X-Proofpoint-ORIG-GUID: n9BbT-cotmfn1okyO5TSLQB4iyDtA2TR X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-09-03_01:2021-09-03,2021-09-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 impostorscore=0 clxscore=1015 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2108310000 definitions=main-2109030031 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Details is added for the event, cpumask and format attributes in the ABI documentation. Acked-by: Peter Zijlstra (Intel) Reviewed-by: Madhavan Srinivasan Tested-by: Nageswara R Sastry Signed-off-by: Kajol Jain --- Documentation/ABI/testing/sysfs-bus-papr-pmem | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-papr-pmem b/Documentation/ABI/testing/sysfs-bus-papr-pmem index 95254cec92bf..4d86252448f8 100644 --- a/Documentation/ABI/testing/sysfs-bus-papr-pmem +++ b/Documentation/ABI/testing/sysfs-bus-papr-pmem @@ -61,3 +61,34 @@ Description: * "CchRHCnt" : Cache Read Hit Count * "CchWHCnt" : Cache Write Hit Count * "FastWCnt" : Fast Write Count + +What: /sys/devices/nmemX/format +Date: June 2021 +Contact: linuxppc-dev , nvdimm@lists.linux.dev, +Description: (RO) Attribute group to describe the magic bits + that go into perf_event_attr.config for a particular pmu. + (See ABI/testing/sysfs-bus-event_source-devices-format). + + Each attribute under this group defines a bit range of the + perf_event_attr.config. Supported attribute is listed + below:: + + event = "config:0-4" - event ID + + For example:: + noopstat = "event=0x1" + +What: /sys/devices/nmemX/events +Date: June 2021 +Contact: linuxppc-dev , nvdimm@lists.linux.dev, +Description: (RO) Attribute group to describe performance monitoring + events specific to papr-scm. Each attribute in this group describes + a single performance monitoring event supported by this nvdimm pmu. + The name of the file is the name of the event. + (See ABI/testing/sysfs-bus-event_source-devices-events). + +What: /sys/devices/nmemX/cpumask +Date: June 2021 +Contact: linuxppc-dev , nvdimm@lists.linux.dev, +Description: (RO) This sysfs file exposes the cpumask which is designated to make + HCALLs to retrieve nvdimm pmu event counter data. -- 2.26.2