X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=markers-test%2Fruntest.sh;h=ceb4afcf1e63a5d6cece296af2a4a46062b98345;hb=fade4071bfc7dcaebaad3e7f502c62a152f659a9;hp=986a6e16ac6f1214b74fdbbfcead9f6e7f1976a7;hpb=d511c84bb8211b4e20ff6bcaea17b00a4e275a5f;p=lttv.git diff --git a/markers-test/runtest.sh b/markers-test/runtest.sh index 986a6e16..ceb4afcf 100644 --- a/markers-test/runtest.sh +++ b/markers-test/runtest.sh @@ -41,10 +41,9 @@ rmmod test-mark-speed-local 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 @@ -81,8 +80,6 @@ rmmod test-mark-speed-local RESNOPLOCALFL=`dmesg |grep "cycles : " |tail -n 10 |sed 's/^\[.*\] //'| sed 's/cycles : \(.*\)$/\1/'` -rmmod cachectl - echo "Results in cycles per loop" @@ -92,7 +89,7 @@ for a in $RESEMP; do SUM=`echo "$SUM + $a" | bc -l /dev/stdin`; done 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`