]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/rtt-overload.sh
Fixes to overload test - still not fully working
[can-benchmark.git] / tests / rtt-overload.sh
diff --git a/tests/rtt-overload.sh b/tests/rtt-overload.sh
new file mode 100755 (executable)
index 0000000..a1178b0
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+. _lib.sh
+
+C=10
+
+t() {
+    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
+}
+
+#TESTS="lincan_virtual socketcan_virtual"
+
+p() { cat <<EOF
+set title 'RTT of highest prio message when opened $C times'
+set logscale y
+set grid
+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'
+EOF
+}