1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

perf: do not force root on Android in stop()

perf instrument was forcing killall() to run as root on Android devices.
This constraint was preventing perf from being used on unrooted devices.
However, it appears that it is possible for killall() to succeed on at
least some devices as a regular user.

This commit removes the constraint. Since killall() will default to
running as root whenever possible, the instrument will still behave
correctly on rooted Android devices where root is required.
This commit is contained in:
Sergei Trofimov 2017-01-11 13:44:55 +00:00
parent 0c32e39ce0
commit 01c9c88e79

View File

@ -106,8 +106,7 @@ class PerfInstrument(Instrument):
self.device.kick_off(command) self.device.kick_off(command)
def stop(self, context): def stop(self, context):
as_root = self.device.platform == 'android' self.device.killall('sleep')
self.device.killall('sleep', as_root=as_root)
def update_result(self, context): def update_result(self, context):
for label in self.labels: for label in self.labels: