[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200922031346.15051-1-liwei391@huawei.com>
Date: Tue, 22 Sep 2020 11:13:44 +0800
From: Wei Li <liwei391@...wei.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
"Namhyung Kim" <namhyung@...nel.org>,
Andi Kleen <ak@...ux.intel.com>,
Alexey Budankov <alexey.budankov@...ux.intel.com>,
Adrian Hunter <adrian.hunter@...el.com>
CC: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <huawei.libin@...wei.com>
Subject: [PATCH 0/2] perf stat: Unbreak perf stat with ARMv8 PMU events
Currently, perf-stat with armv8_pmu events with a workload is broken.
This patch set just fixes that.
Before the patch set:
[root@...alhost hulk]# tools/perf/perf stat -e armv8_pmuv3_0/ll_cache_rd/,armv8_pmuv3_0/ll_cache_miss_rd/ ls > /dev/null
Segmentation fault
After the patch set:
[root@...alhost hulk]# tools/perf/perf stat -e armv8_pmuv3_0/ll_cache_rd/,armv8_pmuv3_0/ll_cache_miss_rd/ ls > /dev/null
Performance counter stats for 'ls':
39,882 armv8_pmuv3_0/ll_cache_rd/
9,639 armv8_pmuv3_0/ll_cache_miss_rd/
0.001416690 seconds time elapsed
0.001469000 seconds user
0.000000000 seconds sys
Wei Li (2):
perf stat: Fix segfault when counting armv8 PMU events
perf stat: Unbreak perf stat with armv8 PMU events
tools/lib/perf/include/internal/evlist.h | 1 +
tools/perf/builtin-stat.c | 37 ++++++++++++++++--------
tools/perf/util/evlist.c | 23 ++++++++++++++-
3 files changed, 48 insertions(+), 13 deletions(-)
--
2.17.1
Powered by blists - more mailing lists