Searched refs:pid_ (Results 1 - 25 of 27) sorted by relevance

12

/system/core/libunwindstack/tests/
H A DTestUtils.h29 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 DThreadEntry.h54 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 DBacktraceMap.cpp42 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 DUnwindStackMap.cpp35 if (pid_ == 0) {
36 pid_ = getpid();
39 stack_maps_.reset(new unwindstack::RemoteMaps(pid_));
43 process_memory_ = unwindstack::Memory::CreateProcessMemory(pid_);
H A Dbacktrace_read_benchmarks.cpp59 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 DThreadEntry.cpp34 : pid_(pid), tid_(tid), ref_count_(1), mutex_(PTHREAD_MUTEX_INITIALIZER),
H A DUnwindMap.cpp72 return (unw_map_cursor_create(&map_cursor_, pid_) == 0) && GenerateMap();
H A DBacktrace.cpp42 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
/system/core/init/
H A Dsubcontext.h41 : 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 Dsubcontext.cpp260 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 Dservice.cpp217 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 Dtaskstats.h34 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 Dtaskstats.cpp172 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 DInplaceSamplerClient.cpp43 : 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 DInplaceSamplerClient.h47 const pid_t pid_; member in class:InplaceSamplerClient
/system/core/libmemunreachable/
H A DThreadCapture.cpp94 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 DMemUnreachable.cpp55 : 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 Dshell_service.cpp149 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 DMaps.h69 RemoteMaps(pid_t pid) : pid_(pid) {}
75 pid_t pid_; member in class:unwindstack::RemoteMaps
H A DMemory.h103 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 DBacktrace.h182 pid_t Pid() const { return pid_; }
221 pid_t pid_; member in class:Backtrace
H A DBacktraceMap.h170 pid_t pid_; member in class:BacktraceMap
/system/core/libbacktrace/include/backtrace/
H A DBacktrace.h182 pid_t Pid() const { return pid_; }
221 pid_t pid_; member in class:Backtrace
H A DBacktraceMap.h170 pid_t pid_; member in class:BacktraceMap
/system/core/libunwindstack/
H A DMemory.cpp272 return read_func(pid_, addr, dst, size);
279 size_t bytes = ProcessVmRead(pid_, addr, dst, size);
284 bytes = PtraceRead(pid_, addr, dst, size);

Completed in 318 milliseconds

12