| /arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/ |
| D | exec.cpp | 28 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()
|
| 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()
|
| D | exec.h | 37 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/toolchain/test/autotest/scenario_test/ |
| D | conftest.py | 43 pid = Application.launch_application(config['bundle_name'], config['hap_path'], start_mode='-D') 44 assert pid != 0, logging.error(f'Pid of {hap_name} is 0!') 45 config['pid'] = pid 48 Fport.fport_connect_server(config['connect_server_port'], config['pid'], config['bundle_name'])
|
| /arkcompiler/runtime_core/platforms/unix/libpandabase/ |
| 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/toolchain/test/autotest/aw/ |
| D | fport.py | 26 def fport_connect_server(cls, port, pid, bundle_name): argument 27 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{bundle_name}'] 34 def fport_debugger_server(cls, port, pid, tid=0): argument 36 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@Debugger'] 38 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{tid}@Debugger']
|
| D | application.py | 66 logging.info(f'pid of {bundle_name}: ' + line) 77 pid = cls.get_pid(bundle_name) 78 return int(pid)
|
| D | websocket.py | 93 async def main_task(self, taskpool, websocket, procedure, pid): argument 103 taskpool, pid)) 118 async def _receiver_of_connect_server(self, client, receive_queue, taskpool, pid): argument 134 Fport.fport_debugger_server(self.debugger_server_port, pid, instance_id)
|
| /arkcompiler/ets_runtime/ |
| D | hisysevent.yaml | 19 PID: {type: INT32, desc: pid} 48 PID: {type: INT32, desc: pid} 62 PID: {type: INT32, desc: pid}
|
| /arkcompiler/toolchain/test/autotest/ |
| D | README.md | 134 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/tests/cts-generator/runner/ |
| 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/ |
| D | runner.rb | 106 pid = t[:pid] 115 "\nKilling pid:#{pid}" 117 Process.kill('-TERM', Process.getpgid(pid))
|
| /arkcompiler/runtime_core/static_core/dprof/libstorage/dprof/ |
| D | storage.h | 33 …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/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ProcessTest.sts | 79 let pid = parseInt(runChildAndGetOutput("cat /proc/$$/status | grep PPid | cut -f2")); 80 let cmd = "cat /proc/" + pid + "/status"; 88 } else if (output[i].startsWith("Pid:")) { 89 val = parseInt(output[i].replace("Pid:", "")); 90 result.set("pid", val); 136 return parseInt(output[1]) == child.pid ? 0 : 1; 177 let actual = ProcessManager.getThreadPriority(process.pid) + 20; 215 let pid = childProcess.pid; 217 while(!ProcessManager.kill(SIGKILL, pid)); 223 return process.pid == attributes.get("pid") ? 0 : 1; [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
| 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, intSignal) == 0) { in KillChildProcess() [all …]
|
| /arkcompiler/runtime_core/static_core/dprof/converter/features/ |
| 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/plugins/ets/stdlib/escompat/ |
| D | Process.sts | 62 this.pid = -1; 148 * Child process's pid as double value 150 readonly pid: number; 222 * Determine the priority for a given pid or tid 257 * Send a kill singnal to a process with a given pid 261 * @param pid pid of receiving process 266 static native kill(signal: number, pid: number): boolean; 323 * @returns pid as number 325 static get pid(): number {
|
| /arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
| D | js_stackinfo.cpp | 340 bool ReadUintptrFromAddr(int pid, uintptr_t addr, uintptr_t &value, bool needCheckRegion) in ReadUintptrFromAddr() argument 342 if (pid == getpid()) { in ReadUintptrFromAddr() 369 *retAddr = PtracePeektext(pid, addr); in ReadUintptrFromAddr() 1025 uintptr_t ArkGetFunction(int pid, uintptr_t currentPtr, uintptr_t frameType) in ArkGetFunction() argument 1059 if (!ReadUintptrFromAddr(pid, argcAddress, argcAddress, g_needCheck)) { in ArkGetFunction() 1102 if (!ReadUintptrFromAddr(pid, funcAddr, function, g_needCheck)) { in ArkGetFunction() 1108 bool ArkCheckIsJSFunctionBaseOrJSProxy(int pid, uintptr_t objAddr, bool &isJSFunctionBase) in ArkCheckIsJSFunctionBaseOrJSProxy() argument 1117 if (!ReadUintptrFromAddr(pid, hclassAddr, hclass, g_needCheck)) { in ArkCheckIsJSFunctionBaseOrJSProxy() 1123 if (!ReadUintptrFromAddr(pid, bitsAddr, bits, g_needCheck)) { in ArkCheckIsJSFunctionBaseOrJSProxy() 1135 uintptr_t ArkCheckAndGetMethod(int pid, uintptr_t value) in ArkCheckAndGetMethod() argument [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | kill.h | 24 PANDA_PUBLIC_API int Kill(uint64_t pid, int signal); 27 PANDA_PUBLIC_API int Close(uint64_t pid);
|
| /arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/ |
| 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/toolchain/websocket/test/ |
| D | websocket_test.cpp | 81 pid_t pid = fork(); variable 82 if (pid == 0) { 130 } else if (pid > 0) { 179 pid_t pid = fork(); variable 180 if (pid == 0) { 206 } else if (pid > 0) { 249 pid_t pid = fork(); variable 250 if (pid == 0) { 269 } else if (pid > 0) {
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/include/ |
| D | maple_phase_support.h | 61 …MaplePhaseInfo(const std::string &pName, MaplePhaseID pID, bool isAS, bool isCFGonly, bool canSkip) in MaplePhaseInfo() argument 62 … : phaseName(pName), phaseID(pID), isAnalysis(isAS), isCFGOnlyPass(isCFGonly), canSkip(canSkip) in MaplePhaseInfo() 169 bool FindIsPreserved(const MaplePhaseID pid) in FindIsPreserved() argument 171 return preserved.find(pid) != preserved.end(); in FindIsPreserved()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_phase/src/ |
| D | maple_phase_manager.cpp | 47 void AnalysisDataManager::EraseAnalysisPhase(uint32 phaseKey, MaplePhaseID pid) in EraseAnalysisPhase() argument 49 auto it = analysisPhaseMemPool.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 50 auto itanother = availableAnalysisPhases.find(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 52 auto resultanother = availableAnalysisPhases.erase(AnalysisMemKey(phaseKey, pid)); in EraseAnalysisPhase() 56 …auto result = analysisPhaseMemPool.erase(AnalysisMemKey(phaseKey, pid)); // erase to release memp… 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()
|
| /arkcompiler/runtime_core/static_core/dprof/libdprof/dprof/ |
| 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/runtime/mem/gc/gc-hung/ |
| D | gc_hung.cpp | 156 LOG(DEBUG, GC) << "GcHung InitInternal: pid=" << pid_ << " enabled_=" << enabled_; in InitInternal() 159 void GcHung::SendZerohungEvent(const PandaString &error, int pid, PandaString msg) in SendZerohungEvent() argument 166 if (pid > 0) { in SendZerohungEvent() 167 PandaString command = "P=" + ToPandaString(pid); in SendZerohungEvent() 199 LOG(DEBUG, GC) << "GcHung: gc frequency check: PID = " << pid_ in CheckFrequency() 222 oss << "GcHung: GC congestion PID:" << pid_ << " Freq:" << waterMark_ << "/" in CheckFrequency() 227 SendZerohungEvent("GC congestion", -1, oss.str()); // -1: invalid pid in CheckFrequency() 248 SendZerohungEvent("GC overtime", -1, oss.str()); // -1: invalid pid in CheckOvertime()
|