Commit 08d9e883 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim
Browse files

perf test stat_all_metrics: Ensure missing events fail test

Issue reported by Thomas Falcon and diagnosed by Kan Liang here:
https://lore.kernel.org/lkml/d44036481022c27d83ce0faf8c7f77042baedb34.camel@intel.com/


Metrics with missing events can be erroneously skipped if they contain
FP, AMX or PMM events.

Signed-off-by: default avatarIan Rogers <irogers@google.com>
Acked-by: default avatarKan Liang <kan.liang@linux.intel.com>
Tested-by: default avatarThomas Falcon <thomas.falcon@intel.com>
Link: https://lore.kernel.org/r/20250211213031.114209-25-irogers@google.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 8a6dcb26
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -20,7 +20,13 @@ for m in $(perf list --raw-dump metrics); do
  result_err=$?
  if [[ $result_err -gt 0 ]]
  then
    if [[ "$result" =~ \
    if [[ "$result" =~ "Cannot resolve IDs for" ]]
    then
      echo "Metric contains missing events"
      echo $result
      err=1 # Fail
      continue
    elif [[ "$result" =~ \
          "Access to performance monitoring and observability operations is limited" ]]
    then
      echo "Permission failure"