Home
last modified time | relevance | path

Searched refs:pid_ (Results 1 – 25 of 45) sorted by relevance

12

/system/unwinding/libunwindstack/tests/
DForkTest.h44 if ((pid_ = fork()) == 0) { in Fork()
48 ASSERT_NE(-1, pid_); in Fork()
49 if (Attach(pid_)) { in Fork()
52 kill(pid_, SIGKILL); in Fork()
53 waitpid(pid_, nullptr, 0); in Fork()
54 pid_ = -1; in Fork()
63 if (WaitForPidStateAfterAttach(pid_, state_check_func)) { in ForkAndWaitForPidState()
66 kill(pid_, SIGKILL); in ForkAndWaitForPidState()
67 waitpid(pid_, nullptr, 0); in ForkAndWaitForPidState()
68 pid_ = -1; in ForkAndWaitForPidState()
[all …]
DRegsRemoteTest.cpp40 std::unique_ptr<Regs> regs(Regs::RemoteGet(pid_)); in TEST_F()
66 ASSERT_EQ(ARCH_ARM, Regs::RemoteGetArch(pid_)); in TEST_F()
68 ASSERT_EQ(ARCH_ARM64, Regs::RemoteGetArch(pid_)); in TEST_F()
70 ASSERT_EQ(ARCH_X86, Regs::RemoteGetArch(pid_)); in TEST_F()
72 ASSERT_EQ(ARCH_X86_64, Regs::RemoteGetArch(pid_)); in TEST_F()
74 ASSERT_EQ(ARCH_RISCV64, Regs::RemoteGetArch(pid_)); in TEST_F()
76 ASSERT_EQ(ARCH_NONE, Regs::RemoteGetArch(pid_)); in TEST_F()
DTestUtils.h28 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_;
DMemoryRemoteTest.cpp50 MemoryRemote remote(pid_); in TEST_F()
68 MemoryRemote remote(pid_); in TEST_F()
90 MemoryRemote remote(pid_); in TEST_F()
121 MemoryRemote remote(pid_); in TEST_F()
142 MemoryRemote remote(pid_); in TEST_F()
152 MemoryRemote remote(pid_); in TEST_F()
171 MemoryRemote remote(pid_); in TEST_F()
197 MemoryRemote remote(pid_); in TEST_F()
225 MemoryRemote remote_ptrace(pid_); in TEST_F()
240 MemoryRemote remote_readv(pid_); in TEST_F()
/system/unwinding/libunwindstack/utils/
DProcessTracer.cpp51 : 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 …]
DProcessTracer.h40 pid_t pid() const { return pid_; } in pid()
82 const pid_t pid_; variable
/system/libbase/include/android-base/
Dprocess.h37 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/
Dprocmeminfo.cpp170 : pid_(pid), get_wss_(get_wss), pgflags_(pgflags), pgflags_mask_(pgflags_mask) {} in ProcMemInfo()
174 LOG(ERROR) << "Failed to read maps for Process " << pid_; in Maps()
182 LOG(ERROR) << "Failed to read maps with page idle for Process " << pid_; in MapsWithPageIdle()
190 LOG(ERROR) << "Failed to read maps for Process " << pid_; in MapsWithoutUsageStats()
213 pagemap_fd = ::android::base::unique_fd(GetPagemapFd(pid_)); in Smaps()
215 LOG(ERROR) << "Failed to open pagemap for pid " << pid_ << " during Smaps()"; in Smaps()
238 LOG(ERROR) << "Failed to read smaps for Process " << pid_; in Smaps()
252 LOG(WARNING) << "Trying to read process memory usage for " << pid_ in Usage()
258 LOG(ERROR) << "Failed to get memory usage for Process " << pid_; in Usage()
266 LOG(WARNING) << "Trying to read process working set for " << pid_ in Wss()
[all …]
/system/unwinding/libunwindstack/
DMemoryRemote.h30 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/
DPruneList.cpp28 (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()
DLogStatistics.h230 : EntryBase(element), pid_(element.pid) {} in UidEntry()
232 pid_t pid() const { return pid_; } in pid()
235 if (pid_ != element.pid) { in Add()
236 pid_ = -1; in Add()
245 pid_t pid_;
300 : EntryBase(), pid_(pid), uid_(android::pidToUid(tid)), name_(android::tidToName(tid)) {} in TidEntry()
303 pid_(element.pid), in TidEntry()
308 pid_(element.pid_), in TidEntry()
313 pid_t pid() const { return pid_; } in pid()
332 pid_ = incoming_pid; in Add()
[all …]
DLogBufferElement.cpp36 pid_(pid), in LogBufferElement()
48 pid_(elem.pid_), in LogBufferElement()
60 pid_(elem.pid_), in LogBufferElement()
150 entry.pid = pid_; in FlushTo()
DPruneList.h31 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
DLogReaderThread.cpp37 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()
DSerializedLogEntry.h39 pid_(pid), in SerializedLogEntry()
81 pid_t pid() const { return pid_; } in pid()
93 const uint32_t pid_; variable
DLogBufferElement.h45 pid_t pid() const { return pid_; } in pid()
55 const uint32_t pid_; variable
/system/memory/libmemunreachable/
DThreadCapture.cpp94 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/
Dservice.cpp154 pid_(0),
193 SetProperty(pid_property, std::to_string(pid_)); in NotifyStateChange()
206 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ in KillProcessGroup()
210 r = killProcessGroupOnce(uid(), pid_, signal); in KillProcessGroup()
212 r = killProcessGroup(uid(), pid_, signal); in KillProcessGroup()
219 LmkdUnregister(name_, pid_); in KillProcessGroup()
301 pid_ = 0; in Reap()
448 LOG(INFO) << "SVC_EXEC service '" << name_ << "' pid " << pid_ << " (uid " << uid() << " gid " in ExecStart()
489 if (!setProcessGroupSwappiness(uid(), pid_, swappiness_)) { in ConfigureMemcg()
495 if (!setProcessGroupSoftLimit(uid(), pid_, soft_limit_in_bytes_)) { in ConfigureMemcg()
[all …]
Dsubcontext.h42 pid_(0) { in path_prefixes_()
55 pid_t pid() const { return pid_; } in pid()
64 pid_t pid_; variable
/system/libbase/
Dprocess.cpp31 pid_ = pid; in Increment()
35 pid_ = -1; in Increment()
/system/unwinding/libunwindstack/include/unwindstack/
DAndroidUnwinder.h60 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/
Dtaskstats.h34 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
Dtaskstats.cpp165 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/memory/libmeminfo/libsmapinfo/
Dprocessrecord.cpp45 pid_(-1), in ProcessRecord()
102 pid_ = pid; in ProcessRecord()
106 return pid_ != -1; in valid()
/system/testing/gtest_extras/gtest_isolated/tests/
DSystemTests.cpp92 pid_t pid_; member in android::gtest_extras::SystemTests
179 if ((pid_ = fork()) == 0) { in Exec()
195 ASSERT_NE(-1, pid_); in Exec()
212 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << raw_output_; in ExecAndCapture()
914 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, nullptr, 0))) << "Test output:\n" << output; in TEST_F()
1059 ASSERT_NE(-1, kill(pid_, SIGINT)); in TEST_F()
1077 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << output; in TEST_F()
1093 ASSERT_NE(-1, kill(pid_, SIGQUIT)); in TEST_F()
1110 ASSERT_EQ(pid_, TEMP_FAILURE_RETRY(waitpid(pid_, &status, 0))) << "Test output:\n" << raw_output_; in TEST_F()
1138 ASSERT_NE(-1, kill(pid_, SIGQUIT)); in TEST_F()
[all …]

12