Skip to content

perf: consolidate all the open counters loops

David Ahern lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 6 repliesIn review
  2. v19 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf python: add ui stubs filetools/perf/util/python-ext-sources tools/perf/util/python_stubs.c+55 -04 replies
2/9perf top: make use of perf_record_optstools/perf/builtin-top.c tools/perf/util/top.c tools/perf/util/top.h+54 -592 replies
3/9perf evlist: introduce open counters methodtools/perf/util/evlist.c tools/perf/util/evlist.h+133 -10 replies
4/9perf top: use the new perf_evlist__open_counters methodtools/perf/builtin-top.c+3 -710 replies
5/9perf record: use the new perf_evlist__open_counters methodtools/perf/builtin-record.c+3 -1130 replies
6/9perf stat: move user options to perf_record_optstools/perf/builtin-stat.c+101 -660 replies
7/9perf evlist: add stat unique code to open_counters methodtools/perf/builtin-record.c tools/perf/builtin-top.c tools/perf/util/evlist.c +1 more+18 -50 replies
8/9perf stat: move to perf_evlist__open_counterstools/perf/builtin-stat.c+22 -810 replies
9/9perf evsel: remove perf_evsel__open_per_cputools/perf/util/evsel.c tools/perf/util/evsel.h+0 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 0/9 v2] perf: consolidate all the open counters loops

This patch set consolidates all of the open counters loops into a single common one.

Rebased to latest perf/core. Added more hooks to ui stubs file.

David Ahern (9):
perf python: add ui stubs file
perf top: make use of perf_record_opts
perf evlist: introduce open counters method
perf top: use the new perf_evlist__open_counters method perf record: use the new perf_evlist__open_counters method perf stat: move user options to perf_record_opts perf evlist: add stat unique code to open_counters method perf stat: move to perf_evlist__open_counters perf evsel: remove perf_evsel__open_per_cpu

 tools/perf/builtin-record.c        |  116 +----------------
 tools/perf/builtin-stat.c          |  246 ++++++++++++++++--------------------
 tools/perf/builtin-top.c           |  146 ++++++---------------
 tools/perf/util/evlist.c           |  143 ++++++++++++++++++++-
 tools/perf/util/evlist.h           |    4 +
 tools/perf/util/evsel.c            |    6 -
 tools/perf/util/evsel.h            |    2 -
 tools/perf/util/python-ext-sources |    1 +
 tools/perf/util/python_stubs.c     |   54 ++++++++
 tools/perf/util/top.c              |   20 +--
 tools/perf/util/top.h              |    9 +-
 11 files changed, 366 insertions(+), 381 deletions(-)
 create mode 100644 tools/perf/util/python_stubs.c
Signature · 1 line
1.7.10.1