]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/ethloadsend.sh
Allow messages with zero id
[can-benchmark.git] / tests / ethloadsend.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     find -L /usr/src/linux -type f -exec cat '{}' ';'|ssh root@${SSH_CONNECTION%% *} 'cat > /dev/null' &
7     PID_LOAD=$!
8     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
9     vca_canping -m 1 -R FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 0 -c $COUNT
10     kill $PID_S
11     kill %%  # Kill the whole pipe above
12     sleep 1 # Wait for ethernet buffers to become empty
13 }
14
15
16
17 p() { cat <<EOF
18 set title "Round-trip time with send ethernet load (TCP)"
19 set logscale y
20 set grid
21 set xlabel "Time [ms]"
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 EOF
26 }