Home
last modified time | relevance | path

Searched full:pid (Results 1 – 25 of 141) sorted by relevance

123456

/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
Dexec.cpp28 if (pid_t pid = fork(); pid == 0) { in ExecNoWait() local
32 } else if (pid < 0) { in ExecNoWait()
35 return pid; in ExecNoWait()
41 auto pid = static_cast<pid_t>(process); in Wait() local
42 ASSERT(pid == process); in Wait()
45 pid_t resPid = PANDA_FAILURE_RETRY(waitpid(pid, &status, 0)); in Wait()
46 if (resPid != pid) { in Wait()
66 pid_t pid = res.Value(); in Exec() local
67 return Wait(pid, true); in Exec()
Dkill.cpp25 int Kill(uint64_t pid, int signal) in Kill() argument
27 return kill(pid, signal); in Kill()
30 int Close(uint64_t pid) in Close() argument
33 if (waitpid(pid, &status, WNOHANG) == 0) { in Close()
34 if (kill(pid, SIGKILL) == 0) { in Close()
35 waitpid(pid, &status, 0); in Close()
Dexec.h37 if (pid_t pid = fork(); pid == 0) { in ExecWithCallbackNoWait() local
42 } else if (pid < 0) { in ExecWithCallbackNoWait()
45 return pid; in ExecWithCallbackNoWait()
56 pid_t pid = res.Value(); in ExecWithCallback() local
59 pid_t resPid = PANDA_FAILURE_RETRY(waitpid(pid, &status, 0)); in ExecWithCallback()
60 if (resPid != pid) { in ExecWithCallback()
/arkcompiler/runtime_core/platforms/unix/libpandabase/
Dexec.cpp31 pid_t pid = fork(); in Exec() local
32 if (pid == 0) { in Exec()
38 if (pid < 0) { in Exec()
42 pid_t res_pid = PANDA_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
43 if (res_pid != pid) { in Exec()
/arkcompiler/jsvm/src/inspector/
Djsvm_host_port.h27 …ostPort(const std::string& hostName, int port, int pid = -1) : hostName(hostName), port(port), pid in hostName()
56 return pid; in GetPid()
72 int pid; variable
/arkcompiler/toolchain/test/autotest/testcases/toolchain/hotreload/
DTestHotReloadHarHsp01.py72 self.pid = -1
86 self.pid = self.common_utils.get_pid(self.config['bundle_name'])
87 assert self.pid != 0, f'Failed to get pid of {self.config["bundle_name"]}'
115 pid = self.common_utils.get_pid(self.config['bundle_name'])
116 assert pid == self.pid, f'App is no longer running with pid: {pid}'
DTestHotReloadClass01.py70 self.pid = -1
87 self.pid = self.common_utils.get_pid(self.config['bundle_name'])
88 assert self.pid != 0, f'Failed to get pid of {self.config["bundle_name"]}'
136 pid = self.common_utils.get_pid(self.config['bundle_name'])
137 assert pid == self.pid, f'App is no longer running with pid: {pid}'
DTestHotReloadPages02.py75 self.pid = -1
92 self.pid = self.common_utils.get_pid(self.config['bundle_name'])
93 assert self.pid != 0, f'Failed to get pid of {self.config["bundle_name"]}'
146 pid = self.common_utils.get_pid(self.config['bundle_name'])
147 assert pid == self.pid, self.driver.log_error(f'App is no longer running with pid: {pid}')
DTestHotReloadPages01.py90 self.pid = -1
107 self.pid = self.common_utils.get_pid(self.config['bundle_name'])
108 assert self.pid != 0, f'Failed to get pid of {self.config["bundle_name"]}'
147 pid = self.common_utils.get_pid(self.config['bundle_name'])
148 assert pid == self.pid, self.driver.log_error(f'App is no longer running with pid: {pid}')
/arkcompiler/toolchain/test/autotest/aw/
Dfport.py27 def fport_connect_server(self, port, pid, bundle_name): argument
29 cmd = f"fport tcp:{port} ark:{pid}@{bundle_name}"
39 def fport_debugger_server(self, port, pid, tid=0): argument
42 cmd = f"fport tcp:{port} ark:{pid}@Debugger"
44 cmd = f"fport tcp:{port} ark:{pid}@{tid}@Debugger"
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/
DProcess.cpp96 ANI_FATAL_IF_ERROR(env->Object_SetFieldByName_Double(child, "pid", result.Value())); in SpawnChildProcess()
113 ANI_FATAL_IF_ERROR(env->Object_GetFieldByName_Double(child, "pid", &pidToTerminate)); in SpawnChildProcess()
141 ani_double pid; in ReadFinalizer() local
142 ANI_FATAL_IF_ERROR(env->Object_GetFieldByName_Double(child, "pid", &pid)); in ReadFinalizer()
143 terminated = g_terminatedChildSet.count(pid) != 0U; in ReadFinalizer()
259 ani_double pid; in WaitChildProcess() local
260 ANI_FATAL_IF_ERROR(env->Object_GetFieldByName_Double(child, "pid", &pid)); in WaitChildProcess()
272 auto result = ark::os::exec::Wait(pid, false); in WaitChildProcess()
286 g_terminatedChildSet.erase(pid); in WaitChildProcess()
296 ani_double pid; in KillChildProcess() local
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/runner/
Drunner.rb106 pid = t[:pid]
115 "\nKilling pid:#{pid}"
117 Process.kill('-TERM', Process.getpgid(pid))
/arkcompiler/runtime_core/tests/cts-generator/runner/
Drunner.rb106 pid = t[:pid]
115 "\nKilling pid:#{pid}"
117 Process.kill('-TERM', Process.getpgid(pid))
/arkcompiler/toolchain/test/autotest/
DREADME.md134 pid = Application.launch_application(config['bundle_name'], config['hap_path'], start_mode='-D')
135 assert pid != 0, logging.error(f'Pid of {hap_name} is 0!')
136 config['pid'] = pid
140 Fport.fport_connect_server(config['connect_server_port'], config['pid'], config['bundle_name'])
195 taskpool.submit(websocket.main_task(taskpool, websocket, self.procedure, pid))
/arkcompiler/runtime_core/static_core/dprof/libstorage/dprof/
Dstorage.h33 …tatic std::unique_ptr<AppData> CreateByParams(const std::string &name, uint64_t hash, uint32_t pid,
51 return commonInfo_.pid; in GetPid()
68 uint32_t pid {};
92 std::string MakeAppPath(const std::string &name, uint64_t hash, uint32_t pid) const;
/arkcompiler/ets_runtime/
Dhisysevent.yaml19 PID: {type: INT32, desc: pid}
49 PID: {type: INT8, desc: pid}
89 PID: {type: INT32, desc: pid}
103 PID: {type: INT32, desc: pid}
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/
Dets_vm_postfork_aot_load_test.cpp73 pid_t pid = fork(); in TEST_F() local
74 ASSERT_NE(pid, -1); in TEST_F()
75 if (pid == 0) { in TEST_F()
80 waitpid(pid, &status, 0); in TEST_F()
/arkcompiler/runtime_core/static_core/dprof/converter/features/
Dhotness_counters.h39 uint32_t pid; member
88 out_ << " app: name=" << hcountersInfo.appName << " pid=" << hcountersInfo.pid in ShowText()
104 out_ << R"( "pid": ")" << hcountersInfo.pid << "\"," << std::endl; in ShowJson()
/arkcompiler/jsvm/src/platform/
Dplatform_ohos.cpp164 uint64_t pid = OS::GetPid(); in ReportKeyThread() local
166 { "pid", std::to_string(pid) }, in ReportKeyThread()
182 uint64_t pid = OS::GetPid(); in ReportKeyThread() local
184 { "pid", std::to_string(pid) }, in ReportKeyThread()
259 int pid = getprocpid(); in ProcessBundleName() local
260 std::string filePath = "/proc/" + std::to_string(pid) + "/cmdline"; in ProcessBundleName()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DProcessTest.ets80 let pid = parseInt(runChildAndGetOutput("cat /proc/$$/status | grep PPid | cut -f2"));
81 let cmd = "cat /proc/" + pid + "/status";
89 } else if (output[i].startsWith("Pid:")) {
90 val = parseInt(output[i].replace("Pid:", ""));
91 result.set("pid", val);
137 return parseInt(output[1]) == child.pid ? 0 : 1;
180 let actual = pro.getThreadPriority(StdProcess.pid()) + 20;
221 let pid = childProcess.pid;
224 while(!pro.kill(SIGKILL, pid));
230 return StdProcess.pid() == attributes.get("pid") ? 0 : 1;
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/
Dmaple_phase_manager.cpp44 void AnalysisDataManager::EraseAnalysisPhase(uint32 phaseKey, MaplePhaseID pid) in EraseAnalysisPhase() argument
46 auto it = analysisPhaseMemPool.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase()
47 auto itanother = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase()
49 auto resultanother = availableAnalysisPhases.erase(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase()
53 …auto result = analysisPhaseMemPool.erase(AnalysisMemKey(phaseKey, pid)); // erase to release memp… in EraseAnalysisPhase()
121 MaplePhase *AnalysisDataManager::GetVaildAnalysisPhase(uint32 phaseKey, MaplePhaseID pid) in GetVaildAnalysisPhase() argument
123 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in GetVaildAnalysisPhase()
126 … << MaplePhaseRegister::GetMaplePhaseRegister()->GetPhaseByID(pid)->PhaseName() in GetVaildAnalysisPhase()
135 bool AnalysisDataManager::IsAnalysisPhaseAvailable(uint32 phaseKey, MaplePhaseID pid) in IsAnalysisPhaseAvailable() argument
137 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in IsAnalysisPhaseAvailable()
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
Dkill.cpp21 int Kill([[maybe_unused]] uint64_t pid, [[maybe_unused]] int signal) in Kill() argument
26 int Close([[maybe_unused]] uint64_t pid) in Close() argument
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dkill.h24 PANDA_PUBLIC_API int Kill(uint64_t pid, int signal);
27 PANDA_PUBLIC_API int Close(uint64_t pid);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/17.packages/02.package_initializer/p3/packageP3/
Dinit3_2.ets28 let pid: Double = 3.14159
29 pi = pid.toFloat()
/arkcompiler/ets_frontend/arkguard/src/utils/
DPrinterTimeAndMemUtils.ts87 pid: number; // Process ID property
94 pid: number; // Process ID property
133 pid: process.pid,
158 …this.formatTimePerformanceData(eventName, lastEvent.data.pid, TID, lastEvent.data.start, timeDurat…
172 pid: number,
182 pid: pid,

123456