0001
0002
0003
0004
0005 set -e
0006
0007
0008
0009
0010
0011 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \
0012 grep -e summary | \
0013 while read summary num event run pct
0014 do
0015 if [ $summary != "summary" ]; then
0016 exit 1
0017 fi
0018 done
0019
0020
0021
0022
0023
0024 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-csv-summary 2>&1 | \
0025 grep -e summary | \
0026 while read num event run pct
0027 do
0028 exit 1
0029 done
0030
0031 exit 0