mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
perf test stat csv: Update test expectations and events
Explicitly use a metric rather than implicitly expecting '-e instructions,cycles' to produce a metric. Use a metric with software events to make it more compatible. Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
@@ -156,7 +156,7 @@ check_metric_only()
|
||||
echo "[Skip] CPU-measurement counter facility not installed"
|
||||
return
|
||||
fi
|
||||
perf stat --metric-only $2 -e instructions,cycles true
|
||||
perf stat --metric-only $2 -M page_faults_per_second true
|
||||
commachecker --metric-only
|
||||
echo "[Success]"
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ function commachecker()
|
||||
;; "--per-die") exp=8
|
||||
;; "--per-cluster") exp=8
|
||||
;; "--per-cache") exp=8
|
||||
;; "--metric-only") exp=2
|
||||
;; "--metric-only") exp=1
|
||||
esac
|
||||
|
||||
while read line
|
||||
|
||||
Reference in New Issue
Block a user