Lines Matching +full:ipc +full:- +full:3
3 # SPDX-License-Identifier: GPL-2.0
5 set -e
9 # skip if system-wide mode is forbidden
10 perf stat -a true > /dev/null 2>&1 || exit 2
13 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2
17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \
18 grep -e cycles -e instructions | \
19 while read num evt _ ipc rest
33 if [ -z "$cyc" ]; then
39 if [ "$ipc" != "$res" ]; then
41 diff=`echo $ipc $res $THRESHOLD | \
42 awk '{x = ($1 - $2) < 0 ? ($2 - $1) : ($1 - $2); print (x > $3)}'`
44 if [ $diff -eq 1 ]; then
45 echo "IPC is different: $res != $ipc ($num / $cyc)"
49 echo "Warning: Difference of IPC is under the threshold"
56 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
58 while read cpu num evt _ ipc rest
75 if [ -z "$cyc" ]; then
81 if [ "$ipc" != "$res" ]; then
83 diff=`echo $ipc $res $THRESHOLD | \
84 awk '{x = ($1 - $2) < 0 ? ($2 - $1) : ($1 - $2); print (x > $3)}'`
86 if [ $diff -eq 1 ]; then
87 echo "IPC is different: $res != $ipc ($num / $cyc)"
91 echo "Warning: Difference of IPC is under the threshold"