mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
perf test metrics: Update all metrics for possibly failing default metrics
Default metrics may use unsupported events and be ignored. These metrics shouldn't cause metric testing to fail. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
@@ -25,8 +25,13 @@ for m in $(perf list --raw-dump metrics); do
|
||||
# No error result and metric shown.
|
||||
continue
|
||||
fi
|
||||
if [[ "$result" =~ "Cannot resolve IDs for" ]]
|
||||
if [[ "$result" =~ "Cannot resolve IDs for" || "$result" =~ "No supported events found" ]]
|
||||
then
|
||||
if [[ "$m" == @(l1_prefetch_miss_rate|stalled_cycles_per_instruction) ]]
|
||||
then
|
||||
# Default metrics that may use unsupported events.
|
||||
continue
|
||||
fi
|
||||
echo "Metric contains missing events"
|
||||
echo $result
|
||||
err=1 # Fail
|
||||
|
||||
Reference in New Issue
Block a user