[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1612797946-18784-45-git-send-email-kan.liang@linux.intel.com>
Date: Mon, 8 Feb 2021 07:25:41 -0800
From: kan.liang@...ux.intel.com
To: peterz@...radead.org, acme@...nel.org, mingo@...nel.org,
linux-kernel@...r.kernel.org
Cc: tglx@...utronix.de, bp@...en8.de, namhyung@...nel.org,
jolsa@...hat.com, ak@...ux.intel.com, yao.jin@...ux.intel.com,
alexander.shishkin@...ux.intel.com, adrian.hunter@...el.com
Subject: [PATCH 44/49] perf stat: Uniquify hybrid event name
From: Jin Yao <yao.jin@...ux.intel.com>
It would be useful to tell user the pmu which the event belongs to.
perf-stat has supported '--no-merge' option and it can print the pmu
name after the event name.
Now this option is enabled by default for hybrid platform.
Before:
root@...pl-adl-s-2:~# ./perf stat -e cycles -a -- sleep 1
Performance counter stats for 'system wide':
10,301,466 cycles
1,557,794 cycles
1.002068584 seconds time elapsed
After:
root@...pl-adl-s-2:~# ./perf stat -e cycles -a -- sleep 1
Performance counter stats for 'system wide':
11,190,657 cycles [cpu_core]
669,063 cycles [cpu_atom]
1.002147571 seconds time elapsed
Reviewed-by: Andi Kleen <ak@...ux.intel.com>
Signed-off-by: Jin Yao <yao.jin@...ux.intel.com>
---
tools/perf/builtin-stat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 0b08665..bfe7305 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -2379,6 +2379,9 @@ int cmd_stat(int argc, const char **argv)
evlist__check_cpu_maps(evsel_list);
+ if (perf_pmu__hybrid_exist())
+ stat_config.no_merge = true;
+
/*
* Initialize thread_map with comm names,
* so we could print it out on output.
--
2.7.4
Powered by blists - more mailing lists