New perf ilist app
Status from this message: Thanks, applied to perf-tools-next,
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest11 patches 3 repliesApplied
- v916 patches 9 repliesApplied
- v816 patches 6 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 16 patches | 24 replies | Superseded | |
| v6 | 14 patches | 0 replies | Superseded | |
| v5 posting 2/2 | 14 patches | 0 replies | Superseded | |
| v5 posting 1/2 | 14 patches | 0 replies | Superseded | |
| v4 | 15 patches | 2 replies | Superseded | |
| v3 | 15 patches | 0 replies | Superseded | |
| v2 | 15 patches | 1 reply | Superseded | |
| v1 | 15 patches | 0 replies | Superseded |
Patches in v10 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | perf python: Add more exceptions on error pathstools/ | +11 | 0 replies | |
| 2/11 | perf python: Improve the tracepoint function if no libtraceeventtools/ | +2 | 0 replies | |
| 3/11 | perf python: Add basic PMU abstraction and pmus sequencetools/ | +140 | 0 replies | |
| 4/11 | perf python: Add function returning dictionary of all events on a PMUtools/ | +71 | 0 replies | |
| 5/11 | perf ilist: Add new python ilist commandtools/ | +385 | 0 replies | |
| 6/11 | perf python: Add parse_metrics functiontools/ | +41 | 0 replies | |
| 7/11 | perf python: Add evlist metrics functiontools/ | +33 | 0 replies | |
| 8/11 | perf python: Add evlist compute_metrictools/ | +125 | 2 replies | |
| 9/11 | perf python: Add metrics functiontools/ | +86 | 0 replies | |
| 10/11 | perf ilist: Add support for metricstools/ | +168 | 0 replies | |
| 11/11 | perf tp_pmu: Remove unnecessary checktools/ | +0 | 0 replies |
Reviews trailers per patch
10 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Arnaldo Carvalho de Melo | Howard Chu |
|---|---|---|
| 1/11 | T-b | R-b |
| 2/11 | T-b | R-b |
| 3/11 | T-b | R-b |
| 4/11 | T-b | R-b |
| 5/11 | T-b | R-b |
| 6/11 | T-b | R-b |
| 7/11 | T-b | R-b |
| 8/11 | T-b | R-b |
| 9/11 | T-b | R-b |
| 10/11 | T-b | R-b |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v10 00/11] New perf ilist app
This patch series adds a new ilist app written in python using textual
[1] for the UI. The app presents perf PMUs and events, displays the event information as in perf list while at the bottom of the console showing recent activity of the event in total and across all CPUs. It also displays metrics, placed in a tree through their metric group, again with counts being displayed in the bottom panel.
To run it you need the updated perf.cpython.so in your PYTHONPATH and then execute the script. Expanding PMUs and then selecting events will cause event informatin to be displayed in the top-right and the counters values to be displayed as sparklines and counts in the bottom half of the screen.
There's been feedback on how the app works, simplicity of implementation has been chosen as the first criteria as the app can be further refined from what is here. The choice of the name ilist rather than say istat was deliberate as I wanted the app to encourage PMU, event and metric discovery, as with perf list. The output counts and spark lines are just to give an indication of what the event gathers. ilist comes from interactive list, there's probably a better name.
[1] https://textual.textualize.io/
v10: Add Howard's reviewed-by and address documentation fix. Rebase
and drop build up patches merged in v6.17 by Namhyung.
v9: sys metric support and pep8 clean up suggested by Xu Yang
<[email protected]>.
v8: nit fixing of issues caught by Arnaldo and Namhyung. Add Arnaldo's
tested-by. Fail to repro issue reported by Thomas Falcon but encounter textual rendering and DOM query race, add an exception handling path to avoid the race being fatal. The change is minor in patch 16, so Arnaldo's tested-by is kept.
v7: Better handle errors in the python code and ignore errors when
scanning PMU/events in ilist.py, improving the behavior when not root. Add a tp_pmu/python clean up. Minor kernel coding style clean up. Fix behavior of ilist if a search result isn't found but then next is chosen.
v6: For metrics on hybrid systems don't purely match by name, also
match the CPU and thread so that if the same metric exists for different PMUs the appropriate one is selected and counters may be read. Likewise use evsel maps and not the evlists.
v5: Split the series in two. Add metric support. Various clean ups and
tweaks to the app in particular around the handling of searches.
v4: No conflict rebase. Picks up perf-tools-next DRM PMU which
displays as expected.
v3: Add a search dialog to the ilist app with 'n'ext and 'p'revious
keys. No changes in the ground work first 14 patches.
v2: In the jevents event description duplication, some minor changes
accidentally missed from v1 meaning that in v1 the descriptions were still duplicated. Expand the cover letter with some thoughts on the series.
Ian Rogers (11):
perf python: Add more exceptions on error paths
perf python: Improve the tracepoint function if no libtraceevent perf python: Add basic PMU abstraction and pmus sequence perf python: Add function returning dictionary of all events on a PMU perf ilist: Add new python ilist command
perf python: Add parse_metrics function
perf python: Add evlist metrics function
perf python: Add evlist compute_metric
perf python: Add metrics function
perf ilist: Add support for metrics
perf tp_pmu: Remove unnecessary check
tools/perf/python/ilist.py | 495 +++++++++++++++++++++++++++++++++++ tools/perf/util/python.c | 522 ++++++++++++++++++++++++++++++++++++- tools/perf/util/tp_pmu.c | 2 - 3 files changed, 1004 insertions(+), 15 deletions(-) create mode 100755 tools/perf/python/ilist.py
Signature · 1 line
2.51.0.rc1.167.g924127e9c0-goog