]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test stat+json: Improve metric-only testing
authorIan Rogers <irogers@google.com>
Tue, 11 Nov 2025 21:21:59 +0000 (13:21 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 12 Nov 2025 00:48:35 +0000 (16:48 -0800)
commit2c240484cf52da3c2ca14cfb70e8cf9179197ced
tree0f15d56bc5eb9a0506d4243f99a38b1b2709c869
parent1bcd6271651e55329664e38446ab0288b64fb326
perf test stat+json: Improve metric-only testing

When testing metric-only, pass a metric to perf rather than expecting
a hard coded metric value to be generated.

Remove keys that were really metric-only units and instead don't
expect metric only to have a matching json key as it encodes metrics
as {"metric_name", "metric_value"}.

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
tools/perf/tests/shell/stat+json_output.sh