Loading libs/hwui/tests/scripts/prep_buller.sh +15 −27 Original line number Diff line number Diff line Loading @@ -6,19 +6,9 @@ gov=cpufreq/scaling_governor adb root adb wait-for-device adb shell stop adb shell stop thermal-engine adb shell stop perfd for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1 # LITTLE cores # 384000 460800 600000 672000 787200 864000 960000 1248000 1440000 # BIG cores Loading @@ -28,19 +18,19 @@ adb shell setprop service.bootanim.exit 1 cpu=0 S=960000 while [ $((cpu < 4)) -eq 1 ]; do echo "Setting cpu $cpu to $S hz"; adb shell "echo 1 > $cpubase/cpu${cpu}/online"; adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"; cpu=$(($cpu + 1)); echo "Setting cpu $cpu to $S hz" adb shell "echo 1 > $cpubase/cpu${cpu}/online" adb shell "echo userspace > $cpubase/cpu${cpu}/$gov" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed" cpu=$(($cpu + 1)) done while [ $((cpu < $nr)) -eq 1 ]; do echo "disable cpu $cpu"; adb shell "echo 0 > $cpubase/cpu${cpu}/online"; cpu=$(($cpu + 1)); echo "disable cpu $cpu" adb shell "echo 0 > $cpubase/cpu${cpu}/online" cpu=$(($cpu + 1)) done echo "setting GPU bus and idle timer" Loading @@ -49,13 +39,11 @@ adb shell "echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on" adb shell "echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer" #0 762 1144 1525 2288 3509 4173 5271 5928 7904 9887 11863 adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq"; adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq" &> /dev/null adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.19/min_freq" &> /dev/null #600000000 510000000 450000000 390000000 305000000 180000000 echo "performance mode, 305 MHz" adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor"; adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq"; adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"; echo "adb shell \"cat /sys/class/kgsl/kgsl-3d0/devfreq/cur_freq\"" adb shell "cat /sys/class/kgsl/kgsl-3d0/devfreq/cur_freq"; adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor" adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq" adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq" libs/hwui/tests/scripts/prep_volantis.sh +1 −9 Original line number Diff line number Diff line Loading @@ -16,16 +16,8 @@ adb root adb wait-for-device adb shell stop mpdecision adb shell stop perfd adb shell stop for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1 adb shell stop thermal-engine # cpu possible frequencies # 204000 229500 255000 280500 306000 331500 357000 382500 408000 433500 459000 Loading libs/hwui/tests/scripts/stopruntime.sh 0 → 100644 +27 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright (C) 2016 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. adb root adb wait-for-device adb shell stop for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1 Loading
libs/hwui/tests/scripts/prep_buller.sh +15 −27 Original line number Diff line number Diff line Loading @@ -6,19 +6,9 @@ gov=cpufreq/scaling_governor adb root adb wait-for-device adb shell stop adb shell stop thermal-engine adb shell stop perfd for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1 # LITTLE cores # 384000 460800 600000 672000 787200 864000 960000 1248000 1440000 # BIG cores Loading @@ -28,19 +18,19 @@ adb shell setprop service.bootanim.exit 1 cpu=0 S=960000 while [ $((cpu < 4)) -eq 1 ]; do echo "Setting cpu $cpu to $S hz"; adb shell "echo 1 > $cpubase/cpu${cpu}/online"; adb shell "echo userspace > $cpubase/cpu${cpu}/$gov"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq"; adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed"; cpu=$(($cpu + 1)); echo "Setting cpu $cpu to $S hz" adb shell "echo 1 > $cpubase/cpu${cpu}/online" adb shell "echo userspace > $cpubase/cpu${cpu}/$gov" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_max_freq" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_min_freq" adb shell "echo $S > $cpubase/cpu${cpu}/cpufreq/scaling_setspeed" cpu=$(($cpu + 1)) done while [ $((cpu < $nr)) -eq 1 ]; do echo "disable cpu $cpu"; adb shell "echo 0 > $cpubase/cpu${cpu}/online"; cpu=$(($cpu + 1)); echo "disable cpu $cpu" adb shell "echo 0 > $cpubase/cpu${cpu}/online" cpu=$(($cpu + 1)) done echo "setting GPU bus and idle timer" Loading @@ -49,13 +39,11 @@ adb shell "echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_on" adb shell "echo 10000 > /sys/class/kgsl/kgsl-3d0/idle_timer" #0 762 1144 1525 2288 3509 4173 5271 5928 7904 9887 11863 adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq"; adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.70/min_freq" &> /dev/null adb shell "echo 11863 > /sys/class/devfreq/qcom,gpubw.19/min_freq" &> /dev/null #600000000 510000000 450000000 390000000 305000000 180000000 echo "performance mode, 305 MHz" adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor"; adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq"; adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"; echo "adb shell \"cat /sys/class/kgsl/kgsl-3d0/devfreq/cur_freq\"" adb shell "cat /sys/class/kgsl/kgsl-3d0/devfreq/cur_freq"; adb shell "echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governor" adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq" adb shell "echo 305000000 > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq"
libs/hwui/tests/scripts/prep_volantis.sh +1 −9 Original line number Diff line number Diff line Loading @@ -16,16 +16,8 @@ adb root adb wait-for-device adb shell stop mpdecision adb shell stop perfd adb shell stop for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1 adb shell stop thermal-engine # cpu possible frequencies # 204000 229500 255000 280500 306000 331500 357000 382500 408000 433500 459000 Loading
libs/hwui/tests/scripts/stopruntime.sh 0 → 100644 +27 −0 Original line number Diff line number Diff line #!/bin/bash # Copyright (C) 2016 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. adb root adb wait-for-device adb shell stop for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do adb shell kill $pid done adb shell setprop debug.egl.traceGpuCompletion 1 adb shell daemonize surfaceflinger sleep 3 adb shell setprop service.bootanim.exit 1