mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00:00
applaunch: pass the location of busybox into the script
applaunch creates and deploys an auxilary script in order to collect precise timings. This script invoked busybox with the assumption that it is in PATH. Since recent changes mean that it is no longer deployed to /system/bin, the busybox in not found. With this commit, the full path to busybox will be passed into the script's template.
This commit is contained in:
parent
7db904b359
commit
3043506d86
@ -116,6 +116,7 @@ class ApplaunchWorkload(Workload):
|
|||||||
package=APP_CONFIG[self.app]['package'],
|
package=APP_CONFIG[self.app]['package'],
|
||||||
activity=APP_CONFIG[self.app]['activity'],
|
activity=APP_CONFIG[self.app]['activity'],
|
||||||
options=APP_CONFIG[self.app]['options'],
|
options=APP_CONFIG[self.app]['options'],
|
||||||
|
busybox=self.device.busybox,
|
||||||
))
|
))
|
||||||
self.device_script_file = self.device.install(self.host_script_file)
|
self.device_script_file = self.device.install(self.host_script_file)
|
||||||
if self.set_launcher_affinity:
|
if self.set_launcher_affinity:
|
||||||
|
@ -42,7 +42,7 @@ $STOP_COMMAND
|
|||||||
echo {{ io_scheduler }} > /sys/block/mmcblk0/queue/scheduler
|
echo {{ io_scheduler }} > /sys/block/mmcblk0/queue/scheduler
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
for i in $(busybox seq 1 {{ iterations }})
|
for i in $({{ busybox }} seq 1 {{ iterations }})
|
||||||
do
|
do
|
||||||
{% for sensor in sensors %}
|
{% for sensor in sensors %}
|
||||||
{{ sensor.label }}="${{ sensor.label }} `$GET_{{ sensor.label }}`"
|
{{ sensor.label }}="${{ sensor.label }} `$GET_{{ sensor.label }}`"
|
||||||
@ -52,9 +52,9 @@ do
|
|||||||
# Drop caches to get a cold start.
|
# Drop caches to get a cold start.
|
||||||
sync; echo 3 > /proc/sys/vm/drop_caches
|
sync; echo 3 > /proc/sys/vm/drop_caches
|
||||||
# Run IO stress during App launch.
|
# Run IO stress during App launch.
|
||||||
busybox dd if=/dev/zero of=write.img bs=1048576 count=2000 conv=fsync > dd_write.txt 2>&1 &
|
{{ busybox }} dd if=/dev/zero of=write.img bs=1048576 count=2000 conv=fsync > dd_write.txt 2>&1 &
|
||||||
io_write=$!
|
io_write=$!
|
||||||
busybox dd if=/dev/block/mmcblk0 of=/dev/null bs=1048576 > dd_read.txt 2>&1 &
|
{{ busybox }} dd if=/dev/block/mmcblk0 of=/dev/null bs=1048576 > dd_read.txt 2>&1 &
|
||||||
io_read=$!
|
io_read=$!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ do
|
|||||||
{{ sensor.label }}="${{ sensor.label }} `$GET_{{ sensor.label }}`"
|
{{ sensor.label }}="${{ sensor.label }} `$GET_{{ sensor.label }}`"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
TIME=`busybox awk '{if($1~"TotalTime") print $2}' $TEMP_FILE`
|
TIME=`{{ busybox }} awk '{if($1~"TotalTime") print $2}' $TEMP_FILE`
|
||||||
TIME_RESULT="$TIME_RESULT $TIME"
|
TIME_RESULT="$TIME_RESULT $TIME"
|
||||||
{% if cleanup %}
|
{% if cleanup %}
|
||||||
rm $TEMP_FILE
|
rm $TEMP_FILE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user