diff options
-rwxr-xr-x | cpufreq.sh | 14 | ||||
-rwxr-xr-x | runme.sh | 3 |
2 files changed, 14 insertions, 3 deletions
@@ -199,12 +199,20 @@ shuffle_frequency_for_all_cpus() call_routine() { # call routine - $1 > $2.txt + $1 >> $2.txt - dmesg | grep cpufreq > $2.cpufreq.txt + dmesg | grep cpufreq >> $2.cpufreq.txt # We may need the full logs as well - dmesg --read-clear > $2.full.txt + dmesg --read-clear >> $2.full.txt +} + +# clear dumps +clear_dumps() +{ + echo "" > $2.txt + echo "" > $2.cpufreq.txt + echo "" > $2.full.txt } # Basic cpufreq tests @@ -43,6 +43,9 @@ parse_arguments() # Run isolation test for $FUNC run_func() { + # clear dumps first, we will append it later + clear_dumps + case "$FUNC" in "basic") call_routine cpufreq_basic_tests $OUTFILE |