aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDmitrii Dolgov <[email protected]>2022-11-09 11:39:32 +0100
committerArnaldo Carvalho de Melo <[email protected]>2022-11-10 15:35:37 -0300
commit9d895e46842908aa49a042e699097df64ab20b7f (patch)
tree81182ab7833e0552ed14c2a70ad030b451c3999f /tools/perf/scripts/python/stackcollapse.py
parent30b331d2e3bc5c7c95568477d4bf2661b6e6cb3e (diff)
perf data: Add tracepoint fields when converting to JSON
When converting recorded data into JSON format, perf data omits probe variables. Add them to the output in the format "field name": "field value" using tep_print_field: $ perf data convert --to-json output.json // output.json { "linux-perf-json-version": 1, "headers": { ... }, "samples": [ { "timestamp": 29182079082999, "pid": 309194, [...] "__probe_ip": "0x93ee35", "query_string_string": "select 2;", "nxids": "0" } ] } Signed-off-by: Dmitrii Dolgov <[email protected]> Acked-by: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions