Skip to content

perf stat: Separate shadow counters code

Jiri Olsa lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 8 repliesApplied
  2. v19 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- move evsel id into 'struct perf_stat'
and change the id functions namespace

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9perf stat: Add id into perf_stat structtools/perf/builtin-stat.c tools/perf/util/stat.c tools/perf/util/stat.h+52 -53 replies
2/9perf stat: Replace transaction event possition check with id checktools/perf/builtin-stat.c tools/perf/util/stat.c tools/perf/util/stat.h+16 -490 replies
3/9perf stat: Remove setup_events functiontools/perf/builtin-stat.c+7 -200 replies
4/9perf stat: Remove transaction_run from shadow update/print codetools/perf/builtin-stat.c+7 -73 replies
5/9perf stat: Introduce reset_shadow_stats functiontools/perf/builtin-stat.c+13 -80 replies
6/9perf stat: Introduce print_shadow_stats functiontools/perf/builtin-stat.c+39 -330 replies
7/9perf stat: Add output file argument to print_shadow_stats functiontools/perf/builtin-stat.c+56 -560 replies
8/9perf stat: Add aggr_mode argument to print_shadow_stats functiontools/perf/builtin-stat.c+4 -30 replies
9/9perf stat: Move shadow stat counters into separate objecttools/perf/builtin-stat.c tools/perf/util/Build tools/perf/util/stat-shadow.c +1 more+455 -4400 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/9] perf stat: Separate shadow counters code

hi,
sending cleanup/move of shadow counters. I need it for my other changes of stat scripting, but I think it can stand alone as a cleanup.

v2 changes:
- move evsel id into 'struct perf_stat'
and change the id functions namespace

Also in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/shadow

I tested on Haswel with limited set of transaction events, but all seemed ok.

thanks,
jirka
---
Jiri Olsa (9):
perf stat: Add id into perf_stat struct
perf stat: Replace transaction event possition check with id check perf stat: Remove setup_events function
perf stat: Remove transaction_run from shadow update/print code perf stat: Introduce reset_shadow_stats function
perf stat: Introduce print_shadow_stats function
perf stat: Add output file argument to print_shadow_stats function perf stat: Add aggr_mode argument to print_shadow_stats function perf stat: Move shadow stat counters into separate object

 tools/perf/builtin-stat.c     | 506 ++------------------------------------------------------------------------
 tools/perf/util/Build         |   1 +
 tools/perf/util/stat-shadow.c | 434 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/stat.c        |  35 +++++-
 tools/perf/util/stat.h        |  40 ++++++
 5 files changed, 522 insertions(+), 494 deletions(-)
 create mode 100644 tools/perf/util/stat-shadow.c