Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp279766iob; Wed, 18 May 2022 01:59:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRSA8EQjKfw+foJuLYCqRQjPTJ1zzbHV8UC5UDMtMKpXistFrH0RZ5kf6l6SU4Ru/QeN35 X-Received: by 2002:a17:90a:bb0e:b0:1dc:a406:3566 with SMTP id u14-20020a17090abb0e00b001dca4063566mr29736082pjr.135.1652864361478; Wed, 18 May 2022 01:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652864361; cv=none; d=google.com; s=arc-20160816; b=CqoCyNx46Fe4ThjkPs99TN7+0ZJ2KhN7DVIZFyvsQ+2ql1pzKNRVF4UzyuChH3r8W3 rl0xU9NK3FsGLkHb2EIS2a2MURSpPyhDyZyVYoSBftKK0TATuFkRZ1DDhGopixmDKOlW sRYbLD/mVUGSsSorh41SS5xBsyq50ttUQ9r+AVcxl83b0DmkP6sf2HOg5pVJnP9CcVic 80uZu5bRZgsSpD5mjLcFKebAsRmR5YJZD4+y/dnuNyiQ8uKEqZMTqFctdJOTYA7TGh4Z Bw69mfN/yV4fg3PtpCyB/o+HelnPO2fhZUia6tvxvf0TZ+Ckzt0CCoJ9yUb6hjUoH5uI VNAg== 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=QGey1s4N7eooipYKBAp1GL4ewsHrnLCq7uhlEEENmGo=; b=ujY4KWuIocD4v+uFWERK0yBZqTDGBspFefPykcx68W0DtMTy2oK8OyMQ4eP1SKRxot vpOtGO3jhw3hfR6dMhRgmZG318/akD2gwoOfs2xhMNQ8HRfjURj62XcYZN0Vxi175yPX a9D6MDQD8HXA62pyJvtZAUhV4MCuU7RNMhV/07Acdc91BLHIX2o29JLjaFh/9U2QWM+n oyPYDkyhGJZx4UD4fSqe6K/ZgqtVdHyusJJ5BQPh4cUnbJXiq0YE7y4DqCDIl9c9SbOb Qhcyq4WRIcs1Y/mLJSJxtxPNFHcxdCmZO1Mt+o9XZXCv97snjgOa1G4H4nipKHR6XFiC /scw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DPu98iqP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 7-20020a17090a0f8700b001da48da4de3si2165120pjz.102.2022.05.18.01.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 01:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DPu98iqP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E5ACF19030; Wed, 18 May 2022 01:56:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233688AbiERIz5 (ORCPT + 99 others); Wed, 18 May 2022 04:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233527AbiERIzj (ORCPT ); Wed, 18 May 2022 04:55:39 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1489C13B8C5; Wed, 18 May 2022 01:55:36 -0700 (PDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24I8j23g018135; Wed, 18 May 2022 08:55:24 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=QGey1s4N7eooipYKBAp1GL4ewsHrnLCq7uhlEEENmGo=; b=DPu98iqPN8NNBECEGtEtjxS632Y2ikn2FNabgqKWkHBJNl7r+iLxEaf1bcLPJgsdD1zU MG1wVnVVjNVixiIdLBWyMvl3vtWfm/2gqMfnAYZ8Ckt3MsRuyyc7uPCxRHy8Kkieifft BqpETXfOFLqw9ykol8QagPIfyUjJM5GxgYfYkxaborb3n5XRtk6cADdVn+6woHph/i5M y8FysF/xlZ20q6N1fC3iFvD4uE87Rvu1UXjhAfJ5ihcAzwAJwMfguCbX7gr2EL91XzS1 x7+lhFM/330sE98k6RWaqDStp4mmOQPvqIyCcDq45oyD+7X6Mel1VfW7C9+jheKseg67 tg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g4wjh85p0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 08:55:24 +0000 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24I8jQg3019940; Wed, 18 May 2022 08:55:23 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g4wjh85na-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 08:55:23 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24I8qkla004907; Wed, 18 May 2022 08:55:21 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3g2429ddum-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 08:55:21 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24I8tI3V54919440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 May 2022 08:55:18 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 234E542042; Wed, 18 May 2022 08:55:18 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 167014203F; Wed, 18 May 2022 08:55:13 +0000 (GMT) Received: from localhost.localdomain (unknown [9.163.14.86]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 May 2022 08:55:12 +0000 (GMT) From: Athira Rajeev To: acme@kernel.org, jolsa@kernel.org, mpe@ellerman.id.au Cc: linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, maddy@linux.vnet.ibm.com, rnsastry@linux.ibm.com, kjain@linux.ibm.com, disgoel@linux.vnet.ibm.com, irogers@google.com Subject: [PATCH V2 2/2] docs: ABI: sysfs-bus-event_source-devices: Document sysfs caps entry for PMU Date: Wed, 18 May 2022 14:25:02 +0530 Message-Id: <20220518085502.6914-2-atrajeev@linux.vnet.ibm.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220518085502.6914-1-atrajeev@linux.vnet.ibm.com> References: <20220518085502.6914-1-atrajeev@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: N_QWmeI9DHuKDxwH-gnK1jz4_lXT_zwD X-Proofpoint-ORIG-GUID: SHKo-jeO8CxlWkLtOZ_A5kWC_nQPnrwN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-18_03,2022-05-17_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 mlxscore=0 priorityscore=1501 adultscore=0 clxscore=1015 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205180044 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add ABI documentation for "caps" attribute group. Some of the platform specific PMU features can be exposed in "caps" attribute group/directory: /sys/bus/event_source/devices// Signed-off-by: Athira Rajeev --- .../sysfs-bus-event_source-devices-caps | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-caps diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-caps b/Documentation/ABI/testing/sysfs-bus-event_source-devices-caps new file mode 100644 index 000000000000..ef5f537bdd83 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-event_source-devices-caps @@ -0,0 +1,18 @@ +What: /sys/bus/event_source/devices//caps +Date: May 2022 +KernelVersion: 5.19 +Contact: Linux kernel mailing list +Description: + Attribute group to describe the capabilities exposed + for a particular pmu. Each attribute of this group can + expose information specific to a PMU, say pmu_name, so that + userspace can understand some of the feature which the + platform specific PMU supports. + + One of the example available capability in supported platform + like Intel is pmu_name, which exposes underlying CPU name known + to the PMU driver. + + Example output in powerpc: + grep -H . /sys/bus/event_source/devices/cpu/caps/* + /sys/bus/event_source/devices/cpu/caps/pmu_name:POWER9 -- 2.31.1