aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/fs/tracing_path.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-11-07 21:33:11 +0000
committerArnaldo Carvalho de Melo <[email protected]>2022-11-14 16:21:19 +0000
commit6d0a7e394eabd456f70c2f2f8e958b2343074360 (patch)
tree91d062ea2bd32ef41a1702081131d972e39c3177 /tools/lib/api/fs/tracing_path.c
parentperf stat: Fix --metric-only --json output (diff)
downloadkernel-6d0a7e394eabd456f70c2f2f8e958b2343074360.tar.gz
kernel-6d0a7e394eabd456f70c2f2f8e958b2343074360.zip
perf stat: Do not indent headers for JSON
Currently --metric-only with --json indents header lines. This is not needed for JSON. $ perf stat -aA --metric-only -j true {"unit" : "GHz"}{"unit" : "insn per cycle"}{"unit" : "branch-misses of all branches"} {"cpu" : "0", {"metric-value" : "0.101"}{"metric-value" : "0.86"}{"metric-value" : "1.91"} {"cpu" : "1", {"metric-value" : "0.102"}{"metric-value" : "0.87"}{"metric-value" : "2.02"} {"cpu" : "2", {"metric-value" : "0.085"}{"metric-value" : "1.02"}{"metric-value" : "1.69"} ... Note that the other lines are broken JSON, but it will be handled later. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Xing Zhengjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions