[PATCH v1 0/9] Restructure perf list and add json output

Ian Rogers posted 9 patches 3 years, 5 months ago
There is a newer version of this series
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              | 503 +++++++++++++++++---
tools/perf/util/metricgroup.c          | 238 +++-------
tools/perf/util/metricgroup.h          |   4 +-
tools/perf/util/pmu.c                  | 277 +++++------
tools/perf/util/pmu.h                  | 110 ++++-
tools/perf/util/print-events.c         | 630 ++++++++++---------------
tools/perf/util/print-events.h         |  40 +-
10 files changed, 1034 insertions(+), 795 deletions(-)
[PATCH v1 0/9] Restructure perf list and add json output
Posted by Ian Rogers 3 years, 5 months ago
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.

Ian Rogers (9):
  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              | 503 +++++++++++++++++---
 tools/perf/util/metricgroup.c          | 238 +++-------
 tools/perf/util/metricgroup.h          |   4 +-
 tools/perf/util/pmu.c                  | 277 +++++------
 tools/perf/util/pmu.h                  | 110 ++++-
 tools/perf/util/print-events.c         | 630 ++++++++++---------------
 tools/perf/util/print-events.h         |  40 +-
 10 files changed, 1034 insertions(+), 795 deletions(-)

-- 
2.38.1.431.g37b22c650d-goog