Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Rogers and committed by
Namhyung Kim
02432d92 a48cd551

+2 -2
+1 -1
tools/perf/tests/shell/lib/stat_output.sh
··· 156 156 echo "[Skip] CPU-measurement counter facility not installed" 157 157 return 158 158 fi 159 - perf stat --metric-only $2 -e instructions,cycles true 159 + perf stat --metric-only $2 -M page_faults_per_second true 160 160 commachecker --metric-only 161 161 echo "[Success]" 162 162 }
+1 -1
tools/perf/tests/shell/stat+csv_output.sh
··· 44 44 ;; "--per-die") exp=8 45 45 ;; "--per-cluster") exp=8 46 46 ;; "--per-cache") exp=8 47 - ;; "--metric-only") exp=2 47 + ;; "--metric-only") exp=1 48 48 esac 49 49 50 50 while read line