linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 00/15] New perf ilist app
@ 2025-06-11  3:45 Ian Rogers
  2025-06-11  3:45 ` [PATCH v1 01/15] perf hwmon_pmu: Avoid shortening hwmon PMU name Ian Rogers
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Ian Rogers @ 2025-06-11  3:45 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Kan Liang, James Clark, Xu Yang,
	John Garry, Masami Hiramatsu (Google), Howard Chu, Weilin Wang,
	Thomas Richter, Andi Kleen, Tiezhu Yang, Gautam Menghani,
	linux-kernel, linux-perf-users

This patch series builds up to the addition of 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.

The first part of the patches are a few perf and perf python C API
fixes, most importantly the counter reading in python supports tool
PMUs.

The second part of the patches adds event json for the software PMU
and makes the tracepoint PMU support iteration of events and the
like. Without these improvements the tracepoint and software PMUs will
appear to have no events in the ilist app. As the software PMU moves
parsing to json, the legacy hard coded parsing is removed. This has
proven controversial for hardware events and so that cleanup isn't
done here.

The final patch adds the ilist command. 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.

[1] https://textual.textualize.io/

Ian Rogers (15):
  perf hwmon_pmu: Avoid shortening hwmon PMU name
  perf parse-events: Minor tidy up of event_type helper
  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: Add basic PMU abstraction and pmus sequence
  perf python: Add function returning dictionary of all events on a PMU
  perf jevents: If the long_desc and desc are identical then drop the
    long_desc
  perf jevents: Add common software event json
  perf pmu: Tolerate failure to read the type for wellknown PMUs
  perf parse-events: Remove non-json software events
  perf tp_pmu: Factor existing tracepoint logic to new file
  perf tp_pmu: Add event APIs
  perf list: Remove tracepoint printing code
  perf ilist: Add new python ilist command

 tools/perf/builtin-list.c                     |  47 ++--
 .../arch/common/common/software.json          |  92 ++++++
 tools/perf/pmu-events/empty-pmu-events.c      | 266 +++++++++++-------
 tools/perf/pmu-events/jevents.py              |  18 +-
 tools/perf/python/ilist.py                    | 238 ++++++++++++++++
 tools/perf/util/Build                         |   1 +
 tools/perf/util/evsel.c                       |  21 +-
 tools/perf/util/hwmon_pmu.c                   |   2 +-
 tools/perf/util/parse-events.c                | 225 +++++----------
 tools/perf/util/parse-events.h                |   3 +-
 tools/perf/util/parse-events.l                |  38 +--
 tools/perf/util/parse-events.y                |  29 +-
 tools/perf/util/pmu.c                         |  41 ++-
 tools/perf/util/print-events.c                |  95 -------
 tools/perf/util/print-events.h                |   1 -
 tools/perf/util/python.c                      | 248 +++++++++++++++-
 tools/perf/util/tp_pmu.c                      | 209 ++++++++++++++
 tools/perf/util/tp_pmu.h                      |  19 ++
 18 files changed, 1143 insertions(+), 450 deletions(-)
 create mode 100644 tools/perf/pmu-events/arch/common/common/software.json
 create mode 100644 tools/perf/python/ilist.py
 create mode 100644 tools/perf/util/tp_pmu.c
 create mode 100644 tools/perf/util/tp_pmu.h

-- 
2.50.0.rc0.642.g800a2b2222-goog


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-06-11  3:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11  3:45 [PATCH v1 00/15] New perf ilist app Ian Rogers
2025-06-11  3:45 ` [PATCH v1 01/15] perf hwmon_pmu: Avoid shortening hwmon PMU name Ian Rogers
2025-06-11  3:45 ` [PATCH v1 02/15] perf parse-events: Minor tidy up of event_type helper Ian Rogers
2025-06-11  3:45 ` [PATCH v1 03/15] perf python: In str(evsel) use the evsel__pmu_name helper Ian Rogers
2025-06-11  3:45 ` [PATCH v1 04/15] perf python: Fix thread check in pyrf_evsel__read Ian Rogers
2025-06-11  3:45 ` [PATCH v1 05/15] perf python: Correct pyrf_evsel__read for tool PMUs Ian Rogers
2025-06-11  3:45 ` [PATCH v1 06/15] perf python: Add basic PMU abstraction and pmus sequence Ian Rogers
2025-06-11  3:45 ` [PATCH v1 07/15] perf python: Add function returning dictionary of all events on a PMU Ian Rogers
2025-06-11  3:45 ` [PATCH v1 08/15] perf jevents: If the long_desc and desc are identical then drop the long_desc Ian Rogers
2025-06-11  3:45 ` [PATCH v1 09/15] perf jevents: Add common software event json Ian Rogers
2025-06-11  3:45 ` [PATCH v1 10/15] perf pmu: Tolerate failure to read the type for wellknown PMUs Ian Rogers
2025-06-11  3:45 ` [PATCH v1 11/15] perf parse-events: Remove non-json software events Ian Rogers
2025-06-11  3:45 ` [PATCH v1 12/15] perf tp_pmu: Factor existing tracepoint logic to new file Ian Rogers
2025-06-11  3:45 ` [PATCH v1 13/15] perf tp_pmu: Add event APIs Ian Rogers
2025-06-11  3:45 ` [PATCH v1 14/15] perf list: Remove tracepoint printing code Ian Rogers
2025-06-11  3:45 ` [PATCH v1 15/15] perf ilist: Add new python ilist command Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).