aboutsummaryrefslogtreecommitdiff
path: root/cpufreq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq.sh')
-rwxr-xr-xcpufreq.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/cpufreq.sh b/cpufreq.sh
index 4f4c2db..dde999a 100755
--- a/cpufreq.sh
+++ b/cpufreq.sh
@@ -192,21 +192,6 @@ shuffle_frequency_for_all_cpus()
echo ""
}
-# Calls the routine $1 passed to it and dumps all messages in:
-# - script output: $2.txt
-# - cpufreq messages: $2.cpufreq.txt
-# - complete dmesg: $2.full.txt
-call_routine()
-{
- # call routine
- $1 >> $2.txt
-
- dmesg | grep cpufreq >> $2.cpufreq.txt
-
- # We may need the full logs as well
- dmesg --read-clear >> $2.full.txt
-}
-
# clear dumps
clear_dumps()
{
@@ -215,6 +200,15 @@ clear_dumps()
echo "" > $2.full.txt
}
+# $1: output file name
+dmesg_dumps()
+{
+ dmesg | grep cpufreq >> $1.cpufreq.txt
+
+ # We may need the full logs as well
+ dmesg --read-clear >> $1.full.txt
+}
+
# Basic cpufreq tests
cpufreq_basic_tests()
{