linux/tools/perf/util/scripting-engines
Ben Gainey acfd65c894 tools: perf: Expose sample ID / stream ID to python scripts
perf script exposes the evsel_name to python scripts as part of the data
passed to the sample or tracepoint handler function, and it passes the id and
stream_id to the throttled/unthrottled handler functions. This makes matching
throttle events and samples difficult.

To make this possible, this change exposes the sample id and stream_id values
to the script.

Signed-off-by: Ben Gainey <ben.gainey@arm.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: will@kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240123103137.1890779-2-ben.gainey@arm.com
2024-02-02 18:05:40 -08:00
..
Build perf script python: Cope with declarations after statements found in Python.h 2023-08-03 17:01:28 -03:00
trace-event-perl.c perf script perl: Fail check on dynamic allocation 2023-11-27 10:21:27 -03:00
trace-event-python.c tools: perf: Expose sample ID / stream ID to python scripts 2024-02-02 18:05:40 -08:00