]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/dwc_pcie: Support counting multiple lane events in parallel
authorIlkka Koskinen <ilkka@os.amperecomputing.com>
Thu, 28 Aug 2025 22:35:19 +0000 (15:35 -0700)
committerWill Deacon <will@kernel.org>
Thu, 18 Sep 2025 12:52:13 +0000 (13:52 +0100)
commit71396cfac97d0249fa7d8dcc8e649b6ba4c090e4
tree16fdce267f181fc3be6359c6a6f3ad8f6fabf216
parent1e558fb31bec3076500219cc417f477fe10a8463
perf/dwc_pcie: Support counting multiple lane events in parallel

While Designware PCIe PMU allows to count only one time based event
at a time, it allows to count all the lane events simultaneously.
After the patch one is able to count a group of lane events:

  $  perf stat -e '{dwc_rootport/tx_memory_write,lane=1/,dwc_rootport/rx_memory_read,lane=0/}' dd if=/dev/nvme0n1 of=/dev/null bs=1M count=1

Earlier the events wouldn't have been counted successfully.

Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/admin-guide/perf/dwc_pcie_pmu.rst
drivers/perf/dwc_pcie_pmu.c