Skip to content

Commit 96a37ec

Browse files
Krishna chaitanya chundruwilldeacon
authored andcommitted
Documentation: dwc_pcie_pmu: Update bdf to sbdf
Update document to reflect the driver change to use sbdf instead of bdf alone. Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com> Reviewed-by: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20240816-dwc_pmu_fix-v2-2-198b8ab1077c@quicinc.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent e669388 commit 96a37ec

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Documentation/admin-guide/perf/dwc_pcie_pmu.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ Some of the events only exist for specific configurations.
4646
DesignWare Cores (DWC) PCIe PMU Driver
4747
=======================================
4848

49-
This driver adds PMU devices for each PCIe Root Port named based on the BDF of
49+
This driver adds PMU devices for each PCIe Root Port named based on the SBDF of
5050
the Root Port. For example,
5151

52-
30:03.0 PCI bridge: Device 1ded:8000 (rev 01)
52+
0001:30:03.0 PCI bridge: Device 1ded:8000 (rev 01)
5353

54-
the PMU device name for this Root Port is dwc_rootport_3018.
54+
the PMU device name for this Root Port is dwc_rootport_13018.
5555

5656
The DWC PCIe PMU driver registers a perf PMU driver, which provides
5757
description of available events and configuration options in sysfs, see
58-
/sys/bus/event_source/devices/dwc_rootport_{bdf}.
58+
/sys/bus/event_source/devices/dwc_rootport_{sbdf}.
5959

6060
The "format" directory describes format of the config fields of the
6161
perf_event_attr structure. The "events" directory provides configuration
@@ -66,16 +66,16 @@ The "perf list" command shall list the available events from sysfs, e.g.::
6666

6767
$# perf list | grep dwc_rootport
6868
<...>
69-
dwc_rootport_3018/Rx_PCIe_TLP_Data_Payload/ [Kernel PMU event]
69+
dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/ [Kernel PMU event]
7070
<...>
71-
dwc_rootport_3018/rx_memory_read,lane=?/ [Kernel PMU event]
71+
dwc_rootport_13018/rx_memory_read,lane=?/ [Kernel PMU event]
7272

7373
Time Based Analysis Event Usage
7474
-------------------------------
7575

7676
Example usage of counting PCIe RX TLP data payload (Units of bytes)::
7777

78-
$# perf stat -a -e dwc_rootport_3018/Rx_PCIe_TLP_Data_Payload/
78+
$# perf stat -a -e dwc_rootport_13018/Rx_PCIe_TLP_Data_Payload/
7979

8080
The average RX/TX bandwidth can be calculated using the following formula:
8181

@@ -88,7 +88,7 @@ Lane Event Usage
8888
Each lane has the same event set and to avoid generating a list of hundreds
8989
of events, the user need to specify the lane ID explicitly, e.g.::
9090

91-
$# perf stat -a -e dwc_rootport_3018/rx_memory_read,lane=4/
91+
$# perf stat -a -e dwc_rootport_13018/rx_memory_read,lane=4/
9292

9393
The driver does not support sampling, therefore "perf record" will not
9494
work. Per-task (without "-a") perf sessions are not supported.

0 commit comments

Comments
 (0)