Lines Matching refs:dut

23 def run_command_on_dut(dut, command, ignore_status=False):  argument
34 result = dut.run(command, ignore_status=ignore_status)
42 'Error message: %s' % (dut.hostname, command, ret, err_msg))
52 def disable_aslr(dut): argument
64 run_command_on_dut(dut, disable_aslr)
67 def set_cpu_governor(dut, governor, ignore_status=False): argument
89 dut, set_gov_cmd % governor, ignore_status=ignore_status)
93 def disable_turbo(dut): argument
115 run_command_on_dut(dut, dis_turbo_boost_cmd)
118 def setup_cpu_usage(dut, cpu_usage): argument
130 _, arch, _ = run_command_on_dut(dut, 'uname -m')
133 setup_arm_cores(dut, cpu_usage)
136 def setup_arm_cores(dut, cpu_usage): argument
178 _, cpuinfo, _ = run_command_on_dut(dut, 'cat /proc/cpuinfo')
226 run_command_on_dut(dut, '; '.join([cmd_enable_cores,
240 def get_cpu_online(dut): argument
252 _, online_output_str, _ = run_command_on_dut(dut, get_cpu_online_cmd)
272 _, all_online_str, _ = run_command_on_dut(dut, get_all_online_cmd)
284 def setup_cpu_freq(dut, freq_percent, online_cores): argument
309 ret, all_avail_freq_str, _ = run_command_on_dut(dut,
318 _, avail_freq_str, _ = run_command_on_dut(dut, 'cat ' + avail_freq_path)
343 dut, 'echo %s | tee %s %s' %
347 def wait_cooldown(dut, cooldown_time, cooldown_temp): argument
376 dut,
393 def decrease_wait_time(dut): argument
401 ret = run_command_on_dut(dut, 'ls ' + FILE)
405 run_command_on_dut(dut, sed_command + FILE)
408 def stop_ui(dut): argument
415 run_command_on_dut(dut, 'stop ui')
418 def start_ui(dut): argument
425 run_command_on_dut(dut, 'start ui')
428 def kern_cmd_update_needed(dut, intel_pstate): argument
443 ret_code, _, _ = run_command_on_dut(dut, cmd, ignore_status=True)
450 dut, kern_cmdline_cmd, ignore_status=True)
463 def update_kern_cmd_intel_pstate(dut, intel_pstate): argument
481 dut, remove_verif_cmd % 2, ignore_status=True)
486 dut, remove_verif_cmd % 4, ignore_status=True)
494 run_command_on_dut(dut, 'reboot && exit')
521 dut, kern_part2_cmdline_cmd, ignore_status=True)
529 dut, kern_part4_cmdline_cmd, ignore_status=True)
536 run_command_on_dut(dut, 'reboot && exit')
545 dut, kern_cmdline_cmd, ignore_status=True)
557 def pause_ui(dut): argument
566 stop_ui(dut)
571 start_ui(dut)
574 def setup_device(dut, dut_config): argument
586 if intel_pstate and kern_cmd_update_needed(dut, intel_pstate):
587 update_kern_cmd_intel_pstate(dut, intel_pstate)
593 with pause_ui(dut):
597 disable_aslr(dut)
600 setup_cpu_usage(dut, dut_config.get('cpu_usage'))
601 cpu_online_status = get_cpu_online(dut)
610 ret = set_cpu_governor(dut, 'powersave', ignore_status=True)
614 ret = set_cpu_governor(dut, 'ondemand', ignore_status=True)
620 dut, dut_config['cooldown_time'], dut_config['cooldown_temp'])
627 set_cpu_governor(dut, governor)
633 disable_turbo(dut)
635 setup_cpu_freq(dut, dut_config['cpu_freq_pct'], online_cores)
637 decrease_wait_time(dut)