]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test: Be tolerant of missing json metric none value
authorIan Rogers <irogers@google.com>
Wed, 12 Nov 2025 19:53:08 +0000 (11:53 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 17 Nov 2025 07:24:00 +0000 (23:24 -0800)
commitc335b7a960291d5b35221304a0b5bf8ebafced15
treeef95f4419889697b4376eb01c709c3fc15439155
parent38367a22abba12b9ecd66536ff62274f0afbcf6f
perf test: Be tolerant of missing json metric none value

print_metric_only_json and print_metric_end in stat-display.c may
create a metric value of "none" which fails validation as isfloat. Add
a helper to properly validate metric numeric values.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/lib/perf_json_output_lint.py