[PATCH v6 0/2] perf: Fujitsu: Add Uncore MAC/PCI PMU driver
Koichi Okuno
fj2767dz at fujitsu.com
Fri Jul 11 00:13:38 PDT 2025
This adds two new dynamic PMUs to the Perf Events framework to program
and control the Uncore MAC/PCI PMUs in Fujitsu chips.
These drivers were created with reference to drivers/perf/qcom_l3_pmu.c.
These drivers export formatting and event information to sysfs so they can
be used by the perf user space tools with the syntaxes:
perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls
perf stat -e mac_iod0_mac0_ch0/event=0x80/ ls
perf stat -e pci_iod0_pci0/ea-pci/ ls
perf stat -e pci_iod0_pci0/event=0x80/ ls
FUJITSU-MONAKA PMU Events Specification v1.1 URL:
https://github.com/fujitsu/FUJITSU-MONAKA
Changes in v6:
- Modify the code as suggested. (Peter Zijlstra)
- Added PERF_PMU_CAP_NO_INTERRUPT which means not being able to sample.
- Link to v5:https://lore.kernel.org/all/20250617102819.3685543-1-fj2767dz@fujitsu.com/
Koichi Okuno (2):
perf: Fujitsu: Add the Uncore MAC PMU driver
perf: Fujitsu: Add the Uncore PCI PMU driver
.../admin-guide/perf/fujitsu_mac_pmu.rst | 73 +++
.../admin-guide/perf/fujitsu_pci_pmu.rst | 50 ++
Documentation/admin-guide/perf/index.rst | 2 +
drivers/perf/Kconfig | 18 +
drivers/perf/Makefile | 2 +
drivers/perf/fujitsu_mac_pmu.c | 569 ++++++++++++++++++
drivers/perf/fujitsu_pci_pmu.c | 553 +++++++++++++++++
7 files changed, 1267 insertions(+)
create mode 100644 Documentation/admin-guide/perf/fujitsu_mac_pmu.rst
create mode 100644 Documentation/admin-guide/perf/fujitsu_pci_pmu.rst
create mode 100644 drivers/perf/fujitsu_mac_pmu.c
create mode 100644 drivers/perf/fujitsu_pci_pmu.c
--
2.43.0
More information about the linux-arm-kernel
mailing list