Skip to content

Python improvements for a real use of parse_events

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 Latest11 patches 28 repliesApplied
  2. v111 patches 11 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11perf debug: Avoid stack overflow in recursive error messagetools/perf/util/debug.c+1 -12 replies
2/11perf evlist: Add success path to evlist__create_syswide_mapstools/perf/util/evlist.c+6 -71 reply
3/11perf evsel: tp_format accessing improvementstools/perf/util/evsel.c+15 -11 reply
4/11perf python: Add evlist enable and disable methodstools/perf/util/python.c+26 -01 reply
5/11perf python: Add member access to a number of evsel variablestools/perf/util/python.c+23 -01 reply
6/11perf python: Add optional cpus and threads arguments to parse_eventstools/perf/util/python.c+8 -24 replies
7/11perf python: Update ungrouped evsel leader in clonetools/perf/util/python.c+2 -01 reply
8/11perf python: Avoid duplicated code in get_tracepoint_fieldtools/perf/util/python.c+4 -131 reply
9/11perf python: Add evlist all_cpus accessortools/perf/util/python.c+16 -01 reply
10/11perf python: Add evlist.config to set up record optionstools/perf/util/python.c+33 -01 reply
11/11perf python tracepoint: Switch to using parse_eventstools/perf/python/tracepoint.py+11 -1212 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHoward ChuArnaldo Carvalho de Melo
SeriesR-b
1/11R-b R-b
2/11R-b R-b
3/11R-b R-b
4/11R-b R-b
5/11R-b A-b
6/11R-b R-b
7/11R-b R-b
8/11R-b R-b
9/11R-b R-b
10/11R-b A-b
11/11R-b T-b

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

Read the v2 thread

Cover letter [PATCH v2 00/11] Python improvements for a real use of parse_events

While parse_events access in python was added, it wasn't used by any python script. In enabling this for the tracepoint.py script a number of latent bugs and necessary improvements were discovered.

v2: Fix a whitespace issue on the evlist.config patch spotted by
Howard and add his reviewed-by tags.

Ian Rogers (11):
perf debug: Avoid stack overflow in recursive error message perf evlist: Add success path to evlist__create_syswide_maps perf evsel: tp_format accessing improvements
perf python: Add evlist enable and disable methods
perf python: Add member access to a number of evsel variables perf python: Add optional cpus and threads arguments to parse_events perf python: Update ungrouped evsel leader in clone
perf python: Avoid duplicated code in get_tracepoint_field perf python: Add evlist all_cpus accessor
perf python: Add evlist.config to set up record options perf python tracepoint: Switch to using parse_events

 tools/perf/python/tracepoint.py |  23 +++---
 tools/perf/util/debug.c         |   2 +-
 tools/perf/util/evlist.c        |  13 ++--
 tools/perf/util/evsel.c         |  16 +++-
 tools/perf/util/python.c        | 127 ++++++++++++++++++++++++++++----
 5 files changed, 145 insertions(+), 36 deletions(-)
Signature · 1 line
2.48.1.711.g2feabab25a-goog