Skip to content

perf test: Improve pmu-events support

John Garry linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11perf test: Factor out pmu-events event comparisontools/perf/tests/pmu-events.c+66 -530 replies
2/11perf jevents: Relocate test events to cpu foldertools/perf/pmu-events/arch/test/test_soc/cpu/branch.json tools/perf/pmu-events/arch/test/test_soc/cpu/cache.json tools/perf/pmu-events/arch/test/test_soc/cpu/other.json +2 more+1 -110 replies
3/11perf test: Declare pmu-events test events separatelytools/perf/tests/pmu-events.c+126 -1180 replies
4/11perf test: Factor out pmu-events alias comparisontools/perf/tests/pmu-events.c+55 -250 replies
5/11perf test: Test pmu-events core aliases separatelytools/perf/tests/pmu-events.c+16 -290 replies
6/11perf pmu: Check .is_uncore field in pmu_add_cpu_aliases_map()tools/perf/util/pmu.c+1 -20 replies
7/11perf test: Re-add pmu-event uncore PMU alias testtools/perf/tests/pmu-events.c+110 -00 replies
8/11perf test: Add more pmu-events uncore aliasestools/perf/pmu-events/arch/test/test_soc/cpu/uncore.json tools/perf/tests/pmu-events.c+94 -10 replies
9/11perf pmu: Make pmu_add_sys_aliases() publictools/perf/util/pmu.c tools/perf/util/pmu.h+2 -10 replies
10/11perf jevents: Print SoC name per system event tabletools/perf/pmu-events/jevents.c tools/perf/pmu-events/pmu-events.h+3 -10 replies
11/11perf test: Add pmu-events sys event supporttools/perf/pmu-events/arch/test/test_soc/sys/uncore.json tools/perf/tests/pmu-events.c+83 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] perf test: Improve pmu-events support

Recently it has been shown that the pmu-events tests do not always catch broken uncore PMU alias support.

The main problem is that the alias matching only tests uncore PMUs which are present in the host system, so pretty useless.

This series improves that by using fake uncore PMUs, and verifying aliases generated for those PMUs match known expected values.

This means that even if one arch does not have PMUs which support some special aliasing, like multiple tokens, we can still have a fake uncore PMU test on that arch.

Support is also added to test system PMUs alias matching.

Based on 5.14-rc1 + "perf pmu: Fix alias matching".

John Garry (11):
perf test: Factor out pmu-events event comparison perf jevents: Relocate test events to cpu folder perf test: Declare pmu-events test events separately perf test: Factor out pmu-events alias comparison perf test: Test pmu-events core aliases separately perf pmu: Check .is_uncore field in pmu_add_cpu_aliases_map() perf test: Re-add pmu-event uncore PMU alias test perf test: Add more pmu-events uncore aliases
perf pmu: Make pmu_add_sys_aliases() public
perf jevents: Print SoC name per system event table perf test: Add pmu-events sys event support

 .../{test_cpu => test_soc/cpu}/branch.json    |   0
 .../{test_cpu => test_soc/cpu}/cache.json     |   0
 .../{test_cpu => test_soc/cpu}/other.json     |   0
 .../{test_cpu => test_soc/cpu}/uncore.json    |  23 +-
 .../arch/test/test_soc/sys/uncore.json        |   9 +
 tools/perf/pmu-events/jevents.c               |   5 +-
 tools/perf/pmu-events/pmu-events.h            |   1 +
 tools/perf/tests/pmu-events.c                 | 699 +++++++++++++-----
 tools/perf/util/pmu.c                         |   5 +-
 tools/perf/util/pmu.h                         |   1 +
 10 files changed, 533 insertions(+), 210 deletions(-)
 rename tools/perf/pmu-events/arch/test/{test_cpu => test_soc/cpu}/branch.json (100%)
 rename tools/perf/pmu-events/arch/test/{test_cpu => test_soc/cpu}/cache.json (100%)
 rename tools/perf/pmu-events/arch/test/{test_cpu => test_soc/cpu}/other.json (100%)
 rename tools/perf/pmu-events/arch/test/{test_cpu => test_soc/cpu}/uncore.json (51%)
 create mode 100644 tools/perf/pmu-events/arch/test/test_soc/sys/uncore.json
Signature · 1 line
2.26.2