summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2022-09-21 19:42:52 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-09-22 05:41:37 +0300
commite5eb08d8fe469c0da8643042893a0b7481807443 (patch)
treec7392d03e377b1a52fb68c463e49deff2de4382a /tools/perf/scripts/python/export-to-postgresql.py
parentf338ac9105679df504c3809784f0716c25e87b31 (diff)
downloadlinux-e5eb08d8fe469c0da8643042893a0b7481807443.tar.xz
selftests/bpf: add CSV output mode for veristat
Teach veristat to output results as CSV table for easier programmatic processing. Change what was --output/-o argument to now be --emit/-e. And then use --output-format/-o <fmt> to specify output format. Currently "table" and "csv" is supported, table being default. For CSV output mode veristat is using spec identifiers as column names. E.g., instead of "Total states" veristat uses "total_states" as a CSV header name. Internally veristat recognizes three formats, one of them (RESFMT_TABLE_CALCLEN) is a special format instructing veristat to calculate column widths for table output. This felt a bit cleaner and more uniform than either creating separate functions just for this. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20220921164254.3630690-3-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions