Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 142) sorted by relevance

123456

/device/google/cuttlefish/common/libs/utils/
Dproc_file_utils.cpp57 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 …]
Dsubprocess.cpp201 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 …]
Dproc_file_utils.h45 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);
Dunix_sockets_test.cpp136 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()
Dsubprocess.h74 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
Dtee_logging.cpp169 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/
Dprocess_monitor.cc58 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/
Dpkvm_enabler.c32 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/
Dgralloc_priv.h184 int pid; member
232 pid(getpid()), in private_handle_t()
265 pid(getpid()), in private_handle_t()
299 pid(getpid()), in private_handle_t()
Dgralloc_module.cpp97 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/
Dmain.cc85 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/
DDfuProvider.java150 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()
DVersion.java23 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/
DContext.h78 if (pid != pid_ && tid != tid_) { in setPidTid()
82 pid = pid_; in setPidTid()
117 int pid = 0; member
/device/google/trout/tools/tracing/proto/
Dperfetto_trace.proto544 // /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/
Ddump_power.cpp658 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/
Dboot_state_machine.cc53 auto pid = fork(); in DaemonizeLauncher() local
54 if (pid) { in DaemonizeLauncher()
/device/linaro/dragonboard/sepolicy/
Dhal_memtrack.te1 # Memtrack reads proc/<pid>/cmdline to check if process is surfaceflinger.
/device/google/coral-kernel/sm8150/kernel-headers/linux/
Dmsm_audio_calibration.h290 int32_t pid; member
301 int32_t pid; member
/device/google/sunfish-kernel/sm7150/kernel-headers/linux/
Dmsm_audio_calibration.h290 int32_t pid; member
301 int32_t pid; member
/device/google/sunfish-kernel/sm7150/original-kernel-headers/linux/
Dmsm_audio_calibration.h410 int32_t pid; member
423 int32_t pid; member
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/
Dmsm_audio_calibration.h410 int32_t pid; member
423 int32_t pid; member
/device/google/redbull-kernel/sm7250/kernel-headers/linux/
Dmsm_audio_calibration.h292 int32_t pid; member
303 int32_t pid; member
/device/google/redbull-kernel/sm7250/original-kernel-headers/linux/
Dmsm_audio_calibration.h425 int32_t pid; member
438 int32_t pid; member
/device/google/felix-kernels/5.10/24Q3-12318583/original-kernel-headers/linux/
Dbigo.h42 __u32 pid; member

123456