aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/python/counting.py
diff options
context:
space:
mode:
authorGautam Menghani <[email protected]>2025-05-19 19:51:41 +0000
committerArnaldo Carvalho de Melo <[email protected]>2025-05-23 01:23:52 +0000
commit3b4991dcb49e1d99129ead644858cf7f77b8fb6b (patch)
tree118ffa45e7f7540198833023d7761b02f03e9719 /tools/perf/python/counting.py
parentperf python: Add evsel cpus and threads functions (diff)
downloadkernel-3b4991dcb49e1d99129ead644858cf7f77b8fb6b.tar.gz
kernel-3b4991dcb49e1d99129ead644858cf7f77b8fb6b.zip
perf python: Add support for 'struct perf_counts_values' to return counter data
Add support for the perf_counts_values struct to enable the python bindings to read and return the counter data. Committer notes: Use T_ULONG instead of Py_T_ULONG, as all the other PyMemberDef arrays, fixing the build with older python3 versions. Use { .name = NULL, } to finish the new PyMemberDef pyrf_counts_values_members array, again as the other arrays to please some clang versions, ditto for PyGetSetDef. Signed-off-by: Gautam Menghani <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Howard Chu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ian Rogers <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/python/counting.py')
0 files changed, 0 insertions, 0 deletions