Skip to content

perf test: Add event group test

Ravi Bangoria linux-perf-users lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 8 repliesIn review
  2. v22 patches 6 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Define a set of uncore pmus that supports more than 3 events. This will prevent false negative results by not picking random uncore pmu. Test will be skipped if no uncore pmu found.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf tool: Move pmus list variable to new a filetools/perf/util/Build tools/perf/util/pmu.c tools/perf/util/pmus.c +1 more+16 -10 replies
2/2perf test: Add event group testtools/perf/tests/Build tools/perf/tests/builtin-test.c tools/perf/tests/event_groups.c +1 more+130 -05 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan RogersMadhavan SrinivasanKan Liang
SeriesA-b A-b
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] perf test: Add event group test

Multiple events in a group can belong to one or more pmus, however there are some limitations to it. One of the limitation is, perf doesn't allow creating a group of events from different hw pmus. Write a simple test to create various combinations of hw, sw and uncore pmu events and verify group creation succeeds or fails as expected.

v2: https://lore.kernel.org/r/[email protected]
v2->v3:
- Define a set of uncore pmus that supports more than 3 events. This will prevent false negative results by not picking random uncore pmu. Test will be skipped if no uncore pmu found.

Ravi Bangoria (2):
perf tool: Move pmus list variable to new a file perf test: Add event group test

 tools/perf/tests/Build          |   1 +
 tools/perf/tests/builtin-test.c |   1 +
 tools/perf/tests/event_groups.c | 127 ++++++++++++++++++++++++++++++++
 tools/perf/tests/tests.h        |   1 +
 tools/perf/util/Build           |   1 +
 tools/perf/util/pmu.c           |   2 +-
 tools/perf/util/pmus.c          |   5 ++
 tools/perf/util/pmus.h          |   9 +++
 8 files changed, 146 insertions(+), 1 deletion(-)
 create mode 100644 tools/perf/tests/event_groups.c
 create mode 100644 tools/perf/util/pmus.c
 create mode 100644 tools/perf/util/pmus.h
Signature · 1 line
2.38.1