Lines Matching full:pid_t
53 static char *pid_to_str(char *buf, size_t len, pid_t pid) {
74 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator);
79 bool ReleaseThread(pid_t tid);
81 void InjectTestFunc(std::function<void(pid_t)>&& f) { inject_test_func_ = f; }
83 int CaptureThread(pid_t tid);
84 bool ReleaseThread(pid_t tid, unsigned int signal);
85 int PtraceAttach(pid_t tid);
86 void PtraceDetach(pid_t tid, unsigned int signal);
87 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info);
89 allocator::map<pid_t, unsigned int> captured_threads_;
91 pid_t pid_;
92 std::function<void(pid_t)> inject_test_func_;
95 ThreadCaptureImpl::ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator) :
136 pid_t tid = atoi(dirent->d_name);
177 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigned int signal) {
187 int ThreadCaptureImpl::PtraceAttach(pid_t tid) {
212 bool ThreadCaptureImpl::PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info) {
253 int ThreadCaptureImpl::CaptureThread(pid_t tid) {
301 bool ThreadCaptureImpl::ReleaseThread(pid_t tid) {
309 bool ThreadCaptureImpl::ReleaseThread(pid_t tid, unsigned int signal) {
340 ThreadCapture::ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator) {
359 bool ThreadCapture::ReleaseThread(pid_t tid) {
367 void ThreadCapture::InjectTestFunc(std::function<void(pid_t)>&& f) {
368 impl_->InjectTestFunc(std::forward<std::function<void(pid_t)>>(f));