]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test all metrics: Fully ignore Default metric failures
authorIan Rogers <irogers@google.com>
Wed, 19 Nov 2025 19:30:47 +0000 (11:30 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 20 Nov 2025 19:08:46 +0000 (11:08 -0800)
commit41b67ab3d2f5be9d0b6e5ba9cbec97c820fc50e8
tree4e63f56bbff78b2bbc3533d76a19b8d5e8a68fb1
parentd53b4996584b448c5427ba9ab3ec06ec43190043
perf test all metrics: Fully ignore Default metric failures

Determine if a metric is default from `perf list --raw-dump $m` eg:
```
$ perf list --raw-dump l1_prefetch_miss_rate
Default4 l1_prefetch_miss_rate
```
If a metric has "not supported" or "no supported events" then ignore
these failures for default metrics. Tidy up the skip/fail messages in
the output to make them easier to spot/read.

```
$ perf list -vv "all metrics"
...
Testing llc_miss_rate
[Ignored llc_miss_rate] failed but as a Default metric this can be expected
Error: No supported events found. The LLC-loads event is not supported.
...
```

Reported-by: Thomas Richter <tmricht@linux.ibm.com>
Closes: https://lore.kernel.org/linux-perf-users/20251119104751.51960-1-tmricht@linux.ibm.com/
Reported-by: Namhyung Kim <namhyung@kernel.org>
Reported-by: James Clark <james.clark@linaro.org>
Closes: https://lore.kernel.org/lkml/aRi9xnwdLh3Dir9f@google.com/
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/stat_all_metrics.sh