Lines Matching full:pid
62 for child in psutil.Process(proc.pid).children(recursive=True):
64 os.kill(child.pid, signal.SIGTERM)
203 pid = int(pid_file.read())
207 os.kill(pid, signal.SIGKILL)
404 self.pid_fn = os.path.join(instance.build_dir, "renode.pid")
877 self.pid_fn = os.path.join(instance.build_dir, "qemu.pid")
891 def _get_cpu_time(pid): argument
898 proc = psutil.Process(pid)
950 pid = 0
953 pid = int(pid_file.read())
962 if pid and this_timeout > 0:
966 cpu_time = QEMUHandler._get_cpu_time(pid)
982 if pid == 0 and os.path.exists(pid_fn):
984 pid = int(pid_file.read())
1008 logger.debug(f"QEMU ({pid}): {line}")
1034 f"QEMU ({pid}) complete with {_status} ({_reason}) after {handler_time} seconds"
1039 if pid:
1042 if pid:
1043 os.kill(pid, signal.SIGTERM)
1052 # PID file will be created in the main sysbuild app's build dir
1053 self.pid_fn = os.path.join(sysbuild_build_dir, "qemu.pid")
1177 self.pid_fn = os.path.join(instance.build_dir, "qemu.pid")
1180 self.pid = 0
1192 def _get_cpu_time(pid): argument
1199 proc = psutil.Process(pid)
1212 def _stop_qemu_process(pid): argument
1213 if pid:
1215 if pid:
1216 os.kill(pid, signal.SIGTERM)
1233 # PID file will be created in the main sysbuild app's build dir
1234 self.pid_fn = os.path.join(sysbuild_build_dir, "qemu.pid")
1290 self.pid = 0
1298 if self.pid and this_timeout > 0:
1302 cpu_time = self._get_cpu_time(self.pid)
1318 if self.pid == 0 and os.path.exists(pid_fn):
1319 # pid file probably not contains pid yet, continue
1324 self.pid = int(pid_file.read())
1352 logger.debug(f"QEMU ({self.pid}): {line}")
1380 f"QEMU ({self.pid}) complete with {_status} ({_reason}) after {handler_time} seconds"
1384 self._stop_qemu_process(self.pid)
1426 logger.debug(f"return code from QEMU ({self.pid}): {self.returncode}")