Skip to content

Python motivated fixes and cleanup

Ian Rogers linux-perf-users lkml 2 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 1 replyApplied
  2. v112 patches 0 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/13perf hwmon_pmu: Avoid shortening hwmon PMU nametools/perf/util/hwmon_pmu.c+1 -10 replies
2/13perf parse-events: Minor tidy up of event_type helpertools/perf/util/parse-events.c tools/perf/util/parse-events.h+14 -190 replies
3/13perf spark: Fix includes and add SPDXtools/perf/util/spark.c tools/perf/util/spark.h+4 -50 replies
4/13perf pmu: Tolerate failure to read the type for wellknown PMUstools/perf/util/pmu.c+32 -20 replies
5/13perf metricgroup: Factor out for-each function and move out printingtools/perf/util/metricgroup.c tools/perf/util/metricgroup.h tools/perf/util/print-events.c +1 more+165 -2140 replies
6/13perf stat: Move metric list from config to evlisttools/perf/builtin-script.c tools/perf/builtin-stat.c tools/perf/tests/expand-cgroup.c +12 more+75 -1080 replies
7/13perf expr: Accumulate rather than replace in the context countstools/perf/util/expr.c+5 -10 replies
8/13perf jevents: If the long_desc and desc are identical then drop the long_desctools/perf/pmu-events/empty-pmu-events.c tools/perf/pmu-events/jevents.py tools/perf/tests/pmu-events.c +1 more+68 -880 replies
9/13perf python: In str(evsel) use the evsel__pmu_name helpertools/perf/util/python.c+1 -40 replies
10/13perf python: Fix thread check in pyrf_evsel__readtools/perf/util/python.c+1 -10 replies
11/13perf python: Correct pyrf_evsel__read for tool PMUstools/perf/util/python.c+44 -30 replies
12/13perf python: Improve leader copying from evlisttools/perf/util/python.c+57 -00 replies
13/13perf python: Set index error for invalid thread/cpu map itemstools/perf/util/python.c+6 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/13] Python motivated fixes and cleanup

Various fixes and clean ups done as part of creating the ilist app, the v4 patch series of which is posted here:
https://lore.kernel.org/lkml/[email protected]/

These patches are separated out to give something smaller to review before adding features. As requested by Namhyung.

v2: Additional evlist copying fixes found by testing on hybrid. Add
fix to set the error for out of bound cpu map and thread map item calls.

Ian Rogers (13):
perf hwmon_pmu: Avoid shortening hwmon PMU name
perf parse-events: Minor tidy up of event_type helper perf spark: Fix includes and add SPDX
perf pmu: Tolerate failure to read the type for wellknown PMUs perf metricgroup: Factor out for-each function and move out printing perf stat: Move metric list from config to evlist
perf expr: Accumulate rather than replace in the context counts perf jevents: If the long_desc and desc are identical then drop the
long_desc
perf python: In str(evsel) use the evsel__pmu_name helper perf python: Fix thread check in pyrf_evsel__read
perf python: Correct pyrf_evsel__read for tool PMUs
perf python: Improve leader copying from evlist
perf python: Set index error for invalid thread/cpu map items

 tools/perf/builtin-script.c              |   3 +-
 tools/perf/builtin-stat.c                |  25 ++-
 tools/perf/pmu-events/empty-pmu-events.c | 128 +++++------
 tools/perf/pmu-events/jevents.py         |   3 +
 tools/perf/tests/expand-cgroup.c         |  24 +--
 tools/perf/tests/parse-metric.c          |  16 +-
 tools/perf/tests/pmu-events.c            |  30 +--
 tools/perf/util/cgroup.c                 |  23 +-
 tools/perf/util/cgroup.h                 |   3 +-
 tools/perf/util/evlist.c                 |   3 +
 tools/perf/util/evlist.h                 |   6 +
 tools/perf/util/expr.c                   |   6 +-
 tools/perf/util/hwmon_pmu.c              |   2 +-
 tools/perf/util/metricgroup.c            | 261 ++++-------------------
 tools/perf/util/metricgroup.h            |  10 +-
 tools/perf/util/parse-events.c           |  31 ++-
 tools/perf/util/parse-events.h           |   2 +-
 tools/perf/util/pmu.c                    |  37 +++-
 tools/perf/util/print-events.c           | 133 ++++++++++++
 tools/perf/util/print-events.h           |   2 +
 tools/perf/util/python.c                 | 123 ++++++++++-
 tools/perf/util/spark.c                  |   8 +-
 tools/perf/util/spark.h                  |   1 +
 tools/perf/util/stat-display.c           |  16 +-
 tools/perf/util/stat-shadow.c            |  13 +-
 tools/perf/util/stat.h                   |  12 +-
 26 files changed, 473 insertions(+), 448 deletions(-)
Signature · 1 line
2.50.0.727.gbf7dc18ff4-goog