Skip to content

Restructure perf list and add json output

Ian Rogers linux-perf-users lkml 3 versions Applied

Status from this message: Applied the patch with a few fixes and added this to the last cset:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 15 repliesApplied
  2. v29 patches 0 repliesSuperseded
  3. v19 patches 14 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/10perf pmu: Remove is_hybrid membertools/perf/util/evsel.c tools/perf/util/evsel.h tools/perf/util/pmu.c +2 more+6 -160 replies
2/10perf pmu: Add documentationtools/perf/util/pmu.c tools/perf/util/pmu.h+132 -60 replies
3/10tools lib api fs tracing_path: Add scandir alphasorttools/lib/api/fs/tracing_path.c tools/lib/api/fs/tracing_path.h+17 -00 replies
4/10perf tracepoint: Sort events in iteratortools/perf/util/print-events.c+37 -710 replies
5/10perf list: Generalize limiting to a PMU nametools/perf/Documentation/perf-list.txt tools/perf/builtin-list.c tools/perf/util/metricgroup.c +1 more+18 -130 replies
6/10perf list: Simplify cache event printingtools/perf/util/print-events.c+27 -1051 reply
7/10perf list: Simplify symbol event printingtools/perf/util/print-events.c+21 -580 replies
8/10perf pmu: Restructure print_pmu_eventstools/perf/util/pmu.c+110 -980 replies
9/10perf list: Reorganize to use callbackstools/perf/builtin-list.c tools/perf/util/metricgroup.c tools/perf/util/metricgroup.h +4 more+621 -5122 replies
10/10perf list: Add json output optiontools/perf/Documentation/perf-list.txt tools/perf/builtin-list.c+240 -5812 replies

Reviews trailers per patch

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

PatchArnaldo Carvalho de Melo
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10T-b

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

Read the v3 thread

Cover letter [PATCH v3 00/10] Restructure perf list and add json output

Restructure perf list so that it uses callbacks to print events and metrics. Use the callbacks to implement json output. In the process add documentation to pmu.h, avoid some sorting of events, fix some command line and output bugs.

v3. Removes is_hybrid from perf_pmu as suggested by Kan Liang.
ScaleUnit is added to the json output as suggested by Weilin Wang. Some comments are also improved.
v2. Address feedback from Adrian Hunter and make kernel-doc work.

Ian Rogers (10):
perf pmu: Remove is_hybrid member
perf pmu: Add documentation
tools lib api fs tracing_path: Add scandir alphasort perf tracepoint: Sort events in iterator perf list: Generalize limiting to a PMU name perf list: Simplify cache event printing perf list: Simplify symbol event printing perf pmu: Restructure print_pmu_events
perf list: Reorganize to use callbacks
perf list: Add json output option

 tools/lib/api/fs/tracing_path.c        |  16 +
 tools/lib/api/fs/tracing_path.h        |   1 +
 tools/perf/Documentation/perf-list.txt |  10 +-
 tools/perf/builtin-list.c              | 525 +++++++++++++++++---
 tools/perf/util/evsel.c                |   5 +-
 tools/perf/util/evsel.h                |   2 +-
 tools/perf/util/metricgroup.c          | 242 +++-------
 tools/perf/util/metricgroup.h          |   4 +-
 tools/perf/util/pmu.c                  | 288 ++++++-----
 tools/perf/util/pmu.h                  | 128 ++++-
 tools/perf/util/print-events.c         | 638 ++++++++++---------------
 tools/perf/util/print-events.h         |  42 +-
 tools/perf/util/stat.c                 |  11 +-
 13 files changed, 1102 insertions(+), 810 deletions(-)
Signature · 1 line
2.38.1.431.g37b22c650d-goog