]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/filter.sh
Fix replotting of all graphs
[can-benchmark.git] / gw-tests / filter.sh
1 #!/bin/bash
2
3 . lib.sh
4
5 ids="0 $(seq 255 256 2047)"
6
7 main() {
8     sshgw 'for i in `seq 0 2047`; do cangw -A -s can0 -d can1 -f $(printf %x $i):7ff; done'
9     for i in $ids; do
10         latester -d can0 -d can1 -d can2 -c $COUNT -i $i $(traffic_and_length 2) -h hist-$i.dat -f time-$i.dat
11     done
12 }
13
14 plot_cmds() {
15     cat <<EOF
16 set title "2048 GW jobs (one per id, mask 0x7FF), no modifications"
17 set logscale y
18 set grid
19 set xlabel "Time [{/Symbol m}s]"
20 set ylabel "Latency profile [messages]"
21 plot [0:1500] [1:$COUNT] \\
22 EOF
23     lt=1
24     for i in $ids; do
25         echo_plot "\"hist-$i.dat\" with lp lt $lt title \"Message id $i\""
26         lt=$((lt+1))
27     done
28 }
29     
30 test_end