Skip to content

perf drivers: Add sysfs identifier file

John Garry linux-arm-kernel linux-devicetree lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 6 repliesIn review
  2. v11 patch 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drivers/perf: hisi: Add identifier sysfs filedrivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c drivers/perf/hisilicon/hisi_uncore_hha_pmu.c drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c +2 more+65 -00 replies
2/4bindings/perf/imx-ddr: update compatible stringDocumentation/devicetree/bindings/perf/fsl-imx-ddr.txt+3 -01 reply
3/4perf/imx_ddr: Add system PMU identifier for userspacedrivers/perf/fsl_imx8_ddr_perf.c+42 -30 replies
4/4perf/smmuv3: Support sysfs identifier filedrivers/perf/arm_smmuv3_pmu.c+39 -00 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJohn Garry
1/4
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] perf drivers: Add sysfs identifier file

To allow perf tool to identify a specific implementation of a PMU for event alias matching and metric support, expose a per-PMU identifier file.

There is no standard format for the identifier string. It just should be unique per HW implementation.

Typical methods to retrieve the information for the identifier string can include:
- Hardcoding in the driver, matched via DT bindings compat string, ACPI HID, or similar
- Directly from DT bindings property
- Read from some HW identification register

In this series, for the SMMUv3 PMU and HiSi uncore drivers, a HW ID register is read for the identifier. For the imx8 ddr driver, the identifier is hardcoded, matched via DT compat string.

Joakim Zhang (2):
bindings/perf/imx-ddr: update compatible string perf/imx_ddr: Add system PMU identifier for userspace

John Garry (2):
drivers/perf: hisi: Add identifier sysfs file
perf/smmuv3: Support sysfs identifier file

 .../devicetree/bindings/perf/fsl-imx-ddr.txt  |  3 ++
 drivers/perf/arm_smmuv3_pmu.c                 | 39 ++++++++++++++++
 drivers/perf/fsl_imx8_ddr_perf.c              | 45 +++++++++++++++++--
 drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 16 +++++++
 drivers/perf/hisilicon/hisi_uncore_hha_pmu.c  | 16 +++++++
 drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c  | 16 +++++++
 drivers/perf/hisilicon/hisi_uncore_pmu.c      | 10 +++++
 drivers/perf/hisilicon/hisi_uncore_pmu.h      |  7 +++
 8 files changed, 149 insertions(+), 3 deletions(-)
Signature · 1 line
2.26.2