Skip to content

perf stat: Unbreak perf stat with ARMv8 PMU events

Wei Li linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf stat: Fix segfault when counting armv8_pmu eventstools/lib/perf/include/internal/evlist.h tools/perf/builtin-stat.c tools/perf/util/evlist.c+26 -112 replies
2/2perf stat: Unbreak perf stat with armv8_pmu eventstools/perf/builtin-stat.c+23 -130 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchBarry Song
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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@localhost 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@localhost 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(-)
Signature · 1 line
2.17.1