• Home
  • Raw
  • Download

Lines Matching refs:pid_t

55 static char* pid_to_str(char* buf, size_t len, pid_t pid) {  in pid_to_str()
76 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator);
81 bool ReleaseThread(pid_t tid);
83 void InjectTestFunc(std::function<void(pid_t)>&& f) { inject_test_func_ = f; } in InjectTestFunc()
86 int CaptureThread(pid_t tid);
87 bool ReleaseThread(pid_t tid, unsigned int signal);
88 int PtraceAttach(pid_t tid);
89 void PtraceDetach(pid_t tid, unsigned int signal);
90 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info);
92 allocator::map<pid_t, unsigned int> captured_threads_;
94 pid_t pid_;
95 std::function<void(pid_t)> inject_test_func_;
98 ThreadCaptureImpl::ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator) in ThreadCaptureImpl()
138 pid_t tid = atoi(dirent->d_name); in ListThreads()
179 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) { in PtraceDetach()
188 int ThreadCaptureImpl::PtraceAttach(pid_t tid) { in PtraceAttach()
211 bool ThreadCaptureImpl::PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info) { in PtraceThreadInfo()
251 int ThreadCaptureImpl::CaptureThread(pid_t tid) { in CaptureThread()
297 bool ThreadCaptureImpl::ReleaseThread(pid_t tid) { in ReleaseThread()
305 bool ThreadCaptureImpl::ReleaseThread(pid_t tid, unsigned int signal) { in ReleaseThread()
336 ThreadCapture::ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator) { in ThreadCapture()
355 bool ThreadCapture::ReleaseThread(pid_t tid) { in ReleaseThread()
363 void ThreadCapture::InjectTestFunc(std::function<void(pid_t)>&& f) { in InjectTestFunc()
364 impl_->InjectTestFunc(std::forward<std::function<void(pid_t)>>(f)); in InjectTestFunc()