]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/ethloadsend.sh
Fixed termination of remote ping
[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 FF:$RTPRIO -v -g $DRIVER -t 1 -d $CAN0 -w 2 -c 10000
10     kill $PID_S
11     kill $PID_LOAD
12 }
13
14
15
16 PLOT_CMD='
17 set title "Round-trip time with receive ethenet load (`uname -r`)"
18 set logscale y
19 set grid
20 set xlabel "Time [{/Symbol m}s]"
21 set ylabel "Latency profile [messages]"
22 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
23           "lincan-1000.dat" with lp title "Lincan"
24 '
25