]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/rtt-overload.sh
Change abck to lines from steps
[can-benchmark.git] / tests / rtt-overload.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 C=10
6
7 t() {
8     if [ $DRIVER == "socketcan" ]; then
9         ifconfig can0 txqueuelen $C
10         ifconfig can1 txqueuelen $C
11     fi
12     PID_S=`vca_canping -s $C -b -R FF:$RTPRIO -d $CAN1`
13     vca_canping -m $C -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 500 -c 10
14     kill $PID_S
15 }
16
17 #TESTS="lincan_virtual socketcan_virtual"
18
19 p() { cat <<EOF
20 set title 'RTT of highest prio message when opened $C times'
21 set logscale y
22 set grid
23 set xlabel 'Time [ms]'
24 set ylabel 'Latency profile [messages]'
25 plot [0:] 'socketcan-1000.dat' with lp title 'Socketcan',\
26           'lincan-1000.dat' with lp title 'Lincan'
27 EOF
28 }