/system/unwinding/libunwindstack/tests/ |
D | RegsRemoteTest.cpp | 36 if ((pid_ = fork()) == 0) { in SetUp() 42 ASSERT_TRUE(pid_ != -1); in SetUp() 43 ASSERT_TRUE(Attach(pid_)); in SetUp() 47 if (pid_ == -1) { in TearDown() 50 EXPECT_TRUE(Detach(pid_)); in TearDown() 51 kill(pid_, SIGKILL); in TearDown() 52 waitpid(pid_, nullptr, 0); in TearDown() 55 pid_t pid_ = -1; member in unwindstack::RegsRemoteTest 59 std::unique_ptr<Regs> regs(Regs::RemoteGet(pid_)); in TEST_F() 75 ASSERT_EQ(ARCH_ARM, Regs::RemoteGetArch(pid_)); in TEST_F() [all …]
|
D | TestUtils.h | 28 TestScopedPidReaper(pid_t pid) : pid_(pid) {} in TestScopedPidReaper() 30 kill(pid_, SIGKILL); in ~TestScopedPidReaper() 31 waitpid(pid_, nullptr, 0); in ~TestScopedPidReaper() 35 pid_t pid_;
|
/system/unwinding/libunwindstack/utils/ |
D | ProcessTracer.cpp | 51 : pid_(pid), is_tracing_threads_(is_tracing_threads) { in ProcessTracer() 57 if (!android::procinfo::GetProcessTids(pid_, &tids_, &error_msg)) { in InitProcessTids() 64 if (tids_.erase(pid_) != 1) { in InitProcessTids() 79 if (kill(pid_, SIGSTOP) == kKillFailed) { in Stop() 80 fprintf(stderr, "Failed to send stop signal to pid %d: %s\n", pid_, strerror(errno)); in Stop() 90 if (kill(pid_, SIGCONT) == kKillFailed) { in Resume() 91 fprintf(stderr, "Failed to send continue signal to pid %d: %s\n", pid_, strerror(errno)); in Resume() 101 if (tid != pid_ && tids_.find(tid) == tids_.end()) { in Detach() 102 fprintf(stderr, "Tid %d does not belong to proc %d.\n", tid, pid_); in Detach() 122 if (tid != pid_ && tids_.find(tid) == tids_.end()) { in Attach() [all …]
|
D | ProcessTracer.h | 41 pid_t pid() const { return pid_; } in pid() 82 const pid_t pid_; variable
|
/system/unwinding/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() 47 if (pid_ == getpid()) { in Build() 51 std::unique_ptr<unwindstack::Regs> regs(unwindstack::Regs::RemoteGet(pid_)); in Build() 130 if (pid_ == getpid()) { in GetFunctionName() 134 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() 125 return android::procinfo::ReadProcessMaps(pid_, 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/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 | 144 : pid_(pid), get_wss_(get_wss), pgflags_(pgflags), pgflags_mask_(pgflags_mask) {} in ProcMemInfo() 148 LOG(ERROR) << "Failed to read maps for Process " << pid_; in Maps() 156 LOG(ERROR) << "Failed to read maps with page idle for Process " << pid_; in MapsWithPageIdle() 164 LOG(ERROR) << "Failed to read maps for Process " << pid_; in MapsWithoutUsageStats() 182 LOG(ERROR) << "Failed to read smaps for Process " << pid_; in Smaps() 196 LOG(WARNING) << "Trying to read process memory usage for " << pid_ in Usage() 202 LOG(ERROR) << "Failed to get memory usage for Process " << pid_; in Usage() 210 LOG(WARNING) << "Trying to read process working set for " << pid_ in Wss() 216 LOG(ERROR) << "Failed to get working set for Process " << pid_; in Wss() 224 ::android::base::StringPrintf("/proc/%d/%s", pid_, use_smaps ? "smaps" : "maps"); in ForEachVma() [all …]
|
/system/unwinding/libunwindstack/ |
D | MemoryRemote.h | 30 MemoryRemote(pid_t pid) : pid_(pid), read_redirect_func_(0) {} in MemoryRemote() 36 pid_t pid() { return pid_; } in pid() 39 pid_t pid_;
|
/system/logging/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 | 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 | 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 | LogReaderThread.cpp | 37 pid_(pid), in LogReaderThread() 114 if ((!pid_ || pid_ == pid) && (start_time_ == log_time::EPOCH || start_time_ <= realtime)) { in FilterFirstPass() 134 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
|
/system/core/init/ |
D | service.cpp | 144 pid_(0), 183 SetProperty(pid_property, std::to_string(pid_)); in NotifyStateChange() 195 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ in KillProcessGroup() 200 r = killProcessGroupOnce(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup() 202 r = killProcessGroup(proc_attr_.uid, pid_, signal, &max_processes); in KillProcessGroup() 217 LmkdUnregister(name_, pid_); in KillProcessGroup() 298 pid_ = 0; in Reap() 397 exec_service_pid_ = pid_; in ExecStart() 400 LOG(INFO) << "SVC_EXEC service '" << name_ << "' pid " << pid_ << " (uid " << proc_attr_.uid in ExecStart() 439 if (!setProcessGroupSwappiness(proc_attr_.uid, pid_, swappiness_)) { in ConfigureMemcg() [all …]
|
D | subcontext.h | 40 : path_prefixes_(std::move(path_prefixes)), context_(std::move(context)), pid_(0) { in path_prefixes_() 52 pid_t pid() const { return pid_; } in pid() 60 pid_t pid_; variable
|
/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/unwinding/libunwindstack/include/unwindstack/ |
D | AndroidUnwinder.h | 60 AndroidUnwinder(pid_t pid) : pid_(pid) {} in AndroidUnwinder() 62 : pid_(pid), process_memory_(memory) {} in AndroidUnwinder() 63 AndroidUnwinder(pid_t pid, ArchEnum arch) : pid_(pid), arch_(arch) {} in AndroidUnwinder() 65 : pid_(pid), initial_map_names_to_skip_(std::move(initial_map_names_to_skip)) {} in AndroidUnwinder() 68 : pid_(pid), in AndroidUnwinder() 97 pid_t pid_; variable
|
/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 | 165 pid_ = taskstats_stats.ac_pid; in TaskStatistics() 169 pid_ = taskstats_stats.ac_pid; in TaskStatistics() 206 if (pid_ == pid_statistics.pid_) { in AddPidToTgid() 209 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 …]
|