RESNOPLOCAL=`dmesg |grep "cycles : " |tail -n 10 |sed 's/^\[.*\] //'| sed 's/cycles : \(.*\)$/\1/'`
-#make clean
-#make EXTRA_CFLAGS=-DCACHEFLUSH
+make clean
+make EXTRA_CFLAGS=-DCACHEFLUSH
-modprobe cachectl
insmod test-mark-speed-empty.ko
cat /proc/testmark
RESNOPLOCALFL=`dmesg |grep "cycles : " |tail -n 10 |sed 's/^\[.*\] //'| sed 's/cycles : \(.*\)$/\1/'`
-rmmod cachectl
-
echo "Results in cycles per loop"
RESEMP=`echo $SUM/$ITER/$LOOPS | bc -l /dev/stdin`
echo $RESEMP
-echo "Cycles for wbinvd() loop (will be substracted non-cached runs)"
+echo "Cycles for clflush() loop (will be substracted non-cached runs)"
SUM="0"
for a in $RESEMPFL; do SUM=`echo "$SUM + $a" | bc -l /dev/stdin`; done
RESEMPFL=`echo $SUM/$ITER/$LOOPS | bc -l /dev/stdin`