Home | History | Annotate | Download | only in libcorkscrew

Lines Matching refs:tid

43 extern int tgkill(int tgid, int tid, int sig);
65 static int tgkill(int tgid, int tid, int sig) {
66 return syscall(__NR_tgkill, tgid, tid, sig);
149 ssize_t unwind_backtrace_thread(pid_t tid, backtrace_frame_t* backtrace,
151 if (tid == gettid()) {
155 ALOGV("Unwinding thread %d from thread %d.", tid, gettid());
158 // mach_port_t or the pthread_t rather than the tid.
177 android_atomic_release_store(tid, &g_unwind_signal_state.tid_state);
180 int32_t tid_state = tid;
181 if (tgkill(getpid(), tid, SIGURG)) {
182 ALOGV("Failed to send SIGURG to thread %d.", tid);
188 if (tid_state != tid) {
192 ALOGV("Waiting for thread %d to start dumping the stack...", tid);
195 ALOGV("Timed out waiting for thread %d to start dumping the stack.", tid);
202 if (tid_state == tid) {
203 if (!android_atomic_acquire_cas(tid, STATE_CANCEL, &g_unwind_signal_state.tid_state)) {
204 ALOGV("Canceled thread %d stack dump.", tid);
216 ALOGV("Waiting for thread %d to finish dumping the stack...", tid);
236 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context,
239 return unwind_backtrace_ptrace_arch(tid, context, backtrace, ignore_depth, max_depth);