Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp499877pxm; Fri, 25 Feb 2022 12:19:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwjJ1q50S8dEWfQ8PBrHslIMb+xmw3D6OhcQTYN4Z8jt8eF2ufaSekKYAgn/h7rLB3LHPz6 X-Received: by 2002:a63:cc52:0:b0:372:7f35:cf84 with SMTP id q18-20020a63cc52000000b003727f35cf84mr7499776pgi.211.1645820385824; Fri, 25 Feb 2022 12:19:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645820385; cv=none; d=google.com; s=arc-20160816; b=P//tGUGP89Y/CnW/x9NVA3su4jzL4kQiRPId/s3vJe2Ny2OBBSLXXSfDCl2ZQw/MzR Z3VvfQD8qT3daQgG3I+kKA0MhEkdaxz8L3zlpn6dOPBmk+0/dTwBPHf7BiJd3xjpTUoc 90hpS8Cy5Y9BeKy8gNB84/ajv2NY7+TTQcb+8Gm4NMbVFrwNR0EiaZ8KO9NuR4hAevY8 zjHBbIvpGg0iYfoOjY8NaBCoEE8BJVSPJurp3AJmaDbS7R9Ari3Kd8dvVaiQBvGZR6Vs chyNmrwXFDME1X2F9xG8oZELWTHhNNX3NKrCJu3ygMK32FoiVTuKZDBRIkgKBeaw3Nnv ONJA== 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=bsTCRDz94aX22w3yT1v7xWJjSPm0uJKUhYVBcwAO/1Q=; b=IzPJi5cbj79O/FKcozo1l1vTzWIe/PhtcoMDPdYuUowKGE7Lyt9Nw1+BSnbHFP+6IG yC8G/BaqKmWxJOuzeZ2jz7rNnR/3MEQEZlBfKaRwsX906RK0m7z9MKY8EgGw5dQC7HXZ 3hibkB02O/4+SHh5WvQ3mkAC8sB7gjb1MPTrqnEUbDwfnmjtCQqOAU8RVvhDst6w4SPC QS/JWv59We5uqzNApgFzpCm668d0zK0V54TVlGxS5VHt1CIrvd5yRIMiTQrhdqciKYEv qkcxbgDpPtOwROJgK0j0ncefiyhrg/jLOMDMF8MS7Ey/y9ccwBDm2YWfSbIkTFk/lUnG 2nFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X7JVvWB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a17090aa88300b001bcb8162374si5937542pjq.119.2022.02.25.12.19.29; Fri, 25 Feb 2022 12:19:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=X7JVvWB+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241772AbiBYOcM (ORCPT + 99 others); Fri, 25 Feb 2022 09:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241808AbiBYOcI (ORCPT ); Fri, 25 Feb 2022 09:32:08 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD48276D5A for ; Fri, 25 Feb 2022 06:31:25 -0800 (PST) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21PEDpAJ012271; Fri, 25 Feb 2022 14:31:12 GMT 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=bsTCRDz94aX22w3yT1v7xWJjSPm0uJKUhYVBcwAO/1Q=; b=X7JVvWB+58VvdS/iHjUC1TDOWXMmqAAjeZkVNaCyQXs6XUGj4+Lk03wuWUHl6L/f8ELT CSjNWQaa8PTUrZiKoNxArXUudU16znnlnr9IRE+tHCgK+YAe7xq1367MHz12hqjcWXWY nm/KFIMwOIDPPsExgh6xRxCcaW7++9V6//tYW+hc4ntGqcSkkcLyomRTaLGsynSIbyfb 2F2cvaJoIIPMJBZAKizCsuYD24+FiTix/nj4GHw1Y5sTrUbeVgh1u+WWOnfDMzeym+73 9vUrs+YK9ymLmqjnYWcMQpimQMl+K0a3R/m2h7FwxE+/oKfdufEjjmtIiM8uHjFxaZpd vg== Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 3edtv9a7mh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Feb 2022 14:31:12 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21PERw0w009873; Fri, 25 Feb 2022 14:31:09 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma04ams.nl.ibm.com with ESMTP id 3ear69s884-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Feb 2022 14:31:09 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21PEV6rF46531068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 25 Feb 2022 14:31:06 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 44B904C04A; Fri, 25 Feb 2022 14:31:06 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C2FF74C04E; Fri, 25 Feb 2022 14:31:01 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.43.81.177]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 25 Feb 2022 14:31:01 +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: santosh@fossix.org, maddy@linux.ibm.com, rnsastry@linux.ibm.com, aneesh.kumar@linux.ibm.com, atrajeev@linux.vnet.ibm.com, vaibhav@linux.ibm.com, tglx@linutronix.de, kjain@linux.ibm.com Subject: [PATCH v7 4/4] docs: ABI: sysfs-bus-nvdimm: Document sysfs event format entries for nvdimm pmu Date: Fri, 25 Feb 2022 20:00:24 +0530 Message-Id: <20220225143024.47947-5-kjain@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220225143024.47947-1-kjain@linux.ibm.com> References: <20220225143024.47947-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: d5hfIPl5fcofwnwEs1zRPhHf10pY4vmE X-Proofpoint-GUID: d5hfIPl5fcofwnwEs1zRPhHf10pY4vmE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-25_08,2022-02-25_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202250084 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Details are added for the event, cpumask and format attributes in the ABI documentation. Acked-by: Peter Zijlstra (Intel) Tested-by: Nageswara R Sastry Signed-off-by: Kajol Jain --- Changelog: v6 -> v7 - Add Acked-by and Tested-by tag from Peter Zijlstra and Nageswara R Sastry. Documentation/ABI/testing/sysfs-bus-nvdimm | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-nvdimm b/Documentation/ABI/testing/sysfs-bus-nvdimm index bff84a16812a..1c1f5acbf53d 100644 --- a/Documentation/ABI/testing/sysfs-bus-nvdimm +++ b/Documentation/ABI/testing/sysfs-bus-nvdimm @@ -6,3 +6,38 @@ Description: The libnvdimm sub-system implements a common sysfs interface for platform nvdimm resources. See Documentation/driver-api/nvdimm/. + +What: /sys/bus/event_source/devices/nmemX/format +Date: February 2022 +KernelVersion: 5.18 +Contact: Kajol Jain +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:: + ctl_res_cnt = "event=0x1" + +What: /sys/bus/event_source/devices/nmemX/events +Date: February 2022 +KernelVersion: 5.18 +Contact: Kajol Jain +Description: (RO) Attribute group to describe performance monitoring events + for the nvdimm memory device. 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). A + listing of the events supported by a given nvdimm provider type + can be found in Documentation/driver-api/nvdimm/$provider. + +What: /sys/bus/event_source/devices/nmemX/cpumask +Date: February 2022 +KernelVersion: 5.18 +Contact: Kajol Jain +Description: (RO) This sysfs file exposes the cpumask which is designated to + to retrieve nvdimm pmu event counter data. -- 2.31.1