From 8747d1b1cf6af2a1f7c9108c177b7b8764bda19e Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Mon, 12 Jan 2009 10:18:42 -0500 Subject: setup labels and ranges correctly for each experiment --- plot_ecrts | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/plot_ecrts b/plot_ecrts index 2b33575..f2af270 100755 --- a/plot_ecrts +++ b/plot_ecrts @@ -15,7 +15,7 @@ while true; do esac done -PLOTTER="plot_scatter $EPS_FLAG --lines --xrange 0.5 32.5 --yrange -0.05 1.05 --xticks 0 2 --yticks 0 0.1" +PLOTTER="plot_scatter $EPS_FLAG --lines " function get_tmp_file { OS=`uname` @@ -71,9 +71,41 @@ function plot_file { ;; esac done + YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1" + case $AXIS in + ucap) + if [ "$SCHED" == "P-EDF" ] + then + XRANGE="--xrange 0.5 32.5 --xticks 0 2" + else + XRANGE="--xrange 0.5 14.5 --xticks 0 1" + fi + AXIS_LABEL="task set utilization (prior to inflation)" + ;; + res) + XRANGE="--xrange 0 5.5 --xticks 0 1" + AXIS_LABEL="average number of resources per task" + ;; + nest) + XRANGE="--xrange 0 0.55 --xticks 0 0.1" + AXIS_LABEL="probability of nested requests" + ;; + contention) + XRANGE="--xrange 25 575 --xticks 0 50" + AXIS_LABEL="requests per resource per second" + ;; + wratio) + XRANGE="--xrange 0 0.55 --xticks 0 0.1" + AXIS_LABEL="ratio of write requests" + ;; + *) + echo "Unkown axis: $AXIS." + AXIS_LABEL="$AXIS" + ;; + esac TITLE="$TEST schedulability under $SCHED with$PARAMS" - echo $TITLE - $PLOTTER "$NAME" "$AXIS" "Schedulability" "$TITLE" \ + RANGE="$XRANGE $YRANGE" + $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \ $STRIPPED 1 2 "fair mutex" \ $STRIPPED 1 3 "task-fair RW" \ $STRIPPED 1 4 "phase-fair RW" -- cgit v1.2.2