/system/core/libunwindstack/tests/ |
D | TestUtils.h | 30 TestScopedPidReaper(pid_t pid) : pid_(pid) {} in TestScopedPidReaper() 32 kill(pid_, SIGKILL); in ~TestScopedPidReaper() 33 waitpid(pid_, nullptr, 0); in ~TestScopedPidReaper() 37 pid_t pid_;
|
/system/libbase/include/android-base/ |
D | process.h | 37 bool operator==(const PidIterator& other) const { return pid_ == other.pid_; } 39 long operator*() const { return pid_; } 50 pid_t pid_ = -1; variable
|
/system/memory/libmeminfo/ |
D | procmeminfo.cpp | 119 : pid_(pid), get_wss_(get_wss), pgflags_(pgflags), pgflags_mask_(pgflags_mask) {} in ProcMemInfo() 123 LOG(ERROR) << "Failed to read maps for Process " << pid_; in Maps() 131 LOG(ERROR) << "Failed to read maps with page idle for Process " << pid_; in MapsWithPageIdle() 139 LOG(ERROR) << "Failed to read maps for Process " << pid_; in MapsWithoutUsageStats() 157 LOG(ERROR) << "Failed to read smaps for Process " << pid_; in Smaps() 171 LOG(WARNING) << "Trying to read process memory usage for " << pid_ in Usage() 177 LOG(ERROR) << "Failed to get memory usage for Process " << pid_; in Usage() 185 LOG(WARNING) << "Trying to read process working set for " << pid_ in Wss() 191 LOG(ERROR) << "Failed to get working set for Process " << pid_; in Wss() 198 std::string path = ::android::base::StringPrintf("/proc/%d/smaps", pid_); in ForEachVma() [all …]
|
/system/core/libunwindstack/ |
D | MemoryRemote.h | 31 MemoryRemote(pid_t pid) : pid_(pid), read_redirect_func_(0) {} in MemoryRemote() 37 pid_t pid() { return pid_; } in pid() 40 pid_t pid_;
|
/system/core/logd/ |
D | PruneList.cpp | 28 (pid_ == PID_ALL || pid_ == element->pid()); in Matches() 33 if (pid_ != PID_ALL) { in Format() 34 return android::base::StringPrintf("%u/%u", uid_, pid_); in Format() 38 if (pid_ != PID_ALL) { in Format() 39 return android::base::StringPrintf("/%u", pid_); in Format()
|
D | PruneList.h | 31 Prune(uid_t uid, pid_t pid) : uid_(uid), pid_(pid) {} in Prune() 37 pid_t pid() const { return pid_; } in pid() 41 const pid_t pid_; variable
|
D | LogStatistics.h | 256 : EntryBaseDropped(element), pid_(element.pid) {} in UidEntry() 258 pid_t pid() const { return pid_; } in pid() 261 if (pid_ != element.pid) { in Add() 262 pid_ = -1; in Add() 271 pid_t pid_; 329 pid_(pid), in TidEntry() 334 pid_(element.pid), in TidEntry() 339 pid_(element.pid_), in TidEntry() 344 pid_t pid() const { return pid_; } in pid() 363 pid_ = incoming_pid; in Add() [all …]
|
D | LogBufferElement.cpp | 36 pid_(pid), in LogBufferElement() 49 pid_(elem.pid_), in LogBufferElement() 66 pid_(elem.pid_), in LogBufferElement() 195 if (!commName && (tid_ != pid_)) { in PopulateDroppedMessage() 196 commName = android::tidToName(pid_); in PopulateDroppedMessage() 199 commName = stats->PidToName(pid_); in PopulateDroppedMessage() 275 entry.pid = pid_; in FlushTo()
|
D | LogReaderThread.cpp | 36 pid_(pid), in LogReaderThread() 123 if ((!pid_ || pid_ == pid) && (start_time_ == log_time::EPOCH || start_time_ <= realtime)) { in FilterFirstPass() 145 if (pid_ && pid_ != pid) { in FilterSecondPass()
|
D | SerializedLogEntry.h | 39 pid_(pid), in SerializedLogEntry() 82 pid_t pid() const { return pid_; } in pid() 94 const uint32_t pid_; variable
|
D | LogBufferElement.h | 52 pid_t pid() const { return pid_; } in pid() 66 const uint32_t pid_; variable
|
/system/core/libbacktrace/ |
D | UnwindStackMap.cpp | 36 if (pid_ == 0) { in Build() 37 pid_ = getpid(); in Build() 40 stack_maps_.reset(new unwindstack::RemoteMaps(pid_)); in Build() 44 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_); in Build() 111 if (pid_ == getpid()) { in GetFunctionName() 115 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid_)); in GetFunctionName()
|
D | BacktraceMap.cpp | 43 BacktraceMap::BacktraceMap(pid_t pid) : pid_(pid) { in BacktraceMap() 44 if (pid_ < 0) { in BacktraceMap() 45 pid_ = getpid(); in BacktraceMap() 110 snprintf(cmd, sizeof(cmd), "vmmap -w -resident -submap -allSplitLibs -interleaved %d", pid_); in Build() 126 pid_, [&](uint64_t start, uint64_t end, uint16_t flags, uint64_t, ino_t, const char* name) { in Build()
|
D | ThreadEntry.h | 54 bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid_ && chk_tid == tid_); } in Match() 56 pid_t pid_; variable
|
D | backtrace_read_benchmarks.cpp | 59 ScopedPidReaper(pid_t pid) : pid_(pid) {} in ScopedPidReaper() 61 kill(pid_, SIGKILL); in ~ScopedPidReaper() 62 waitpid(pid_, nullptr, 0); in ~ScopedPidReaper() 66 pid_t pid_; member in ScopedPidReaper
|
/system/core/init/ |
D | service.cpp | 146 pid_(0), 184 SetProperty(pid_property, std::to_string(pid_)); in NotifyStateChange() 196 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ in KillProcessGroup() 201 r = killProcessGroupOnce(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup() 203 r = killProcessGroup(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup() 218 LmkdUnregister(name_, pid_); in KillProcessGroup() 292 pid_ = 0; in Reap() 386 LOG(INFO) << "SVC_EXEC service '" << name_ << "' pid " << pid_ << " (uid " << proc_attr_.uid in ExecStart() 544 pid_ = 0; in Start() 557 pid_ = pid; in Start() [all …]
|
D | subcontext.h | 40 : path_prefixes_(std::move(path_prefixes)), context_(std::move(context)), pid_(0) { in Subcontext() 50 pid_t pid() const { return pid_; } in pid() 58 pid_t pid_; variable
|
D | subcontext.cpp | 230 pid_ = result; in Fork() 231 LOG(INFO) << "Forked subcontext for '" << context_ << "' with pid " << pid_; in Fork() 237 if (pid_) { in Restart() 238 kill(pid_, SIGKILL); in Restart() 240 pid_ = 0; in Restart()
|
/system/memory/libmemunreachable/ |
D | ThreadCapture.cpp | 94 pid_t pid_; member in android::ThreadCaptureImpl 99 : captured_threads_(allocator), allocator_(allocator), pid_(pid) {} in ThreadCaptureImpl() 106 char* pid_str = pid_to_str(pid_buf, sizeof(pid_buf), pid_); in ListThreads() 182 MEM_ALOGE("failed to detach from thread %d of process %d: %s", tid, pid_, strerror(errno)); in PtraceDetach() 191 MEM_ALOGE("failed to attach to thread %d of process %d: %s", tid, pid_, strerror(errno)); in PtraceAttach() 203 MEM_ALOGE("failed to interrupt thread %d of process %d: %s", tid, pid_, strerror(errno)); in PtraceAttach() 221 … MEM_ALOGE("ptrace getregset for thread %d of process %d failed: %s", tid, pid_, strerror(errno)); in PtraceThreadInfo() 259 … MEM_ALOGE("failed to wait for pause of thread %d of process %d: %s", tid, pid_, strerror(errno)); in CaptureThread() 265 MEM_ALOGE("thread %d of process %d was not paused after waitpid, killed?", tid, pid_); in CaptureThread() 285 tid, pid_); in CaptureThread()
|
/system/libbase/ |
D | process.cpp | 31 pid_ = pid; in Increment() 35 pid_ = -1; in Increment()
|
/system/core/adb/daemon/ |
D | shell_service.cpp | 168 pid_t pid() const { return pid_; } in pid() 205 pid_t pid_ = -1; member in __anon9d4e575d0111::Subprocess 311 pid_ = fork(); in ForkAndExec() 313 if (pid_ > 0) { in ForkAndExec() 329 pid_ = fork(); in ForkAndExec() 332 if (pid_ == -1) { in ForkAndExec() 337 if (pid_ == 0) { in ForkAndExec() 415 kill(pid_, SIGKILL); in ForkAndExec() 583 D("protocol FD died, sending SIGHUP to pid %d", pid_); in PassDataStreams() 584 if (pid_ != -1) { in PassDataStreams() [all …]
|
/system/extras/iotop/ |
D | taskstats.h | 34 pid_t pid() const { return pid_; } in pid() 49 void set_pid(pid_t pid) { pid_ = pid; } in set_pid() 55 pid_t pid_; variable
|
D | taskstats.cpp | 172 pid_ = taskstats_stats.ac_pid; in TaskStatistics() 176 pid_ = taskstats_stats.ac_pid; in TaskStatistics() 214 if (pid_ == pid_statistics.pid_) { in AddPidToTgid() 217 gid_ = pid_statistics.pid_; in AddPidToTgid()
|
/system/testing/gtest_extras/tests/ |
D | SystemTests.cpp | 89 pid_t pid_; member in android::gtest_extras::SystemTests 176 if ((pid_ = fork()) == 0) { in Exec() 192 ASSERT_NE(-1, pid_); in Exec() 209 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << raw_output_; in ExecAndCapture() 903 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, nullptr, 0))) << "Test output:\n" << output; in TEST_F() 1047 ASSERT_NE(-1, kill(pid_, SIGINT)); in TEST_F() 1065 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << output; in TEST_F() 1081 ASSERT_NE(-1, kill(pid_, SIGQUIT)); in TEST_F() 1098 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << raw_output_; in TEST_F() 1126 ASSERT_NE(-1, kill(pid_, SIGQUIT)); in TEST_F() [all …]
|
/system/core/adb/ |
D | sysdeps.h | 681 constexpr explicit Process(pid_t pid) : pid_(pid) {} in Process() 682 constexpr Process(Process&& other) : pid_(std::exchange(other.pid_, -1)) {} in Process() 684 constexpr explicit operator bool() const { return pid_ >= 0; } 689 ::waitpid(pid_, &status, 0); in wait() 690 pid_ = -1; in wait() 695 ::kill(pid_, SIGTERM); in kill() 702 pid_t pid_; variable
|