]> rtime.felk.cvut.cz Git - lisovros/canprio_benchmark.git/blob - single_arch_multiple_qdiscs.sh
Minor changes in scripts drawing charts.
[lisovros/canprio_benchmark.git] / single_arch_multiple_qdiscs.sh
1 #!/bin/bash
2 DIRS=(test1 test2 test3 test4 test5)
3 #DIRS=(test3)
4 TESTS=( \
5 ftrace_sff_pfifo1 \
6 ftrace_sff_pfifo2 \
7 ftrace_sff_prio1 \
8 ftrace_sff_prio1b \
9 ftrace_sff_prio2 \
10 ftrace_sff_htb1 \
11 ftrace_sff_htb2 \
12 )
13
14 if [ ! -d "samq" ]; then
15         mkdir "samq"
16 fi
17
18 for A in "sff_array" "sff_bitmap"
19 do
20         for X in ${DIRS[@]:0}
21         do
22                 for Y in ${TESTS[@]:0}
23                 do 
24                         cat "${X}/${A}/${Y}.txt" | \
25                                 tail -n +5 | cut -c 7- | cut -d" " -f 1 \
26                                 > ${Y}_plot.dat
27                 
28                         echo -n "\"${Y##*_}\" " >> "${X}_plot.dat"
29                         ./statistics.oct "${Y}_plot.dat" >> "${X}_plot.dat"
30                 done
31
32                 echo -n "."
33         #cp "${X}_plot.dat" samq/"${X}_plot.dat"
34         done
35
36         gnuplot < samq_plot.txt > samq/plot_${A}.eps
37         epstopdf samq/plot_${A}.eps
38         rm *_plot.dat
39 done
40
41 echo
42 exit 0;