Commit eff6af53 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Will Deacon

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240412161057.14099-5-Jonathan.Cameron@huawei.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent 16d417f6
...@@ -16,7 +16,7 @@ HNS3 PMU driver ...@@ -16,7 +16,7 @@ HNS3 PMU driver
The HNS3 PMU driver registers a perf PMU with the name of its sicl id.:: The HNS3 PMU driver registers a perf PMU with the name of its sicl id.::
/sys/devices/hns3_pmu_sicl_<sicl_id> /sys/bus/event_source/devices/hns3_pmu_sicl_<sicl_id>
PMU driver provides description of available events, filter modes, format, PMU driver provides description of available events, filter modes, format,
identifier and cpumask in sysfs. identifier and cpumask in sysfs.
...@@ -40,9 +40,9 @@ device. ...@@ -40,9 +40,9 @@ device.
Example usage of checking event code and subevent code:: 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 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 config=0x10204
Each performance statistic has a pair of events to get two values to Each performance statistic has a pair of events to get two values to
...@@ -60,7 +60,7 @@ computation to calculate real performance data is::: ...@@ -60,7 +60,7 @@ computation to calculate real performance data is:::
Example usage of checking supported filter mode:: 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/ filter mode supported: global/port/port-tc/func/func-queue/
Example usage of perf:: Example usage of perf::
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment