]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Do not plot graphs by default
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 31 Aug 2009 17:56:04 +0000 (19:56 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 31 Aug 2009 17:56:04 +0000 (19:56 +0200)
Added make plotall to graph all plots for all kernels

tests/Makefile
tests/_lib.sh

index 16d522a67419f0714826406921d9bd30f58419d6..f37d4b7e6bd6aa4800b06ff6e40c229e56a93ae5 100644 (file)
@@ -3,8 +3,9 @@ T=$(filter-out _lib.sh,$(wildcard *.sh))
 .PHONY: $(T)
 
 all: $(T) html
+       @echo "Run 'make plot' to generate graphs"
 
-TEST_FLAGS = -X
+TEST_FLAGS = -P
 
 $(T):%:
        ./$@ $(TEST_FLAGS)
@@ -13,6 +14,9 @@ $(T):%:
 plot:
        $(MAKE) TEST_FLAGS="-p -X"
 
+plotall:
+       for i in results/by-kern/*; do $(MAKE) plot KVERS=$${i#results/by-kern/}; done
+
 .PHONY: html
 html:
        ./genhtml.py results
index 6100f7edd05500562a36e4dc261795ade8704540..bb3a60e1e72cabf135ee88d157e56027735666e9 100644 (file)
@@ -1,6 +1,7 @@
 
 while [ $# -gt 0 ]; do
     case "$1" in
+       -P) OPT_PLOT_DISABLE=1; shift;;
        -p) OPT_PLOT_ONLY=1; shift;;
        -X|--no-x11-plot) OPT_NO_X11=1; shift;;
     esac
@@ -99,6 +100,7 @@ kvers() {
                                          -e 's/ *$//'|tr -s ' ' '_')
     v=$(uname -r)
     [ -n "$cmdline" ] && v="$v:$cmdline"
+    [ -n "$KVERS" ] && v=$KVERS
     echo $v
 }
 
@@ -156,9 +158,13 @@ go() {
        if [ ! -n "$OPT_PLOT_ONLY" ]; then
            cpufreq-set -f ${clk}MHz
            run_tests
-           cpufreq-set -f 2400MHz
+           cpufreq-set -f ${mhz}MHz
+       else
+           unset OPT_PLOT_DISABLE
+       fi
+       if [ ! -n "$OPT_PLOT_DISABLE" ]; then
+           plot
        fi
-       plot
        popd
        set +x
     done