Lines Matching defs:pid

118 void CollectOpenFiles(OpenFilesList &list, pid_t pid)
120 std::string fdDirName = "/proc/" + std::to_string(pid) + "/fd";
221 DFXLOGW("procecdump get real pid is %{public}d vm pid is %{public}d", realPid, vmPid);
304 DFXLOGE("Dump process failed, please check permission and whether pid is valid.");
313 DFXLOGI("start block crash process pid %{public}d nspid %{public}d", request->pid, request->nsPid);
335 resFd_ = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_JSON_WRITE_RES);
337 resFd_ = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_WRITE_RES);
345 request->processName, request->pid, request->tid);
380 ReportCrashException(request->processName, request->pid, request->uid,
388 std::string GetOpenFiles(int32_t pid, int nsPid, uint64_t fdTableAddr)
392 CollectOpenFiles(openFies, pid);
423 ReportCrashException(request->processName, request->pid, request->uid,
443 jitRequest.pid = request.pid;
534 // We need check pid is same with getppid().
535 // As in signal handler, current process is a child process, and target pid is our parent process.
536 // If pid namespace is enabled, both ppid and pid are equal one.
540 DFXLOGE("Target process(%{public}s:%{public}d) is not parent pid(%{public}ld), " \
548 request->siginfo.si_value.sival_int, request->pid, request->nsPid, request->tid, request->threadName);
586 DFXLOGE("VM process(%{public}d) should be parent pid.", request->vmNsPid);
587 ReportCrashException(request->processName, request->pid, request->uid,
610 process_->keyThread_ = DfxThread::Create(process_->processInfo_.pid, tid, nsTid);
613 ReportCrashException(request->processName, request->pid, request->uid,
640 ReportCrashException(request->processName, request->pid, request->uid,
642 DFXLOGE("Failed to read real pid!");
661 unwinder_ = std::make_shared<Unwinder>(process_->vmThread_->threadInfo_.pid);
663 unwinder_ = std::make_shared<Unwinder>(process_->processInfo_.pid, false);
671 ReportCrashException(request->processName, request->pid, request->uid,
683 if (request->pid <= 0) {
686 process_ = DfxProcess::Create(request->pid, request->nsPid);
746 int32_t ProcessDumper::CreateFileForCrash(int32_t pid, uint64_t time) const
755 std::string logPath = logFilePath + "/" + logFileType + "-" + std::to_string(pid) + "-" + std::to_string(time);
772 faultloggerdRequest.pid = request->pid;
781 fd = CreateFileForCrash(request->pid, request->timeStamp);
785 jsonFd_ = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_JSON_WRITE_BUF);
788 fd = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_WRITE_BUF);
789 resFd_ = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_WRITE_RES);
792 resFd_ = RequestPipeFd(request->pid, FaultLoggerPipeType::PIPE_FD_JSON_WRITE_RES);
801 ReportCrashException(request->processName, request->pid, request->uid,
851 stat->pid = request->pid;
894 "PID", request.pid,
914 process_->openFiles = GetOpenFiles(request.pid, request.nsPid, request.fdTableAddr);