Skip to content

Commit eff6af5

Browse files
jic23willdeacon
authored andcommitted
Documentation: hns-pmu: Use /sys/bus/event_source/devices paths
To allow setting an appropriate parent for the struct pmu device remove existing references to /sys/devices/ path. Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 16d417f commit eff6af5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/admin-guide/perf/hns3-pmu.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ HNS3 PMU driver
1616

1717
The HNS3 PMU driver registers a perf PMU with the name of its sicl id.::
1818

19-
/sys/devices/hns3_pmu_sicl_<sicl_id>
19+
/sys/bus/event_source/devices/hns3_pmu_sicl_<sicl_id>
2020

2121
PMU driver provides description of available events, filter modes, format,
2222
identifier and cpumask in sysfs.
@@ -40,9 +40,9 @@ device.
4040

4141
Example usage of checking event code and subevent code::
4242

43-
$# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time
43+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_time
4444
config=0x00204
45-
$# cat /sys/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num
45+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/events/dly_tx_normal_to_mac_packet_num
4646
config=0x10204
4747

4848
Each performance statistic has a pair of events to get two values to
@@ -60,7 +60,7 @@ computation to calculate real performance data is:::
6060

6161
Example usage of checking supported filter mode::
6262

63-
$# cat /sys/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num
63+
$# cat /sys/bus/event_source/devices/hns3_pmu_sicl_0/filtermode/bw_ssu_rpu_byte_num
6464
filter mode supported: global/port/port-tc/func/func-queue/
6565

6666
Example usage of perf::

0 commit comments

Comments
 (0)