[PATCH 0/4] perf python: Add missing infra pieces for counting perf events

Gautam Menghani posted 4 patches 9 months, 1 week ago
There is a newer version of this series
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
[PATCH 0/4] perf python: Add missing infra pieces for counting perf events
Posted by Gautam Menghani 9 months, 1 week ago
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