| /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/runtime_core/platforms/unix/libpandabase/ |
| D | exec.cpp | 31 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/ |
| D | jsvm_host_port.h | 27 …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/aw/ |
| D | fport.py | 29 def fport_connect_server(cls, port, pid, bundle_name): argument 31 cmd = ['hdc', 'fport', f'tcp:{port}', f'ark:{pid}@{bundle_name}'] 43 def fport_debugger_server(cls, port, pid, tid=0): argument 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/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/tests/cts-generator/runner/ |
| D | runner.rb | 106 pid = t[:pid] 115 "\nKilling pid:#{pid}" 117 Process.kill('-TERM', Process.getpgid(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/ets_runtime/ |
| D | hisysevent.yaml | 19 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/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/toolchain/test/autotest/scenario_test/ |
| D | conftest.py | 422 pid = Application.launch_application(config['bundle_name'], config['hap_dir']) 423 assert pid != 0, logging.error(f'Pid of {config["bundle_name"]} is 0!') 424 config['pid'] = pid 451 pid = Application.launch_application(config['bundle_name'], config['hap_path']) 452 assert pid != 0, logging.error(f'Pid of {config["bundle_name"]} is 0!') 453 config['pid'] = pid 458 …pid = Application.launch_application(config['bundle_name'], config['hap_path'], start_mode=config[… 459 assert pid != 0, logging.error(f'Pid of {config["hap_name"]} is 0!') 460 config['pid'] = pid 464 config['pid'],
|
| /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/compiler/codegen/maple/maple_phase/src/ |
| D | maple_phase_manager.cpp | 44 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/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) { 177 pid_t pid = fork(); variable 178 if (pid == 0) { 204 } else if (pid > 0) { 246 pid_t pid = fork(); variable 247 if (pid == 0) { 266 } 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/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/jsvm/src/ |
| D | jsvm_inspector_agent.h | 31 …virtual bool Start(const std::string& path, const std::string& hostName, int port, int pid = -1) =… 34 virtual bool Start(const std::string& path, int pid) = 0;
|
| /arkcompiler/jsvm/src/platform/ |
| D | platform_ohos.cpp | 123 uint64_t pid = OS::GetPid(); in ReportKeyThread() local 125 { "pid", std::to_string(pid) }, in ReportKeyThread() 180 int pid = getprocpid(); in ProcessBundleName() local 181 std::string filePath = "/proc/" + std::to_string(pid) + "/cmdline"; in ProcessBundleName()
|
| /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()
|