Skip to content

perf python: Add an example for sampling

Gautam Menghani linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf python: Add support for record_opts structtools/perf/util/python.c+183 -30 replies
2/2perf python: Add sampling.py as example for samplingtools/perf/python/sampling.py+49 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] perf python: Add an example for sampling

Add an example for sampling events with python. Patch 1 adds support for record_opts struct and patch 2 adds an example for sampling. The example also demonstrates usage of the record_opts struct to customize the evsel initialization from python.

Gautam Menghani (2):
perf python: Add support for record_opts struct perf python: Add sampling.py as example for sampling

 tools/perf/python/sampling.py |  49 +++++++++
 tools/perf/util/python.c      | 186 +++++++++++++++++++++++++++++++++-
 2 files changed, 232 insertions(+), 3 deletions(-)
 create mode 100755 tools/perf/python/sampling.py
Signature · 1 line
2.49.0