STOPSHIP: proc.uidcpupower reflector for experiments

Allow the concurrent_*_time to be enable and disabled
for performance experiments on the dogfood population.

This patch and the corresponding kernel patches should
be removed before launch.

proc.uidcpupower=*  -> concurrent_*_time enabled
proc.uidcpupower=1  -> concurrent_*_time enabled

proc.uidcpupower=0  -> concurrent_*_time disabled

Test: Run "adb shell setprop proc.uidcpupower 0" and
      check that "adb shell cat /proc/uid_cpupower/enable"
      returns 0. Repeat the test with 1.

Change-Id: I818e110907b4d24d0d3c4b9ca92b6f2816ba3b1f
This commit is contained in:
Marissa Wall
2018-01-17 11:39:32 -08:00
parent a29b489370
commit 1437d38b52
2 changed files with 8 additions and 0 deletions

View File

@@ -768,6 +768,13 @@ on property:persist.radio.atfwd.start=true
on property:persist.radio.atfwd.start=false
stop atfwd
# b/68982314
on property:proc.uidcpupower=*
write /proc/uid_cpupower/enable 1
on property:proc.uidcpupower=0
write /proc/uid_cpupower/enable 0
# bugreport is triggered by holding down volume down, volume up and power
service bugreport /system/bin/dumpstate -d -p -B -z \
-o /data/user_de/0/com.android.shell/files/bugreports/bugreport

View File

@@ -16,6 +16,7 @@ allow vendor_init {
}:file { create getattr open read write setattr relabelfrom unlink };
allow vendor_init debugfs_clk:file w_file_perms;
allow vendor_init proc_uid_cpupower:file write;
dontaudit vendor_init kernel:system module_request;
get_prop(vendor_init, modem_diag_prop)