]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/ethflood.sh
Allow tests to generate more graphs
[can-benchmark.git] / tests / ethflood.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     ssh root@${SSH_CONNECTION%% *} 'ping -qf "${SSH_CONNECTION%% *}"' &
7     PID_PING=$!
8     boost_irq_prio
9     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
10     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
11     kill $PID_S
12     kill $PID_PING
13 }
14
15
16
17 PLOT_CMD='
18 set title "Round-trip time with ethenet load - ping -f (`uname -r`)"
19 set logscale y
20 set grid
21 set xlabel "Time [{/Symbol m}s]"
22 set ylabel "Latency profile [messages]"
23 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
24           "lincan-1000.dat" with lp title "Lincan"
25 '
26