All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] perf tools: Add PMU alias support
@ 2021-07-29  7:06 Jin Yao
  2021-07-29  7:06 ` [PATCH v2 1/2] perf pmu: " Jin Yao
  2021-07-29  7:06 ` [PATCH v2 2/2] perf tests: Test for PMU alias Jin Yao
  0 siblings, 2 replies; 8+ messages in thread
From: Jin Yao @ 2021-07-29  7:06 UTC (permalink / raw)
  To: acme, jolsa, peterz, mingo, alexander.shishkin
  Cc: Linux-kernel, linux-perf-users, ak, kan.liang, yao.jin, Jin Yao

A perf uncore PMU may have two PMU names, a real name and an alias name.
With this patch set, the perf tool can monitor the PMU with either the
real name or the alias.

Use the real name,
 $ perf stat -e uncore_cha_2/event=1/ -x,
   4044879584,,uncore_cha_2/event=1/,2528059205,100.00,,

Use the alias,
 $ perf stat -e uncore_type_0_2/event=1/ -x,
   3659675336,,uncore_type_0_2/event=1/,2287306455,100.00,,

v2:
---
Add test case to verify the real name and alias name having same effect.

Jin Yao (1):
  perf tests: Test for PMU alias

Kan Liang (1):
  perf pmu: Add PMU alias support

 tools/perf/arch/x86/util/pmu.c  | 109 +++++++++++++++++++++++++++++++-
 tools/perf/tests/parse-events.c |  79 +++++++++++++++++++++++
 tools/perf/util/parse-events.y  |   3 +-
 tools/perf/util/pmu.c           |  26 +++++++-
 tools/perf/util/pmu.h           |   5 ++
 5 files changed, 217 insertions(+), 5 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2021-07-30  1:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29  7:06 [PATCH v2 0/2] perf tools: Add PMU alias support Jin Yao
2021-07-29  7:06 ` [PATCH v2 1/2] perf pmu: " Jin Yao
2021-07-29 13:13   ` Riccardo Mancini
2021-07-30  1:43     ` Jin, Yao
2021-07-29 15:23   ` Riccardo Mancini
2021-07-29  7:06 ` [PATCH v2 2/2] perf tests: Test for PMU alias Jin Yao
2021-07-29 13:15   ` Riccardo Mancini
2021-07-30  1:47     ` Jin, Yao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.