aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplot_ecrts16
-rwxr-xr-xplot_scatter9
2 files changed, 13 insertions, 12 deletions
diff --git a/plot_ecrts b/plot_ecrts
index f2af270..fd76b22 100755
--- a/plot_ecrts
+++ b/plot_ecrts
@@ -74,28 +74,28 @@ function plot_file {
74 YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1" 74 YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1"
75 case $AXIS in 75 case $AXIS in
76 ucap) 76 ucap)
77 if [ "$SCHED" == "P-EDF" ] 77 XRANGE="--xrange 0.5 32.5 --xticks 0 2"
78 XRANGE="--xrange 0.5 22.5 --xticks 0 2"
79 if [ "$SCHED" == "G-EDF" ] && [ "$TEST" == "hard" ]
78 then 80 then
79 XRANGE="--xrange 0.5 32.5 --xticks 0 2"
80 else
81 XRANGE="--xrange 0.5 14.5 --xticks 0 1" 81 XRANGE="--xrange 0.5 14.5 --xticks 0 1"
82 fi 82 fi
83 AXIS_LABEL="task set utilization (prior to inflation)" 83 AXIS_LABEL="task set utilization (prior to inflation)"
84 ;; 84 ;;
85 res) 85 res)
86 XRANGE="--xrange 0 5.5 --xticks 0 1" 86 XRANGE="--xrange 0 5.05 --xticks 0 1"
87 AXIS_LABEL="average number of resources per task" 87 AXIS_LABEL="average number of resources per task"
88 ;; 88 ;;
89 nest) 89 nest)
90 XRANGE="--xrange 0 0.55 --xticks 0 0.1" 90 XRANGE="--xrange 0 0.505 --xticks 0 0.1"
91 AXIS_LABEL="probability of nested requests" 91 AXIS_LABEL="probability of nested requests"
92 ;; 92 ;;
93 contention) 93 contention)
94 XRANGE="--xrange 25 575 --xticks 0 50" 94 XRANGE="--xrange 45 555 --xticks 0 50"
95 AXIS_LABEL="requests per resource per second" 95 AXIS_LABEL="requests per resource per second"
96 ;; 96 ;;
97 wratio) 97 wratio)
98 XRANGE="--xrange 0 0.55 --xticks 0 0.1" 98 XRANGE="--xrange 0 0.505 --xticks 0 0.1"
99 AXIS_LABEL="ratio of write requests" 99 AXIS_LABEL="ratio of write requests"
100 ;; 100 ;;
101 *) 101 *)
@@ -106,7 +106,7 @@ function plot_file {
106 TITLE="$TEST schedulability under $SCHED with$PARAMS" 106 TITLE="$TEST schedulability under $SCHED with$PARAMS"
107 RANGE="$XRANGE $YRANGE" 107 RANGE="$XRANGE $YRANGE"
108 $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \ 108 $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \
109 $STRIPPED 1 2 "fair mutex" \ 109 $STRIPPED 1 2 "task-fair mutex" \
110 $STRIPPED 1 3 "task-fair RW" \ 110 $STRIPPED 1 3 "task-fair RW" \
111 $STRIPPED 1 4 "phase-fair RW" 111 $STRIPPED 1 4 "phase-fair RW"
112 rm $STRIPPED 112 rm $STRIPPED
diff --git a/plot_scatter b/plot_scatter
index 6ebb436..de709f3 100755
--- a/plot_scatter
+++ b/plot_scatter
@@ -3,7 +3,7 @@
3#NICE="blacktext linewidth 4.0 \"Helvetica\" 16 " 3#NICE="blacktext linewidth 4.0 \"Helvetica\" 16 "
4 4
5# try thinner lines 5# try thinner lines
6NICE="blacktext linewidth 1.0 \"Helvetica\" 16 " 6NICE="color blacktext solid linewidth 1.0 \"Helvetica\" 20 size 16cm,7cm"
7 7
8EXT="png" 8EXT="png"
9TERMINAL="png size 1024,768 large" 9TERMINAL="png size 1024,768 large"
@@ -15,7 +15,7 @@ while true; do
15 --eps) 15 --eps)
16 shift 16 shift
17 EXT="eps" 17 EXT="eps"
18 TERMINAL="postscript color eps $NICE" 18 TERMINAL="postscript eps $NICE"
19 ;; 19 ;;
20 --lines) 20 --lines)
21 shift 21 shift
@@ -100,7 +100,8 @@ if [ "$PLOT" = "plot " ]; then
100fi 100fi
101 101
102OUT="${OUT}.${EXT}" 102OUT="${OUT}.${EXT}"
103 103KEY="set key below"
104KEY="set key off"
104gnuplot <<EOM 105gnuplot <<EOM
105set terminal $TERMINAL 106set terminal $TERMINAL
106set out '/dev/null' 107set out '/dev/null'
@@ -112,7 +113,7 @@ $PLOT
112set ylabel '$YLABEL' 113set ylabel '$YLABEL'
113set xlabel '$XLABEL' 114set xlabel '$XLABEL'
114set title '$TITLE' 115set title '$TITLE'
115set key below 116$KEY
116set data style $GRAPH 117set data style $GRAPH
117set out '$OUT' 118set out '$OUT'
118replot 119replot