Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp13803lqp; Fri, 12 Apr 2024 09:13:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0DxMH0Z8WB7Vryi8NMuV82OcXoEm7AFIwPpgWJ1bNAOR0JPOkO8hyRFpDVro3CgNDbpaOgOugyG3ZPY7GFIJ+OpEB5wPCv+zqRzS6vw== X-Google-Smtp-Source: AGHT+IFyeCvN2RIWOE2yz7VF8nFUNCjxsPyowB/zodKlGiDOzFEDEPrmpgxFG1Chkfh8kSqC8BFG X-Received: by 2002:a17:90a:bc98:b0:2a5:c9b2:fb53 with SMTP id x24-20020a17090abc9800b002a5c9b2fb53mr2900080pjr.40.1712938401255; Fri, 12 Apr 2024 09:13:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712938401; cv=pass; d=google.com; s=arc-20160816; b=Lwz0E5JCK0O/scM1ZrcUnj9b/XwkkK11tAMvsOIG+nrOFcLe62qOHJp24cDZK+ZWdq b180e4eNxqMrTaZB13snAfz17Ub77NDsuXCSeq7rNvcOIbJ5Awmc21bu2KP79C+UHdcF rwPflk22oMiv19UHN71871NcqGDOkTciheQDw95+MHS/dJChEa1xaXYBv6TuS/FY+J9r cCa2N+MV/DecEFNNk2YedfklrJIMlJlYRKn2xuUB7JAG1k1JWtKhf2tXU8bxSPbPzwvK TgfaNaJ9BR5lLyaYb4bR2zv0NyszBKbio3PNl5t2u7ik2ErJIiXDO8XMLy+ruEgKQ4bX uc7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=uERAJ8TRCVo8Ghb/v+ht0DsKdQs8ye3Hml0WAOLW+NQ=; fh=22aR/NFsCqnOGZIQzPDG1h79gcfY6gTV1vkpxQGj2A0=; b=idAaK5jE7N8fEmfup07tGtrtYdSQpFJIp52672DDbaK3RERu/8SFagOvTV7camcg6G HzqnvddhrNW8wqG012h2mQC5I6UZe4JRtSb/Gecey1eChbmUZWaWnLFnDi3kzr9I+dU6 Eb3nznVkEdXWv8tsNo50yry/3mePwBPmYi6P36GMhXIU8tbU8+xn/CqGkuKESghAhIhT 0kAZVoA7cyROoTjJNqN7t2MlrfwjDltwB+XcbYSo6wgCZzwcqv4AoweLcJ26Fymc0vER B8reJlN2HtaOo6SFoSM6FtUfpyDawUGH2DpPh79bqTqFOyoS973vfNx5aJ4QPnu7oRwE MCrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v13-20020a17090a898d00b002a2bff1c1d4si3671920pjn.5.2024.04.12.09.13.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:13:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-143025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C2AD2825EA for ; Fri, 12 Apr 2024 16:13:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 083D514900B; Fri, 12 Apr 2024 16:13:03 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDABB148313; Fri, 12 Apr 2024 16:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938382; cv=none; b=NA2iYWcL1IkjvOxn9I/uGSoEnU5pmO78/iX6Y3fwARJbjlepVlL+XWp+LwH1YmSP0RM5GiuKDPV7V+2E/KN9IITKx3FvhTz8HqKpqSir+JueIZ/uTQXhNxB7cPms/IACDj/nvLs0mDm12DnCc7OMyFRvEIWDyOiQQnfe9i0Imlc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712938382; c=relaxed/simple; bh=JIdm2DYz2lilYR3ajuwXs1ec1aKJM0YI7TKLW6JFx2g=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uHsw9G8nvJXm4HeaqqQZk4wzdZle+RqpHLCb7pYV9TlHe73wCgFmKLlBcVuuSIjpk4eMc52XyzggpsfzK4IwRKD5IBJjmZoMGEK1paiw78bvlSHxL6eEmVgxnZLhXV4c2ANBIw3R/R8Lo7rIh/2cvOPUZ2DCWwqpX+3oce9YFSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4VGM4c5Y7cz6J9hN; Sat, 13 Apr 2024 00:11:12 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id A96E41400CF; Sat, 13 Apr 2024 00:12:58 +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_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 17:12:58 +0100 From: Jonathan Cameron To: Mark Rutland , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Will Deacon , , , CC: , Shaokun Zhang , Yicong Yang , Jiucheng Xu , Khuong Dinh , 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 v2 04/30] Documentation: hns-pmu: Use /sys/bus/event_source/devices paths Date: Fri, 12 Apr 2024 17:10:31 +0100 Message-ID: <20240412161057.14099-5-Jonathan.Cameron@huawei.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> References: <20240412161057.14099-1-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: lhrpeml100003.china.huawei.com (7.191.160.210) To lhrpeml500005.china.huawei.com (7.191.163.240) To allow setting an appropriate parent for the struct pmu device remove existing references to /sys/devices/ path. Reviewed-by: Greg Kroah-Hartman 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.39.2