linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] perf python: Add missing infra pieces for counting perf events
@ 2025-05-01  9:36 Gautam Menghani
  2025-05-01  9:36 ` [PATCH 1/4] perf python: Add support for perf_counts_values to return counter data Gautam Menghani
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Gautam Menghani @ 2025-05-01  9:36 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, mark.rutland, alexander.shishkin,
	jolsa, irogers, adrian.hunter, kan.liang
  Cc: Gautam Menghani, linux-perf-users, linux-kernel, maddy

Add the missing infra code in the perf python bindings for measuring and
reading the counter values for the given perf event. Demonstrate the
usage of this with counting.py - a python version of counting.c

Gautam Menghani (4):
  perf python: Add support for perf_counts_values to return counter data
  perf python: Add evsel read method
  perf python: Add evlist close and next methods
  perf python: Add counting.py as example for counting perf events

 tools/perf/python/counting.py |  42 +++++++++
 tools/perf/util/python.c      | 162 +++++++++++++++++++++++++++++++++-
 2 files changed, 203 insertions(+), 1 deletion(-)
 create mode 100755 tools/perf/python/counting.py

-- 
2.49.0


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

end of thread, other threads:[~2025-05-05 21:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-01  9:36 [PATCH 0/4] perf python: Add missing infra pieces for counting perf events Gautam Menghani
2025-05-01  9:36 ` [PATCH 1/4] perf python: Add support for perf_counts_values to return counter data Gautam Menghani
2025-05-01  9:36 ` [PATCH 2/4] perf python: Add evsel read method Gautam Menghani
2025-05-01  9:36 ` [PATCH 3/4] perf python: Add evlist close and next methods Gautam Menghani
2025-05-01 15:49   ` Ian Rogers
2025-05-05 11:49     ` Gautam Menghani
2025-05-05 21:02       ` Ian Rogers
2025-05-01  9:36 ` [PATCH 4/4] perf python: Add counting.py as example for counting perf events Gautam Menghani
2025-05-01 16:04   ` Ian Rogers
2025-05-01 16:11     ` Ian Rogers
2025-05-05 11:51     ` Gautam Menghani

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).