/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
H A D | exec.cpp | 28 if (pid_t pid = fork(); pid == 0) { in ExecNoWait() 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, tru in Exec() [all...] |
H A D | kill.cpp | 23 int Kill(uint64_t pid, int signal) in Kill() argument 25 return kill(pid, signal); in Kill() 28 int Close(uint64_t pid) in Close() argument 31 if (waitpid(pid, &status, WNOHANG) == 0) { in Close() 32 if (kill(pid, SIGKILL) == 0) { in Close() 33 waitpid(pid, &status, 0); in Close()
|
H A D | exec.h | 37 if (pid_t pid = fork(); pid == 0) { in ExecWithCallbackNoWait() 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/ |
H A D | exec.cpp | 37 pid_t pid = fork(); in Exec() local 38 if (pid == 0) { in Exec() 44 if (pid < 0) { in Exec() 48 pid_t res_pid = PANDA_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec() 49 if (res_pid != pid) { in Exec()
|
/arkcompiler/runtime_core/static_core/dprof/libstorage/dprof/ |
H A D | storage.h | 33 static 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;
|
H A D | storage.cpp | 29 std::unique_ptr<AppData> AppData::CreateByParams(const std::string &name, uint64_t hash, uint32_t pid, in CreateByParams() argument 37 appData->commonInfo_.pid = pid; in CreateByParams() 214 std::string AppDataStorage::MakeAppPath(const std::string &name, uint64_t hash, uint32_t pid) const in MakeAppPath() 220 str << storageDir_ << "/" << name << "@" << pid << "@" << hash; in MakeAppPath()
|
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
H A D | kill.cpp | 21 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/ |
H A D | kill.h | 24 PANDA_PUBLIC_API int Kill(uint64_t pid, int signal); 27 PANDA_PUBLIC_API int Close(uint64_t pid);
|
/arkcompiler/toolchain/websocket/test/ |
H A D | websocket_test.cpp | 81 pid_t pid = fork(); in HWTEST_F() local 82 if (pid == 0) { in HWTEST_F() 130 } else if (pid > 0) { in HWTEST_F() 177 pid_t pid = fork(); in HWTEST_F() local 178 if (pid == 0) { in HWTEST_F() 204 } else if (pid > 0) { in HWTEST_F() 246 pid_t pid = fork(); in HWTEST_F() local 247 if (pid == 0) { in HWTEST_F() 266 } else if (pid > 0) { in HWTEST_F()
|
/arkcompiler/toolchain/test/autotest/scenario_test/ |
H A D | conftest.py | 137 pid = Application.launch_application(config['bundle_name'], config['hap_path'], start_mode=config['start_mode']) 138 assert pid != 0, logging.error(f'Pid of {config["hap_name"]} is 0!') 139 config['pid'] = pid 143 config['pid'],
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
H A D | js_stackinfo.cpp | 344 bool ReadUintptrFromAddr(int pid, uintptr_t addr, uintptr_t &value, bool needCheckRegion) in ReadUintptrFromAddr() argument 346 if (pid == getpid()) { in ReadUintptrFromAddr() 373 *retAddr = PtracePeektext(pid, addr); in ReadUintptrFromAddr() 1128 uintptr_t ArkGetFunction(int pid, uintptr_t currentPtr, uintptr_t frameType) 1162 if (!ReadUintptrFromAddr(pid, argcAddress, argcAddress, g_needCheck)) { 1205 if (!ReadUintptrFromAddr(pid, funcAddr, function, g_needCheck)) { 1211 bool ArkCheckIsJSFunctionBaseOrJSProxy(int pid, uintptr_t objAddr, bool &isJSFunctionBase) 1220 if (!ReadUintptrFromAddr(pid, hclassAddr, hclass, g_needCheck)) { 1226 if (!ReadUintptrFromAddr(pid, bitsAddr, bits, g_needCheck)) { 1238 uintptr_t ArkCheckAndGetMethod(int pid, uintptr_ [all...] |
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ |
H A D | profiling_data.h | 27 ProfilingData(std::string appName, uint64_t hash, uint32_t pid) in ProfilingData() argument 28 : appName_(std::move(appName)), hash_(hash), pid_(pid) in ProfilingData()
|
/arkcompiler/runtime_core/static_core/tests/gtest_launcher/ |
H A D | main.cpp | 46 pid_t pid = fork(); in HandleTimeout() local 47 if (pid != 0) { in HandleTimeout()
|
/arkcompiler/runtime_core/tests/gtest_launcher/ |
H A D | main.cpp | 43 pid_t pid = fork(); in HandleTimeout() local 44 if (pid != 0) { in HandleTimeout()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/ |
H A D | maple_phase_manager.cpp | 45 void AnalysisDataManager::EraseAnalysisPhase(uint32 phaseKey, MaplePhaseID pid) in EraseAnalysisPhase() argument 47 auto it = analysisPhaseMemPool.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 48 auto itanother = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 50 auto resultanother = availableAnalysisPhases.erase(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 54 auto result = analysisPhaseMemPool.erase(AnalysisMemKey(phaseKey, pid)); // erase to release mempool ? in EraseAnalysisPhase() 122 MaplePhase *AnalysisDataManager::GetVaildAnalysisPhase(uint32 phaseKey, MaplePhaseID pid) in GetVaildAnalysisPhase() argument 124 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in GetVaildAnalysisPhase() 127 << MaplePhaseRegister::GetMaplePhaseRegister()->GetPhaseByID(pid)->PhaseName() in GetVaildAnalysisPhase() 136 bool AnalysisDataManager::IsAnalysisPhaseAvailable(uint32 phaseKey, MaplePhaseID pid) in IsAnalysisPhaseAvailable() argument 138 auto it = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in IsAnalysisPhaseAvailable() [all...] |
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/connection/ohos_ws/ |
H A D | ohos_ws_server.cpp | 52 auto pid = os::thread::GetPid(); in Start() local 53 std::string name = std::to_string(pid) + std::string(G_ARK_TS_INSPECTOR_NAME); in Start()
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
H A D | Process.cpp | 82 env->SetDoubleField(child, env->Getp_field(childKlass, "pid", "D"), result.Value()); in SpawnChildProcess() 98 auto pidToTerminate = env->GetDoubleField(child, env->Getp_field(childKlass, "pid", "D")); in SpawnChildProcess() 122 auto pidId = env->Getp_field(childKlass, "pid", "D"); in ReadFinalizer() 222 auto pidId = env->Getp_field(childKlass, "pid", "D"); in WaitChildProcess() 223 auto pid = env->GetDoubleField(child, pidId); in WaitChildProcess() local 226 auto result = ark::os::exec::Wait(pid, false); in WaitChildProcess() 241 g_terminatedChildSet.erase(pid); in WaitChildProcess() 251 auto pidId = env->Getp_field(childKlass, "pid", "D"); in KillChildProcess() 252 auto pid = env->GetDoubleField(child, pidId); in KillChildProcess() local 253 if (ark::os::kill_process::Kill(pid, intSigna in KillChildProcess() 272 auto pid = env->GetDoubleField(child, pidId); CloseChildProcess() local 331 PManagerKill(EtsEnv *env, [[maybe_unused]] ets_object process, ets_double signal, ets_double pid) PManagerKill() argument [all...] |
/arkcompiler/runtime_core/static_core/dprof/converter/features/ |
H A D | hotness_counters.h | 39 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/runtime_core/static_core/tests/cts-generator/runner/ |
H A D | runner.rb | 106 pid = t[:pid] 115 "\nKilling pid:#{pid}" 117 Process.kill('-TERM', Process.getpgid(pid))
|
/arkcompiler/runtime_core/tests/cts-generator/runner/ |
H A D | runner.rb | 106 pid = t[:pid] 115 "\nKilling pid:#{pid}" 117 Process.kill('-TERM', Process.getpgid(pid))
|
/arkcompiler/toolchain/inspector/test/ |
H A D | connect_server_test.cpp | 138 pid_t pid = fork(); in HWTEST_F() local 139 if (pid == 0) { in HWTEST_F() 165 } else if (pid > 0) { in HWTEST_F()
|
/arkcompiler/toolchain/test/autotest/aw/ |
H A D | websocket.py | 93 async def main_task(self, taskpool, procedure, pid): 103 taskpool, pid)) 118 async def _receiver_of_connect_server(self, client, receive_queue, taskpool, pid): 134 port = Fport.fport_debugger_server(self.debugger_server_port, pid, instance_id)
|
H A D | fport.py | 29 def fport_connect_server(cls, port, pid, bundle_name): 31 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{bundle_name}'] 43 def fport_debugger_server(cls, port, pid, tid=0): 46 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@Debugger'] 48 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{tid}@Debugger']
|
/arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ipc/ |
H A D | ipc_message_protocol.h | 34 uint32_t pid {};
|
/arkcompiler/toolchain/tooling/test/client_utils/ |
H A D | test_util.cpp | 97 pid_t pid = fork(); in ForkSocketClient() local 98 if (pid < 0) { in ForkSocketClient() 101 } else if (pid == 0) { in ForkSocketClient() 102 LOG_DEBUGGER(INFO) << "fork son pid: " << getpid(); in ForkSocketClient()
|