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