diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2016-06-02 10:18:25 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2016-06-03 18:53:47 +0800 |
commit | 9185829bc8e1f4d596b8a0c4e81045d8f04b1291 (patch) | |
tree | b578d4fcad476fa53f27c1e6c90956afa0ff6891 | |
parent | ab99d276a42e4e415591d52ecf832f1bed90d80f (diff) |
output more debug information
Change-Id: Ic291ad8c9080007f16cefba097fb1c15e71ad02e
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | common/common.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/common.sh b/common/common.sh index 5910d55..5cfd6ad 100755 --- a/common/common.sh +++ b/common/common.sh @@ -54,7 +54,7 @@ func_install_start_RotationAPK(){ } func_set2userspacewithmaxfreq(){ - for cpu in $(adb shell ls -d ${dir_sys_cpu}/cpu[0-9]* |tr '\r' ' '); do + for cpu in $(adb shell "ls -d ${dir_sys_cpu}/cpu[0-9]*" |tr '\r' ' '); do local dir_cpu_cpufreq="${cpu}/cpufreq" adb shell "echo userspace>${dir_cpu_cpufreq}/scaling_governor" adb shell "cat ${dir_cpu_cpufreq}/scaling_max_freq >${dir_cpu_cpufreq}/scaling_setspeed" @@ -64,9 +64,10 @@ func_set2userspacewithmaxfreq(){ func_showcpuinfo(){ adb shell "ls -d ${dir_sys_cpu}/cpu[0-9]*" - for cpu in $(adb shell ls -d ${dir_sys_cpu}/cpu[0-9]* |tr '\r' ' '); do + for cpu in $(adb shell "ls -d ${dir_sys_cpu}/cpu[0-9]*" |tr '\r' ' '); do local dir_cpu_cpufreq="${cpu}/cpufreq" echo "information for ${dir_cpu_cpufreq}" + adb shell "cat ${dir_cpu_cpufreq}/scaling_available_frequencies" adb shell "cat ${dir_cpu_cpufreq}/scaling_governor" adb shell "cat ${dir_cpu_cpufreq}/scaling_cur_freq" done |