aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/shell/lib/perf_json_output_lint.py
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-10-17 17:53:53 +0000
committerNamhyung Kim <[email protected]>2024-10-17 19:44:26 +0000
commite1cc918b6cfd12064f9b085f4c5b059d183bd8c6 (patch)
treefa5ece9c9f86c03415d0380caa28f6200aa2cc9c /tools/perf/tests/shell/lib/perf_json_output_lint.py
parentperf stat: Display "none" for NaN with metric only json (diff)
downloadkernel-e1cc918b6cfd12064f9b085f4c5b059d183bd8c6.tar.gz
kernel-e1cc918b6cfd12064f9b085f4c5b059d183bd8c6.zip
perf stat: Drop metric-unit if unit is NULL
Avoid cases like: ``` $ perf stat -a -M topdownl1 -j -I 1000 ... {"interval" : 11.127757275, "counter-value" : "85715898.000000", "unit" : "", "event" : "IDQ.MITE_UOPS", "event-runtime" : 988376123, "pcnt-running" : 100.00, "metric-value" : "0.000000", "metric-unit" : "(null)"} ... ``` If there is no unit then drop the metric-value too as: Suggested-by: Tim Chen <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Yicong Yang <[email protected]> Cc: Weilin Wang <[email protected]> Cc: Will Deacon <[email protected]> Cc: James Clark <[email protected]> Cc: Mike Leach <[email protected]> Cc: Leo Yan <[email protected]> Cc: Sumanth Korikkar <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Tim Chen <[email protected]> Cc: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/tests/shell/lib/perf_json_output_lint.py')
0 files changed, 0 insertions, 0 deletions