]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-overload.sh
Gzip ramdisk - booting is faster
[can-benchmark.git] / tests / rtt-overload.sh
index 52b1a97599f8a049fb29d70f57f0e3b7d6952f3b..a1178b0ecb9bb56cd084123f531bd6299e9cf947 100755 (executable)
@@ -1,26 +1,28 @@
-#!/bin/sh
+#!/bin/bash
 
 . _lib.sh
 
 
 . _lib.sh
 
-C=100
+C=10
 
 t() {
 
 t() {
-    PID_S=`vca_canping -s $C -b -R FF:$RTPRIO -d $CAN0`
+    if [ $DRIVER == "socketcan" ]; then
+       ifconfig can0 txqueuelen $C
+       ifconfig can1 txqueuelen $C
+    fi
+    PID_S=`vca_canping -s $C -b -R FF:$RTPRIO -d $CAN1`
     vca_canping -m $C -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 500 -c 10
     kill $PID_S
 }
 
     vca_canping -m $C -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 500 -c 10
     kill $PID_S
 }
 
-TESTS="lincan_virtual socketcan_virtual"
+#TESTS="lincan_virtual socketcan_virtual"
 
 
-
-
-PLOT_CMD="
-set title 'RTT of highest prio message when opened $C times (`uname -r`)'
+p() { cat <<EOF
+set title 'RTT of highest prio message when opened $C times'
 set logscale y
 set grid
 set logscale y
 set grid
-set xlabel 'Time [{/Symbol m}s]'
+set xlabel 'Time [ms]'
 set ylabel 'Latency profile [messages]'
 plot [0:] 'socketcan-1000.dat' with lp title 'Socketcan',\
           'lincan-1000.dat' with lp title 'Lincan'
 set ylabel 'Latency profile [messages]'
 plot [0:] 'socketcan-1000.dat' with lp title 'Socketcan',\
           'lincan-1000.dat' with lp title 'Lincan'
-"
-
+EOF
+}