aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-10-17 17:53:52 +0000
committerNamhyung Kim <[email protected]>2024-10-17 19:44:26 +0000
commit1133e7f7dc53edcb26c0e07d345f7285c3246efa (patch)
tree57b9c65a17455b3f5ea11f2acdc06be8396dda00 /tools/perf/builtin-script.c
parentperf stat: Fix/add parameter names for print_metric (diff)
downloadkernel-1133e7f7dc53edcb26c0e07d345f7285c3246efa.tar.gz
kernel-1133e7f7dc53edcb26c0e07d345f7285c3246efa.zip
perf stat: Display "none" for NaN with metric only json
Return earlier for an empty unit case. If snprintf of the fmt doesn't produce digits between vals and ends, as happens with NaN, make the value "none" as happens in print_metric_end. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Namhyung Kim <[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/builtin-script.c')
0 files changed, 0 insertions, 0 deletions