linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf test: Add event group test
@ 2022-11-29 11:19 Ravi Bangoria
  2022-11-29 11:19 ` [PATCH v2 1/2] perf tool: Move pmus list variable to new a file Ravi Bangoria
  2022-11-29 11:19 ` [PATCH v2 2/2] perf test: Add event group test Ravi Bangoria
  0 siblings, 2 replies; 9+ messages in thread
From: Ravi Bangoria @ 2022-11-29 11:19 UTC (permalink / raw)
  To: acme
  Cc: ravi.bangoria, irogers, jolsa, namhyung, peterz, mark.rutland,
	kan.liang, adrian.hunter, alexander.shishkin, carsten.haitzler,
	leo.yan, maddy, kjain, atrajeev, tmricht, linux-perf-users,
	linux-kernel, sandipan.das, ananth.narayan, santosh.shukla

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.

v1: https://lore.kernel.org/r/20221125032018.962-1-ravi.bangoria@amd.com
v1->v2:
 - #1 is new. It makes pmus list variable non-static and moves
   it to a new file.
 - Instead of hardcoded uncore pmu configuration, iterate over
   pmus list and use whichever first uncore pmu is available.

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 | 109 ++++++++++++++++++++++++++++++++
 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, 128 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

-- 
2.38.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-01 16:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-29 11:19 [PATCH v2 0/2] perf test: Add event group test Ravi Bangoria
2022-11-29 11:19 ` [PATCH v2 1/2] perf tool: Move pmus list variable to new a file Ravi Bangoria
2022-11-29 11:19 ` [PATCH v2 2/2] perf test: Add event group test Ravi Bangoria
2022-11-29 20:13   ` Liang, Kan
2022-12-01  9:13     ` Ravi Bangoria
2022-12-01 14:02       ` Liang, Kan
2022-12-01 15:29         ` Ravi Bangoria
2022-12-01 15:47           ` Liang, Kan
2022-12-01 16:29             ` Ravi Bangoria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).