]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - tests/00-rtt.sh
Add kernel submodules
[can-benchmark.git] / tests / 00-rtt.sh
1 #!/bin/bash
2
3 . _lib.sh
4
5 t() {
6     PID_S=`vca_canping -s 1 -b -R FF:$RTPRIO -d $CAN1`
7     vca_canping -m 1 -R FF:$RTPRIO -v -e $DRIVER-times -g $DRIVER -t 1 -d $CAN0 -w 0 -n 10 -c $COUNT
8     kill $PID_S
9 }
10
11
12
13 p() { cat <<EOF
14 set title "Round-trip time"
15 set logscale y
16 set grid
17 set xlabel "Time [ms]"
18 set ylabel "Latency profile [messages]"
19 plot [0:] "socketcan-1000.dat" with lp title "Socketcan",\
20               "lincan-1000.dat" with lp title "Lincan"
21 EOF
22 }
23
24 PLOT_CMD[1]='
25 set title "Round-trip time history"
26 set logscale y
27 set grid
28 set xlabel "Ping number"
29 set ylabel "Round-trip time [ms]"
30 plot "socketcan-times-1000.dat" with lines, "lincan-times-1000.dat" with lines
31 '