@@ -15,10 +15,10 @@ HiSilicon PCIe PMU driver
15
15
The PCIe PMU driver registers a perf PMU with the name of its sicl-id and PCIe
16
16
Core id.::
17
17
18
- /sys/bus/event_source/hisi_pcie<sicl>_ <core>
18
+ /sys/bus/event_source/hisi_pcie<sicl>_core <core>
19
19
20
20
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>.
22
22
23
23
The "format" directory describes all formats of the config (events) and config1
24
24
(filter options) fields of the perf_event_attr structure. The "events" directory
@@ -33,13 +33,13 @@ monitored by PMU.
33
33
Example usage of perf::
34
34
35
35
$# 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]
38
38
------------------------------------------
39
39
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/
43
43
44
44
The current driver does not support sampling. So "perf record" is unsupported.
45
45
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.
64
64
65
65
Example usage of perf::
66
66
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
68
68
69
69
-bdf
70
70
@@ -76,7 +76,7 @@ For example, "bdf=0x3900" means BDF of target Endpoint is 0000:39:00.0.
76
76
77
77
Example usage of perf::
78
78
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
80
80
81
81
2. Trigger filter
82
82
Event statistics start when the first time TLP length is greater/smaller
@@ -90,7 +90,7 @@ means start when TLP length < condition.
90
90
91
91
Example usage of perf::
92
92
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
94
94
95
95
3. Threshold filter
96
96
Counter counts when TLP length within the specified range. You can set the
@@ -103,4 +103,4 @@ when TLP length < threshold.
103
103
104
104
Example usage of perf::
105
105
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