Skip to content

Commit eb79f12

Browse files
Yicong Yangwilldeacon
authored andcommitted
docs: perf: Fix PMU instance name of hisi-pcie-pmu
The PMU instance will be called hisi_pcie<sicl>_core<core> rather than hisi_pcie<sicl>_<core>. Fix this in the documentation. Fixes: c860200 ("docs: perf: Add description for HiSilicon PCIe PMU driver") Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Yicong Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 6b4bb4f commit eb79f12

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Documentation/admin-guide/perf/hisi-pcie-pmu.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ HiSilicon PCIe PMU driver
1515
The PCIe PMU driver registers a perf PMU with the name of its sicl-id and PCIe
1616
Core id.::
1717

18-
/sys/bus/event_source/hisi_pcie<sicl>_<core>
18+
/sys/bus/event_source/hisi_pcie<sicl>_core<core>
1919

2020
PMU driver provides description of available events and filter options in sysfs,
21-
see /sys/bus/event_source/devices/hisi_pcie<sicl>_<core>.
21+
see /sys/bus/event_source/devices/hisi_pcie<sicl>_core<core>.
2222

2323
The "format" directory describes all formats of the config (events) and config1
2424
(filter options) fields of the perf_event_attr structure. The "events" directory
@@ -33,13 +33,13 @@ monitored by PMU.
3333
Example usage of perf::
3434

3535
$# perf list
36-
hisi_pcie0_0/rx_mwr_latency/ [kernel PMU event]
37-
hisi_pcie0_0/rx_mwr_cnt/ [kernel PMU event]
36+
hisi_pcie0_core0/rx_mwr_latency/ [kernel PMU event]
37+
hisi_pcie0_core0/rx_mwr_cnt/ [kernel PMU event]
3838
------------------------------------------
3939

40-
$# perf stat -e hisi_pcie0_0/rx_mwr_latency/
41-
$# perf stat -e hisi_pcie0_0/rx_mwr_cnt/
42-
$# perf stat -g -e hisi_pcie0_0/rx_mwr_latency/ -e hisi_pcie0_0/rx_mwr_cnt/
40+
$# perf stat -e hisi_pcie0_core0/rx_mwr_latency/
41+
$# perf stat -e hisi_pcie0_core0/rx_mwr_cnt/
42+
$# perf stat -g -e hisi_pcie0_core0/rx_mwr_latency/ -e hisi_pcie0_core0/rx_mwr_cnt/
4343

4444
The current driver does not support sampling. So "perf record" is unsupported.
4545
Also attach to a task is unsupported for PCIe PMU.
@@ -64,7 +64,7 @@ bit8 is set, port=0x100; if these two Root Ports are both monitored, port=0x101.
6464

6565
Example usage of perf::
6666

67-
$# perf stat -e hisi_pcie0_0/rx_mwr_latency,port=0x1/ sleep 5
67+
$# perf stat -e hisi_pcie0_core0/rx_mwr_latency,port=0x1/ sleep 5
6868

6969
-bdf
7070

@@ -76,7 +76,7 @@ For example, "bdf=0x3900" means BDF of target Endpoint is 0000:39:00.0.
7676

7777
Example usage of perf::
7878

79-
$# perf stat -e hisi_pcie0_0/rx_mrd_flux,bdf=0x3900/ sleep 5
79+
$# perf stat -e hisi_pcie0_core0/rx_mrd_flux,bdf=0x3900/ sleep 5
8080

8181
2. Trigger filter
8282
Event statistics start when the first time TLP length is greater/smaller
@@ -90,7 +90,7 @@ means start when TLP length < condition.
9090

9191
Example usage of perf::
9292

93-
$# perf stat -e hisi_pcie0_0/rx_mrd_flux,trig_len=0x4,trig_mode=1/ sleep 5
93+
$# perf stat -e hisi_pcie0_core0/rx_mrd_flux,trig_len=0x4,trig_mode=1/ sleep 5
9494

9595
3. Threshold filter
9696
Counter counts when TLP length within the specified range. You can set the
@@ -103,4 +103,4 @@ when TLP length < threshold.
103103

104104
Example usage of perf::
105105

106-
$# perf stat -e hisi_pcie0_0/rx_mrd_flux,thr_len=0x4,thr_mode=1/ sleep 5
106+
$# perf stat -e hisi_pcie0_core0/rx_mrd_flux,thr_len=0x4,thr_mode=1/ sleep 5

0 commit comments

Comments
 (0)