1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

fixes a few minor bugs.

This commit is contained in:
Vasilis Flouris 2015-06-01 18:56:13 +01:00 committed by devlab
parent ebe6202e22
commit 1fa93c04d2
2 changed files with 3 additions and 3 deletions

View File

@ -1018,7 +1018,7 @@ class LinuxDevice(BaseLinuxDevice):
result = []
for line in lines:
parts = line.split()
parts = re.split('\s+', line, maxsplit=8)
if parts:
result.append(PsEntry(*(parts[0:1] + map(int, parts[1:5]) + parts[5:])))

View File

@ -634,7 +634,7 @@ class EnergyModelInstrument(Instrument):
spec.id = '{}_{}_{}'.format(cluster, num_cpus, freq)
spec.label = 'freq_{}_{}'.format(cluster, spec.label)
spec.workload_parameters['taskset_mask'] = list_to_mask(self.get_cpus(cluster))
spec.workload_parameters['num_threads'] = len(num_cpus)
spec.workload_parameters['num_threads'] = num_cpus
# max_requests set to an arbitrary high values to make sure
# sysbench runs for full duriation even on highly
# performant cores.
@ -649,7 +649,7 @@ class EnergyModelInstrument(Instrument):
return new_specs
def disable_thermal_management(self):
if self.device.file_exists('/sys/class/thermal'):
if self.device.file_exists('/sys/class/thermal/thermal_zone0'):
tzone_paths = self.device.execute('ls /sys/class/thermal/thermal_zone*')
for tzpath in tzone_paths.strip().split():
mode_file = '{}/mode'.format(tzpath)