lkml.org 
[lkml]   [2021]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/2] perf tools: Add PMU alias support
Date
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,,

v3:
---
1. Use fgets() to replace fscanf().
2. Resource cleanup.

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 | 129 +++++++++++++++++++++++++++++++-
tools/perf/tests/parse-events.c | 92 +++++++++++++++++++++++
tools/perf/util/parse-events.y | 3 +-
tools/perf/util/pmu.c | 26 ++++++-
tools/perf/util/pmu.h | 5 ++
5 files changed, 250 insertions(+), 5 deletions(-)

--
2.27.0

\
 
 \ /
  Last update: 2021-07-30 09:09    [W:0.050 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site