/system/core/libunwindstack/tests/ |
H A D | TestUtils.h | 29 TestScopedPidReaper(pid_t pid) : pid_(pid) {} 31 kill(pid_, SIGKILL); 32 waitpid(pid_, nullptr, 0); 36 pid_t pid_; member in class:unwindstack::TestScopedPidReaper
|
/system/core/libbacktrace/ |
H A D | ThreadEntry.h | 54 bool Match(pid_t chk_pid, pid_t chk_tid) { return (chk_pid == pid_ && chk_tid == tid_); } 56 pid_t pid_; member in class:ThreadEntry
|
H A D | BacktraceMap.cpp | 42 BacktraceMap::BacktraceMap(pid_t pid) : pid_(pid) { 43 if (pid_ < 0) { 44 pid_ = getpid(); 121 snprintf(cmd, sizeof(cmd), "vmmap -w -resident -submap -allSplitLibs -interleaved %d", pid_); 125 snprintf(path, sizeof(path), "/proc/%d/maps", pid_);
|
H A D | UnwindStackMap.cpp | 35 if (pid_ == 0) { 36 pid_ = getpid(); 39 stack_maps_.reset(new unwindstack::RemoteMaps(pid_)); 43 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_);
|
H A D | backtrace_read_benchmarks.cpp | 59 ScopedPidReaper(pid_t pid) : pid_(pid) {} 61 kill(pid_, SIGKILL); 62 waitpid(pid_, nullptr, 0); 66 pid_t pid_; member in class:ScopedPidReaper
|
H A D | ThreadEntry.cpp | 34 : pid_(pid), tid_(tid), ref_count_(1), mutex_(PTHREAD_MUTEX_INITIALIZER),
|
H A D | UnwindMap.cpp | 72 return (unw_map_cursor_create(&map_cursor_, pid_) == 0) && GenerateMap();
|
H A D | Backtrace.cpp | 42 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
|
/system/core/init/ |
H A D | subcontext.h | 41 : path_prefix_(std::move(path_prefix)), context_(std::move(context)), pid_(0) { 51 pid_t pid() const { return pid_; } 59 pid_t pid_; member in class:android::init::Subcontext
|
H A D | subcontext.cpp | 260 pid_ = result; 261 LOG(INFO) << "Forked subcontext for '" << context_ << "' with pid " << pid_; local 267 if (pid_) { 268 kill(pid_, SIGKILL); 270 pid_ = 0; 307 ucred cr = {.pid = pid_, .uid = 0, .gid = 0};
|
H A D | service.cpp | 217 pid_(0), 262 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ local 266 r = killProcessGroupOnce(uid_, pid_, signal); 268 r = killProcessGroup(uid_, pid_, signal); 351 pid_ = 0; 778 LOG(INFO) << "SVC_EXEC pid " << pid_ << " (uid " << uid_ << " gid " << gid_ << "+" 931 pid_ = 0; 944 pid_ = pid; 949 errno = -createProcessGroup(uid_, pid_); 951 PLOG(ERROR) << "createProcessGroup(" << uid_ << ", " << pid_ << ") faile [all...] |
/system/extras/iotop/ |
H A D | taskstats.h | 34 pid_t pid() const { return pid_; } 46 void set_pid(pid_t pid) { pid_ = pid; } 52 pid_t pid_; member in class:TaskStatistics
|
H A D | taskstats.cpp | 172 pid_ = taskstats_stats.ac_pid; 176 pid_ = taskstats_stats.ac_pid; 211 if (pid_ == pid_statistics.pid_) { 214 gid_ = pid_statistics.pid_;
|
/system/extras/simpleperf/ |
H A D | InplaceSamplerClient.cpp | 43 : attr_(attr), pid_(pid), tids_(tids), got_start_profiling_reply_msg_(false) { 56 std::string server_path = "inplace_sampler_server_" + std::to_string(pid_); 66 LOG(ERROR) << "Can't find inplace_sampler_server for process " << pid_; 90 LOG(ERROR) << "can't receive START_PROFILING_REPLY from process " << pid_; 145 LOG(ERROR) << "receive reply from inplace_sampler_server of " << pid_ << ": " << p; 153 CommRecord r(attr_, pid_, tid, p, Id(), time); 166 MmapRecord r(attr_, false, pid_, pid_, start, len, pgoff, p, Id(), time); 182 SampleRecord r(attr_, Id(), ips[0], pid_, tid, time, 0, period, ips);
|
H A D | InplaceSamplerClient.h | 47 const pid_t pid_; member in class:InplaceSamplerClient
|
/system/core/libmemunreachable/ |
H A D | ThreadCapture.cpp | 94 pid_t pid_; member in class:android::ThreadCaptureImpl 99 : captured_threads_(allocator), allocator_(allocator), pid_(pid) {} 106 char* pid_str = pid_to_str(pid_buf, sizeof(pid_buf), pid_); 182 MEM_ALOGE("failed to detach from thread %d of process %d: %s", tid, pid_, strerror(errno)); 191 MEM_ALOGE("failed to attach to thread %d of process %d: %s", tid, pid_, strerror(errno)); 203 MEM_ALOGE("failed to interrupt thread %d of process %d: %s", tid, pid_, strerror(errno)); 221 MEM_ALOGE("ptrace getregset for thread %d of process %d failed: %s", tid, pid_, strerror(errno)); 259 MEM_ALOGE("failed to wait for pause of thread %d of process %d: %s", tid, pid_, strerror(errno)); 265 MEM_ALOGE("thread %d of process %d was not paused after waitpid, killed?", tid, pid_); 285 tid, pid_); [all...] |
H A D | MemUnreachable.cpp | 55 : pid_(pid), allocator_(allocator), heap_walker_(allocator_) {} 71 pid_t pid_; member in class:android::MemUnreachable 89 MEM_ALOGI("searching process %d for allocations", pid_); 133 MEM_ALOGI("sweeping process %d for unreachable memory", pid_);
|
/system/core/adb/ |
H A D | shell_service.cpp | 149 pid_t pid() const { return pid_; } 181 pid_t pid_ = -1; member in class:__anon1544::Subprocess 288 pid_ = forkpty(&fd, pts_name, nullptr, nullptr); 289 if (pid_ > 0) { 305 pid_ = fork(); 308 if (pid_ == -1) { 313 if (pid_ == 0) { 379 kill(pid_, SIGKILL); 388 kill(pid_, SIGKILL); 401 kill(pid_, SIGKIL [all...] |
/system/core/libunwindstack/include/unwindstack/ |
H A D | Maps.h | 69 RemoteMaps(pid_t pid) : pid_(pid) {} 75 pid_t pid_; member in class:unwindstack::RemoteMaps
|
H A D | Memory.h | 103 MemoryRemote(pid_t pid) : pid_(pid), read_redirect_func_(0) {} 108 pid_t pid() { return pid_; } 111 pid_t pid_; member in class:unwindstack::MemoryRemote
|
/system/core/include/backtrace/ |
H A D | Backtrace.h | 182 pid_t Pid() const { return pid_; } 221 pid_t pid_; member in class:Backtrace
|
H A D | BacktraceMap.h | 170 pid_t pid_; member in class:BacktraceMap
|
/system/core/libbacktrace/include/backtrace/ |
H A D | Backtrace.h | 182 pid_t Pid() const { return pid_; } 221 pid_t pid_; member in class:Backtrace
|
H A D | BacktraceMap.h | 170 pid_t pid_; member in class:BacktraceMap
|
/system/core/libunwindstack/ |
H A D | Memory.cpp | 272 return read_func(pid_, addr, dst, size); 279 size_t bytes = ProcessVmRead(pid_, addr, dst, size); 284 bytes = PtraceRead(pid_, addr, dst, size);
|