mbox series

[v6,0/7] Add aliases and metrics for Arm CMN

Message ID 1691394685-61240-1-git-send-email-renyu.zj@linux.alibaba.com (mailing list archive)
Headers show
Series Add aliases and metrics for Arm CMN | expand

Message

Jing Zhang Aug. 7, 2023, 7:51 a.m. UTC
Changes since v5:
- Split the first patch out into 1st pmu.c change and 2nd metricgroup.c
  change.
- Change order to check alias and then identifier.
- Fix matching_pmu.
- Add event documentation links.

Jing Zhang (7):
  perf pmu: "Compat" supports matching multiple identifiers
  perf metric: "Compat" supports matching multiple identifiers
  perf jevents: Support more event fields
  perf test: Fix matching_pmu
  perf test: Add pmu-event test for "Compat" and new event_field.
  perf jevents: Add support for Arm CMN PMU aliasing
  perf vendor events: Add JSON metrics for Arm CMN

 .../pmu-events/arch/arm64/arm/cmn/sys/cmn.json     | 266 +++++++++++++++++++++
 .../pmu-events/arch/arm64/arm/cmn/sys/metric.json  |  74 ++++++
 .../pmu-events/arch/test/test_soc/sys/uncore.json  |   8 +
 tools/perf/pmu-events/jevents.py                   |  22 +-
 tools/perf/tests/pmu-events.c                      |  64 ++++-
 tools/perf/util/metricgroup.c                      |   2 +-
 tools/perf/util/pmu.c                              |  33 ++-
 tools/perf/util/pmu.h                              |   1 +
 8 files changed, 457 insertions(+), 13 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json
 create mode 100644 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/metric.json