Home | History | Annotate | Download | only in libcorkscrew

Lines Matching refs:tid

118 extern int tgkill(int tgid, int tid, int sig);
120 ssize_t unwind_backtrace_thread(pid_t tid, backtrace_frame_t* backtrace,
122 if (tid == gettid()) {
126 ALOGV("Unwinding thread %d from thread %d.", tid, gettid());
146 android_atomic_release_store(tid, &g_unwind_signal_state.tid_state);
149 int32_t tid_state = tid;
150 if (tgkill(getpid(), tid, SIGURG)) {
151 ALOGV("Failed to send SIGURG to thread %d.", tid);
157 if (tid_state != tid) {
161 ALOGV("Waiting for thread %d to start dumping the stack...", tid);
164 ALOGV("Timed out waiting for thread %d to start dumping the stack.", tid);
171 if (tid_state == tid) {
172 if (!android_atomic_acquire_cas(tid, STATE_CANCEL, &g_unwind_signal_state.tid_state)) {
173 ALOGV("Canceled thread %d stack dump.", tid);
185 ALOGV("Waiting for thread %d to finish dumping the stack...", tid);
205 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context,
208 return unwind_backtrace_ptrace_arch(tid, context, backtrace, ignore_depth, max_depth);