summaryrefslogtreecommitdiffstats
path: root/tools/perf/Documentation/perf-script-python.txt
diff options
context:
space:
mode:
authorBen Gainey <ben.gainey@arm.com>2024-01-23 10:31:37 +0000
committerNamhyung Kim <namhyung@kernel.org>2024-02-02 18:05:40 -0800
commitacfd65c89403f3f6478d4451d76377dd8b88bf02 (patch)
tree68dd6eac1671f3c2c4b78e6c6f1fbc5f83597c7f /tools/perf/Documentation/perf-script-python.txt
parentffd856537b95dd65facb4e0c78ca1cb92c2048ff (diff)
downloadlinux-stable-acfd65c89403f3f6478d4451d76377dd8b88bf02.tar.gz
linux-stable-acfd65c89403f3f6478d4451d76377dd8b88bf02.tar.bz2
linux-stable-acfd65c89403f3f6478d4451d76377dd8b88bf02.zip
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
Diffstat (limited to 'tools/perf/Documentation/perf-script-python.txt')
-rw-r--r--tools/perf/Documentation/perf-script-python.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/Documentation/perf-script-python.txt b/tools/perf/Documentation/perf-script-python.txt
index 6a8581012e16..13e37e9385ee 100644
--- a/tools/perf/Documentation/perf-script-python.txt
+++ b/tools/perf/Documentation/perf-script-python.txt
@@ -642,8 +642,8 @@ SUPPORTED FIELDS
Currently supported fields:
-ev_name, comm, pid, tid, cpu, ip, time, period, phys_addr, addr,
-symbol, symoff, dso, time_enabled, time_running, values, callchain,
+ev_name, comm, id, stream_id, pid, tid, cpu, ip, time, period, phys_addr,
+addr, symbol, symoff, dso, time_enabled, time_running, values, callchain,
brstack, brstacksym, datasrc, datasrc_decode, iregs, uregs,
weight, transaction, raw_buf, attr, cpumode.