/device/google/cuttlefish/common/libs/utils/ |
D | proc_file_utils.cpp | 57 static Result<ProcStatusUids> OwnerUids(const pid_t pid) { in OwnerUids() argument 60 std::string status_path = fmt::format("/proc/{}/status", pid); in OwnerUids() 90 static std::string PidDirPath(const pid_t pid) { in PidDirPath() argument 91 return fmt::format("{}/{}", kProcDir, pid); in PidDirPath() 155 int pid; in CollectPids() local 158 CF_EXPECT(android::base::ParseInt(subdir, &pid)); in CollectPids() 159 auto owner_uid_result = OwnerUids(pid); in CollectPids() 161 pids.push_back(pid); in CollectPids() 167 Result<std::vector<std::string>> GetCmdArgs(const pid_t pid) { in GetCmdArgs() argument 168 std::string cmdline_file_path = PidDirPath(pid) + "/cmdline"; in GetCmdArgs() [all …]
|
D | subprocess.cpp | 201 auto pid = pid_.load(); // Wait will set pid_ to -1 after waiting in Wait() local 202 auto wait_ret = waitpid(pid, &wstatus, 0); in Wait() 213 LOG(DEBUG) << "Subprocess " << pid in Wait() 219 LOG(ERROR) << "Subprocess " << pid << " was interrupted by a signal '" in Wait() 243 static Result<void> SendSignalImpl(const int signal, const pid_t pid, in SendSignalImpl() argument 245 if (pid == -1) { in SendSignalImpl() 251 pid); in SendSignalImpl() 254 ret_code = killpg(getpgid(pid), signal); in SendSignalImpl() 256 ret_code = kill(pid, signal); in SendSignalImpl() 274 auto pid = subprocess->pid(); in KillSubprocess() local [all …]
|
D | proc_file_utils.h | 45 Result<ProcInfo> ExtractProcInfo(const pid_t pid); 75 Result<uid_t> OwnerUid(const pid_t pid); 78 Result<std::vector<std::string>> GetCmdArgs(const pid_t pid); 82 Result<std::string> GetExecutablePath(const pid_t pid); 85 Result<std::unordered_map<std::string, std::string>> GetEnvs(const pid_t pid); 87 Result<pid_t> Ppid(const pid_t pid);
|
D | unix_sockets_test.cpp | 136 credentials_in.pid = getpid(); in TEST() 152 ASSERT_EQ(credentials_in.pid, credentials_out->pid); in TEST() 166 credentials_in.pid = getpid() + 1; in TEST() 195 ASSERT_EQ(getpid(), credentials_out->pid); in TEST()
|
D | subprocess.h | 74 Subprocess(pid_t pid, SubprocessStopper stopper = KillSubprocess) 75 : pid_(pid), started_(pid > 0), stopper_(stopper) {} in pid_() argument 90 pid_t pid() const { return pid_; } in pid() function
|
D | tee_logging.cpp | 169 std::string StderrOutputGenerator(const struct tm& now, int pid, uint64_t tid, in StderrOutputGenerator() argument 183 severity_char, timestamp, pid, tid, file, line); in StderrOutputGenerator() 186 timestamp, pid, tid); in StderrOutputGenerator()
|
/device/google/cuttlefish/host/libs/process_monitor/ |
D | process_monitor.cc | 58 void LogSubprocessExit(const std::string& name, pid_t pid, int wstatus) { in LogSubprocessExit() argument 61 LOG(INFO) << "Subprocess " << name << " (" << pid in LogSubprocessExit() 65 LOG(ERROR) << "Subprocess " << name << " (" << pid in LogSubprocessExit() 69 LOG(INFO) << "subprocess " << name << " (" << pid in LogSubprocessExit() 96 pid_t pid = wait(&wstatus); in MonitorLoop() local 98 CF_EXPECT(pid != -1, "Wait failed: " << strerror(error_num)); in MonitorLoop() 101 << pid; in MonitorLoop() 107 auto matches = [pid](const auto& it) { return it.proc->pid() == pid; }; in MonitorLoop() 111 LogSubprocessExit("(unknown)", pid, wstatus); in MonitorLoop() 113 LogSubprocessExit(it->cmd->GetShortName(), it->proc->pid(), wstatus); in MonitorLoop()
|
/device/google/gs101/pkvm/ |
D | pkvm_enabler.c | 32 pid_t pid; in main() local 36 pid = fork(); in main() 37 if (pid == -1) { in main() 42 if (pid == 0) { in main() 48 waitpid(pid, &wstatus, 0); in main()
|
/device/linaro/hikey/gralloc/ |
D | gralloc_priv.h | 184 int pid; member 232 pid(getpid()), in private_handle_t() 265 pid(getpid()), in private_handle_t() 299 pid(getpid()), in private_handle_t()
|
D | gralloc_module.cpp | 97 hnd->pid = getpid(); in gralloc_register_buffer() 257 else if (hnd->pid == getpid()) // never unmap buffers that were not registered in this process in gralloc_unregister_buffer() 275 …r buffer %p from process %d that was not created in current process: %d", hnd, hnd->pid, getpid()); in gralloc_unregister_buffer()
|
/device/google/cuttlefish/host/commands/stop/ |
D | main.cc | 85 int64_t pid; in GetCandidateProcessGroups() local 87 while(fscanf(cmd_out.get(), "%" PRId64, &pid) != EOF) { in GetCandidateProcessGroups() 88 pid_t pgid = getpgid(static_cast<pid_t>(pid)); in GetCandidateProcessGroups() 90 LOG(ERROR) << "Unable to get process group of " << pid << ": " in GetCandidateProcessGroups()
|
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/remote/ |
D | DfuProvider.java | 150 byte pid = (byte) (Integer.parseInt(parts[3], 16) & 0xff); in convertStrToVersion() 151 return new Version(major, minor, vid, pid); in convertStrToVersion() 280 if (!bypassProductIdCheck() && binVersion.pid() != version.pid()) { in getDfu()
|
D | Version.java | 23 super(ver.major(), ver.minor(), ver.vid(), ver.pid()); in OverrideVersion() 53 public int pid() { in pid() method in Version
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | Context.h | 78 if (pid != pid_ && tid != tid_) { in setPidTid() 82 pid = pid_; in setPidTid() 117 int pid = 0; member
|
/device/google/trout/tools/tracing/proto/ |
D | perfetto_trace.proto | 544 // /proc/pid/status and oom_score_adj every X ms. 551 // entry of /proc/pid/cmdline). 620 repeated uint64 pid = 4; field 774 repeated uint64 pid = 2; field 926 // Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a 997 // /proc/<pid>/cmdline (not the comm string), with both sides being 2048 optional int32 pid = 2; field 2170 optional int32 pid = 4; field 2195 optional int32 pid = 4; field 2223 optional int32 pid = 3; field [all …]
|
/device/google/zumapro/dumpstate/ |
D | dump_power.cpp | 658 int pid = fork(); in dumpMitigation() local 659 if (pid < 0) { in dumpMitigation() 662 } else if (pid == 0) { in dumpMitigation() 666 waitpid(pid, &status, 0); in dumpMitigation()
|
/device/google/cuttlefish/host/commands/run_cvd/ |
D | boot_state_machine.cc | 53 auto pid = fork(); in DaemonizeLauncher() local 54 if (pid) { in DaemonizeLauncher()
|
/device/linaro/dragonboard/sepolicy/ |
D | hal_memtrack.te | 1 # Memtrack reads proc/<pid>/cmdline to check if process is surfaceflinger.
|
/device/google/coral-kernel/sm8150/kernel-headers/linux/ |
D | msm_audio_calibration.h | 290 int32_t pid; member 301 int32_t pid; member
|
/device/google/sunfish-kernel/sm7150/kernel-headers/linux/ |
D | msm_audio_calibration.h | 290 int32_t pid; member 301 int32_t pid; member
|
/device/google/sunfish-kernel/sm7150/original-kernel-headers/linux/ |
D | msm_audio_calibration.h | 410 int32_t pid; member 423 int32_t pid; member
|
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/ |
D | msm_audio_calibration.h | 410 int32_t pid; member 423 int32_t pid; member
|
/device/google/redbull-kernel/sm7250/kernel-headers/linux/ |
D | msm_audio_calibration.h | 292 int32_t pid; member 303 int32_t pid; member
|
/device/google/redbull-kernel/sm7250/original-kernel-headers/linux/ |
D | msm_audio_calibration.h | 425 int32_t pid; member 438 int32_t pid; member
|
/device/google/felix-kernels/5.10/24Q3-12318583/original-kernel-headers/linux/ |
D | bigo.h | 42 __u32 pid; member
|