/system/core/libunwindstack/tests/ |
D | TestUtils.h | 29 TestScopedPidReaper(pid_t pid) : pid_(pid) {} in TestScopedPidReaper() 31 kill(pid_, SIGKILL); in ~TestScopedPidReaper() 32 waitpid(pid_, nullptr, 0); in ~TestScopedPidReaper() 36 pid_t pid_;
|
/system/core/libmeminfo/ |
D | procmeminfo.cpp | 114 : pid_(pid), get_wss_(get_wss), pgflags_(pgflags), pgflags_mask_(pgflags_mask) {} in ProcMemInfo() 118 LOG(ERROR) << "Failed to read maps for Process " << pid_; in Maps() 126 LOG(ERROR) << "Failed to read maps with page idle for Process " << pid_; in MapsWithPageIdle() 139 LOG(ERROR) << "Failed to read smaps for Process " << pid_; in Smaps() 153 LOG(WARNING) << "Trying to read process memory usage for " << pid_ in Usage() 159 LOG(ERROR) << "Failed to get memory usage for Process " << pid_; in Usage() 167 LOG(WARNING) << "Trying to read process working set for " << pid_ in Wss() 173 LOG(ERROR) << "Failed to get working set for Process " << pid_; in Wss() 180 std::string path = ::android::base::StringPrintf("/proc/%d/smaps", pid_); in ForEachVma() 186 "/proc/%d/%s", pid_, IsSmapsRollupSupported(pid_) ? "smaps_rollup" : "smaps"); in SmapsOrRollup() [all …]
|
/system/extras/simpleperf/ |
D | InplaceSamplerClient.cpp | 43 : attr_(attr), pid_(pid), tids_(tids), got_start_profiling_reply_msg_(false) { in InplaceSamplerClient() 56 std::string server_path = "inplace_sampler_server_" + std::to_string(pid_); in ConnectServer() 66 LOG(ERROR) << "Can't find inplace_sampler_server for process " << pid_; in ConnectServer() 90 LOG(ERROR) << "can't receive START_PROFILING_REPLY from process " << pid_; in StartPolling() 145 LOG(ERROR) << "receive reply from inplace_sampler_server of " << pid_ << ": " << p; in HandleMessage() 153 CommRecord r(attr_, pid_, tid, p, Id(), time); in HandleMessage() 166 MmapRecord r(attr_, false, pid_, pid_, start, len, pgoff, p, Id(), time); in HandleMessage() 182 SampleRecord r(attr_, Id(), ips[0], pid_, tid, time, 0, period, ips, {}, 0); in HandleMessage()
|
D | InplaceSamplerClient.h | 47 const pid_t pid_; variable
|
/system/core/libbacktrace/ |
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 | 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 | 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
|
D | UnwindMap.cpp | 72 return (unw_map_cursor_create(&map_cursor_, pid_) == 0) && GenerateMap(); in Build()
|
/system/core/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/core/init/ |
D | subcontext.h | 41 : path_prefix_(std::move(path_prefix)), context_(std::move(context)), pid_(0) { in Subcontext() 51 pid_t pid() const { return pid_; } in pid() 59 pid_t pid_; variable
|
D | subcontext.cpp | 266 pid_ = result; in Fork() 267 LOG(INFO) << "Forked subcontext for '" << context_ << "' with pid " << pid_; in Fork() 273 if (pid_) { in Restart() 274 kill(pid_, SIGKILL); in Restart() 276 pid_ = 0; in Restart() 313 ucred cr = {.pid = pid_, .uid = 0, .gid = 0}; in Execute()
|
D | service.cpp | 230 pid_(0), 270 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ in KillProcessGroup() 274 r = killProcessGroupOnce(uid_, pid_, signal); in KillProcessGroup() 276 r = killProcessGroup(uid_, pid_, signal); in KillProcessGroup() 359 pid_ = 0; in Reap() 880 LOG(INFO) << "SVC_EXEC service '" << name_ << "' pid " << pid_ << " (uid " << uid_ << " gid " in ExecStart() 1065 pid_ = 0; in Start() 1078 pid_ = pid; in Start() 1085 errno = -createProcessGroup(uid_, pid_, use_memcg); in Start() 1087 PLOG(ERROR) << "createProcessGroup(" << uid_ << ", " << pid_ << ") failed for service '" in Start() [all …]
|
/system/core/adb/daemon/ |
D | shell_service.cpp | 154 pid_t pid() const { return pid_; } in pid() 192 pid_t pid_ = -1; member in __anon50c78ba60111::Subprocess 287 pid_ = forkpty(&fd, pts_name, nullptr, nullptr); in ForkAndExec() 288 if (pid_ > 0) { in ForkAndExec() 304 pid_ = fork(); in ForkAndExec() 307 if (pid_ == -1) { in ForkAndExec() 312 if (pid_ == 0) { in ForkAndExec() 389 kill(pid_, SIGKILL); in ForkAndExec() 557 D("protocol FD died, sending SIGHUP to pid %d", pid_); in PassDataStreams() 558 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 | 72 pid_t pid_; member in android::gtest_extras::SystemTests 103 if ((pid_ = fork()) == 0) { in Exec() 119 ASSERT_NE(-1, pid_); in Exec() 136 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << raw_output_; in ExecAndCapture() 907 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, nullptr, 0))) << "Test output:\n" << output; in TEST_F() 1050 ASSERT_NE(-1, kill(pid_, SIGINT)); in TEST_F() 1068 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << output; in TEST_F() 1084 ASSERT_NE(-1, kill(pid_, SIGQUIT)); in TEST_F() 1101 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/libmeminfo/tools/ |
D | librank.cpp | 84 ProcessRecord(pid_t pid) : pid_(-1), cmdline_("") { in ProcessRecord() 97 pid_ = pid; in ProcessRecord() 103 bool valid() const { return pid_ != -1; } in valid() 106 pid_t pid() const { return pid_; } in pid() 114 pid_t pid_; member
|
D | procrank.cpp | 44 : pid_(-1), in ProcessRecord() 83 pid_ = pid; in ProcessRecord() 86 bool valid() const { return pid_ != -1; } in valid() 97 pid_t pid() const { return pid_; } in pid() 110 pid_t pid_; member
|
/system/core/libunwindstack/include/unwindstack/ |
D | Maps.h | 84 RemoteMaps(pid_t pid) : pid_(pid) {} in RemoteMaps() 90 pid_t pid_;
|
D | Memory.h | 114 MemoryRemote(pid_t pid) : pid_(pid), read_redirect_func_(0) {} in MemoryRemote() 119 pid_t pid() { return pid_; } in pid() 122 pid_t pid_;
|
D | Unwinder.h | 145 UnwinderFromPid(size_t max_frames, pid_t pid) : Unwinder(max_frames), pid_(pid) {} in UnwinderFromPid() 151 pid_t pid_;
|
/system/core/libbacktrace/include/backtrace/ |
D | Backtrace.h | 184 pid_t Pid() const { return pid_; } in Pid() 223 pid_t pid_; variable
|
/system/core/libmeminfo/include/meminfo/ |
D | procmeminfo.h | 94 pid_t pid_; variable
|
/system/core/libunwindstack/ |
D | Unwinder.cpp | 367 if (pid_ == getpid()) { in Init() 370 maps_ptr_.reset(new RemoteMaps(pid_)); in Init() 377 process_memory_ = Memory::CreateProcessMemoryCached(pid_); in Init()
|