diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2024-08-29 17:03:32 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-08-30 11:43:10 +0100 |
commit | d1c93d5c67ebc7cf5b70ecff7172a0c399975d55 (patch) | |
tree | d6fee3484a5f83612a6034c0bbbfa4fea1be9bec /Documentation/admin-guide/perf | |
parent | 17bf68aeb3642221e3e770399b5a52f370747ac1 (diff) | |
download | lwn-d1c93d5c67ebc7cf5b70ecff7172a0c399975d55.tar.gz lwn-d1c93d5c67ebc7cf5b70ecff7172a0c399975d55.zip |
drivers/perf: hisi_pcie: Export supported Root Ports [bdf_min, bdf_max]
Currently users can get the Root Ports supported by the PCIe PMU by
"bus" sysfs attributes which indicates the PCIe bus number where
Root Ports are located. This maybe insufficient since Root Ports
supported by different PCIe PMUs may be located on the same PCIe bus.
So export the BDF range the Root Ports additionally.
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240829090332.28756-4-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'Documentation/admin-guide/perf')
-rw-r--r-- | Documentation/admin-guide/perf/hisi-pcie-pmu.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/admin-guide/perf/hisi-pcie-pmu.rst b/Documentation/admin-guide/perf/hisi-pcie-pmu.rst index 5541ff40e06a..083ca50de896 100644 --- a/Documentation/admin-guide/perf/hisi-pcie-pmu.rst +++ b/Documentation/admin-guide/perf/hisi-pcie-pmu.rst @@ -28,7 +28,9 @@ The "identifier" sysfs file allows users to identify the version of the PMU hardware device. The "bus" sysfs file allows users to get the bus number of Root Ports -monitored by PMU. +monitored by PMU. Furthermore users can get the Root Ports range in +[bdf_min, bdf_max] from "bdf_min" and "bdf_max" sysfs attributes +respectively. Example usage of perf:: |