Skip to content

RFC perf stat: Metrics calculation fix

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf tools: Add 'I' event modifier for exclude_idle bittools/perf/Documentation/perf-list.txt tools/perf/tests/parse-events.c tools/perf/util/parse-events.c +1 more+49 -21 reply
2/6perf stat: Fix metrics calculation with event qualifierstools/perf/builtin-stat.c+77 -522 replies
3/6perf stat: Change metrics context calculationtools/perf/builtin-stat.c+11 -60 replies
4/6perf stat: Add metrics support for exclude_hvtools/perf/builtin-stat.c+4 -10 replies
5/6perf stat: Add metrics support for exclude_(host|guest)tools/perf/builtin-stat.c+5 -10 replies
6/6perf stat: Add metrics support for exclude_idletools/perf/builtin-stat.c+4 -10 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNamhyung Kim
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [RFC 0/6] perf stat: Metrics calculation fix

hi,
I'm sending Andi's patch accompanied with changes requested by Ingo.
http://marc.info/?l=linux-kernel&m=139748629929175&w=2

I added simple bit calculated index array, while exclude_* bits might have more strict logic and ban some combinations, but I wanted to keep it simple and did not find better solution.

thanks,
jirka

---
Andi Kleen (1):
perf stat: Fix metrics calculation with event qualifiers

Jiri Olsa (5):
perf tools: Add 'I' event modifier for exclude_idle bit perf stat: Change metrics context calculation perf stat: Add metrics support for exclude_hv perf stat: Add metrics support for exclude_(host|guest) perf stat: Add metrics support for exclude_idle

 tools/perf/Documentation/perf-list.txt |   1 +
 tools/perf/builtin-stat.c              | 144 +++++++++++++++++++++++++++++++++++++++++------------------------
 tools/perf/tests/parse-events.c        |  40 ++++++++++++++++++
 tools/perf/util/parse-events.c         |   8 +++-
 tools/perf/util/parse-events.l         |   2 +-
 5 files changed, 141 insertions(+), 54 deletions(-)