diff options
| author | Dmitrii Dolgov <9erthalion6@gmail.com> | 2022-11-09 11:39:32 +0100 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-10 15:35:37 -0300 |
| commit | 9d895e46842908aa49a042e699097df64ab20b7f (patch) | |
| tree | 81182ab7833e0552ed14c2a70ad030b451c3999f /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | perf lock: Allow concurrent record and report (diff) | |
| download | linux-9d895e46842908aa49a042e699097df64ab20b7f.tar.gz linux-9d895e46842908aa49a042e699097df64ab20b7f.zip | |
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 <9erthalion6@gmail.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20221109103932.65675-1-9erthalion6@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
