]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - tests/ethloadsend.sh
Added tests with ethernet load
[can-benchmark.git] / tests / ethloadsend.sh
diff --git a/tests/ethloadsend.sh b/tests/ethloadsend.sh
new file mode 100755 (executable)
index 0000000..a720202
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+. _lib.sh
+
+t() {
+    ( find -L /usr/src/linux -type f -exec cat '{}' ';'|ssh root@${SSH_CONNECTION%% *} 'cat > /dev/null' ) &
+    PID_LOAD=$!
+    PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
+    vca_canping -m 1 -R FF:$RTPRIO FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
+    kill $PID_S
+    kill $PID_LOAD
+}
+
+
+
+PLOT_CMD='
+set title "Round-trip time with receive ethenet load (`uname -r`)"
+set logscale y
+set grid
+set xlabel "Time [{/Symbol m}s]"
+set ylabel "Latency profile [messages]"
+plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
+          "lincan-1000.dat" with lp title "Lincan"
+'
+