]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/ethload.sh
HTML report + many modifications
[can-benchmark.git] / tests / ethload.sh
index 5b31c544b34fe5c4a007f08fb321e87c6a853738..8aecd34a70169b582e8acdcca281758db7bcbc81 100755 (executable)
@@ -6,10 +6,12 @@ t() {
     for i in norm boost; do
        ssh root@${SSH_CONNECTION%% *} 'find -L /usr/src/linux -type f -exec cat "{}" ";"' > /dev/null &
        PID_LOAD=$!
-       [ $i == "boost" ] && boost_irq_prio 90
-       PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
-       vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 0 -c 10000
-       kill $PID_S
+       echo 0 1 > $DRIVER-$i-1000.dat
+       if [ $i != "boost" ] || boost_irq_prio 90; then
+           PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
+           vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER-$i -t 1 -d $CAN0 -w 0 -c $COUNT
+           kill $PID_S
+       fi
        kill $PID_LOAD
     done
 }
@@ -17,7 +19,7 @@ t() {
 
 
 PLOT_CMD='
-set title "Round-trip time with receive ethenet load (`uname -r`)"
+set title "Round-trip time with receive ethernet load"
 set logscale y
 set grid
 set xlabel "Time [{/Symbol m}s]"