Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6014065rwl; Tue, 4 Apr 2023 06:50:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZkTnxpqxissMUHwe9z1fxu6sjOgYx2Z61Par6f18irYuMmCGK32XlACDJ+bji8d96+D6N4 X-Received: by 2002:a17:902:c94e:b0:1a2:55ca:6669 with SMTP id i14-20020a170902c94e00b001a255ca6669mr3068216pla.33.1680616219886; Tue, 04 Apr 2023 06:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680616219; cv=none; d=google.com; s=arc-20160816; b=l3HCj3DFH2U6UY/pLPUYnzmlUhC0A5JYvLLmZLe0odsoAhse7bYgo+S/cfv2NfmPGW LH3uxomQyOhQKbXtB4unaJL7JlHHn/iJH9zc9kziuFBY27P2jpeCt0bFwEER3/QvjEnn 4hUYaP6ogErFyFI3HFhtUC6B7WmMu78a4BNEIN9wyKUR83dHm41/8zK8ffs+yzM06XXk DGPg5BT+Q7pIPNKFi1+w7yAwam+myJyqlu8GzYjoiiYz1sHdMN04hDULNRA/iuNuD+Ag ZxPZM+X6AZz74wleuzDa8dCVsf3DEk6Li7j+qy/Uun+TuKYiL3FVG93C6pzi7nnVkwCM 0Muw== 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; bh=/rdDgdkwOiUX404dmj3iFVNyzT+gsdnHh/NU85A9wrA=; b=jnWtHyMl3jLqG5CFQODzjVUQ+pvnRyvVIJULjFFOjqO+SJ7n7GzJd9r1gqMgmoEtk+ pqay1g0JCUlTSiB2GyOaz4lnDMXzyvOsnivCh690jiZcGL64BxI/oFnfk3nuicjbmAIr C0EfEBDpb/Cg1xTiyuMltatxzN5yTADeDMVV0sy4xAF5cA9VKdfA1LxwsNZiBUv3XaJt 0f7msaRv7awRona/kfr1S+NpsXhz2EbUXLNtQBYDJWyXr5a8FrN66d6F4fN3Rdk5NZUm bdK4E92zKdKDpdGAkbYFiyFRrDfU48lLWZU9K4al2/G4e4T+1x1O50SvDtZfeq+DSkbk n8VQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf4-20020a170902b90400b001a05bb13953si10163173plb.422.2023.04.04.06.49.59; Tue, 04 Apr 2023 06:50:19 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235312AbjDDNpe (ORCPT + 99 others); Tue, 4 Apr 2023 09:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234588AbjDDNpL (ORCPT ); Tue, 4 Apr 2023 09:45:11 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3F4530E3; Tue, 4 Apr 2023 06:44:52 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PrTV52mkjz6J7Bm; Tue, 4 Apr 2023 21:42:53 +0800 (CST) Received: from SecurePC-101-06.china.huawei.com (10.122.247.231) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 4 Apr 2023 14:44:50 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Dan Williams , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , Robert Richter , Atish Patra , Anup Patel , Andy Gross , Bjorn Andersson , Frank Li , Shuai Xue , Vineet Gupta , Shawn Guo , Fenghua Yu , Dave Jiang , Wu Hao , Tom Rix , , Suzuki K Poulose , Liang Kan Subject: [PATCH 05/32] Documentation: hns-pmu: Use /sys/bus/event_source/devices paths Date: Tue, 4 Apr 2023 14:41:58 +0100 Message-ID: <20230404134225.13408-6-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> References: <20230404134225.13408-1-Jonathan.Cameron@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.231] X-ClientProxiedBy: lhrpeml500003.china.huawei.com (7.191.162.67) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 To allow setting an appropriate parent for the struct pmu device remove existing references to /sys/devices/ path. Signed-off-by: Jonathan Cameron --- Documentation/admin-guide/perf/hns3-pmu.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/admin-guide/perf/hns3-pmu.rst b/Documentation/admin-guide/perf/hns3-pmu.rst index 75a40846d47f..1195e570f2d6 100644 --- a/Documentation/admin-guide/perf/hns3-pmu.rst +++ b/Documentation/admin-guide/perf/hns3-pmu.rst @@ -16,7 +16,7 @@ HNS3 PMU driver The HNS3 PMU driver registers a perf PMU with the name of its sicl id.:: - /sys/devices/hns3_pmu_sicl_ + /sys/bus/event_source/devices/hns3_pmu_sicl_ PMU driver provides description of available events, filter modes, format, identifier and cpumask in sysfs. @@ -40,9 +40,9 @@ device. Example usage of checking event code and subevent code:: - $# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time + $# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time config=0x00204 - $# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num + $# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num config=0x10204 Each performance statistic has a pair of events to get two values to @@ -60,7 +60,7 @@ computation to calculate real performance data is::: Example usage of checking supported filter mode:: - $# cat /sys/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num + $# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num filter mode supported: global/port/port-tc/func/func-queue/ Example usage of perf:: -- 2.37.2