Skip to content
Snippets Groups Projects
Commit 3e29b893 authored by Patrick Lavoisier Wapet's avatar Patrick Lavoisier Wapet
Browse files

first commit

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 204 additions and 0 deletions
This diff is collapsed.
File added
File added
File added
File added
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
adb root
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/Experiments_of_task_on_CPUs/benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.DUMP
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS
sleep 3
adb shell "echo \"-----starting the app\"
sleep 1
am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
sleep 1
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#!/bin/bash
adb root
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/Experiments_of_task_on_CPUs/benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.DUMP
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS
sleep 3
adb shell "echo \"-----starting the app\"
sleep 1
am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
sleep 1
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#!/bin/bash
adb root
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/from_collegue/benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.DUMP
adb shell pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS
sleep 3
adb shell "echo \"-----starting the app\"
sleep 1
am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
adb shell "echo -----\"making best_effort_fl task group directory\"
sleep 1
mkdir /sys/fs/cgroup/cpu
mount -t cgroup -ocpu none /sys/fs/cgroup/cpu
cd /sys/fs/cgroup/cpu
mkdir best_effort_fl"
echo "----- adding task_pid = $APP_PID to best effort group "
adb shell "sleep 1
echo $APP_PID > /sys/fs/cgroup/cpu/best_effort_fl/tasks
echo \"-----task with pid = $APP_PID , was added to best effort group, \"
cat /sys/fs/cgroup/cpu/best_effort_fl/tasks "
#!/bin/bash
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/Experiments_of_task_on_CPUs/benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell "su -c pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.DUMP"
adb shell "su -c pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS"
sleep 3
adb shell " echo \"-----starting the app\";
sleep 5;
am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
sleep 1
APP_PID=$(adb shell "ps | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#adb shell "am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
#APP_PID=$(adb shell "ps | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }') ; echo "----- app_pid = $APP_PID "
#!/bin/bash
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/from_collegue/benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell "su -c pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.DUMP"
adb shell "su -c pm grant com.opportunistask.scheduling.benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS"
sleep 3
adb shell " echo \"-----starting the app\"
sleep 1
am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
APP_PID=$(adb shell "ps | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#!/bin/bash
adb root
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/Experiments_of_task_on_CPUs/interactive_benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell pm grant com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores android.permission.DUMP
adb shell pm grant com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS
sleep 3
adb shell "echo \"-----starting the app\"
sleep 1
am start -n com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores.MainActivity"
sleep 1
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#!/bin/bash
adb shell "echo \"-----installing app"
adb uninstall com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores
adb install /home/patrick/opportunistic_tasks_android/Experiments_of_task_on_CPUs/interactive_benchmarking_app_to_test_big_cores/app/debug/app-debug.apk
adb shell "su -c pm grant com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores android.permission.DUMP"
adb shell "su -c pm grant com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores android.permission.PACKAGE_USAGE_STATS"
sleep 3
adb shell " echo \"-----starting the app\";
sleep 5;
am start -n com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores.MainActivity"
sleep 1
APP_PID=$(adb shell "ps | grep com.opportunistask.scheduling.interactive_benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- app_pid = $APP_PID "
#adb shell "am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
#APP_PID=$(adb shell "ps | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }') ; echo "----- app_pid = $APP_PID "
adb shell "am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
sleep 3
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo $APP_PID
#!/bin/bash
adb root
adb shell "echo -----\"making best_effort_fl_removed task group directory\"
sleep 1
cd /sys/fs/cgroup/cpu
mkdir best_effort_fl_removed"
sleep 3
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo "----- removing task_pid = $APP_PID from best effort group "
adb shell "sleep 1
echo $APP_PID > /sys/fs/cgroup/cpu/best_effort_fl_removed/tasks
echo \"-----task with pid = $APP_PID , was removed from best effort group, \"
echo \"best_effort_fl file : \"
cat /sys/fs/cgroup/cpu/best_effort_fl/tasks
echo \"best_effort_fl_removed file : \"
cat /sys/fs/cgroup/cpu/best_effort_fl_removed/tasks "
adb shell "am start -n com.opportunistask.scheduling.benchmarking_app_to_test_big_cores/com.opportunistask.scheduling.benchmarking_app_to_test_big_cores.MainActivity"
sleep 3
APP_PID=$(adb shell "ps -A | grep com.opportunistask.scheduling.benchmarking_app_to_test_big_cores" | awk '{ print $2 }')
echo $APP_PID
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment