diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-09 16:47:47 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-10-09 16:47:47 +0530 |
commit | 7480b3b36703071c0ae4053d5452c98987da8487 (patch) | |
tree | d0dde8adda4bec91643d5c93582d19179c9e50fd | |
parent | 027795ded2f700cf386f31403a0e66821bbaae0c (diff) |
fix names and output files
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | cpu-freq-tests.sh | 22 | ||||
-rwxr-xr-x | cpu-tests.sh | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/cpu-freq-tests.sh b/cpu-freq-tests.sh index 961577b..440ca82 100755 --- a/cpu-freq-tests.sh +++ b/cpu-freq-tests.sh @@ -202,18 +202,18 @@ shuffle_frequency_for_all_cpus() # $1: file name clear_dumps() { - echo "" > $1.txt - echo "" > $1.cpufreq.txt - echo "" > $1.full.txt + echo "" > $0.txt + echo "" > $0.cpufreq.txt + echo "" > $0.full.txt } # $1: output file name dmesg_dumps() { - dmesg | grep cpufreq >> $1.cpufreq.txt + dmesg | grep cpufreq >> $0.cpufreq.txt # We may need the full logs as well - dmesg --read-clear >> $1.full.txt + dmesg --read-clear >> $0.full.txt } # Basic cpufreq tests @@ -239,15 +239,15 @@ cpufreq_basic_tests() read_all_cpufreq_files update_all_cpufreq_files - # hotplug cpus - hotplug_1_by_1 5 - hotplug_together 5 + # hotplug cpus for n times + cpu_hotplug_1_by_1 1 + cpu_hotplug_together 1 - # Test all governors + # Test all governors for n times shuffle_governors_for_all_cpus 1 - # Test all frequencies - shuffle_frequency_for_all_cpus 2 + # Test all frequencies for n times + shuffle_frequency_for_all_cpus 1 } clear_dumps cpufreq_basic_tests diff --git a/cpu-tests.sh b/cpu-tests.sh index 1b61125..e6e28e2 100755 --- a/cpu-tests.sh +++ b/cpu-tests.sh @@ -43,7 +43,7 @@ for_each_non_boot_cpu() { # Offline + online CPUs # param: number of times we want to run the loop -hotplug_1_by_1() +cpu_hotplug_1_by_1() { echo "** Test: Running ${FUNCNAME[0]} for $1 loops **" echo "" @@ -57,7 +57,7 @@ hotplug_1_by_1() # Offline all CPUs, followed by online all CPUs # param: number of times we want to run the loop -hotplug_together() +cpu_hotplug_together() { echo "** Test: Running ${FUNCNAME[0]} for $1 loops **" echo "" |