]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/ethflood64k.sh
Convert plot commands to be returned by function p()
[can-benchmark.git] / tests / ethflood64k.sh
index f83ccaaead1865c8fbc58d88fe7e8f5302f1e707..716a466ca7a95e71f33917e9ad5fc070f2b435ed 100755 (executable)
@@ -9,7 +9,7 @@ t() {
        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 2 -c $COUNT
+           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_PING
@@ -18,7 +18,7 @@ t() {
 
 
 
-PLOT_CMD='
+p() { cat <<EOF
 set title "Round-trip time with ethernet load - ping -fs 64000"
 set logscale y
 set grid
@@ -28,5 +28,5 @@ plot [0:] "socketcan-norm-1000.dat" with lp lt 1 title "Socketcan",\
           "lincan-norm-1000.dat" with lp lt 2 title "Lincan",\
           "socketcan-boost-1000.dat" with lp lt 1 title "Socketcan boosted IRQ prio",\
           "lincan-boost-1000.dat" with lp lt 2 title "Lincan boosted IRQ prio"
-'
-
+EOF
+}