Lines Matching refs:tid
56 _get_task_permitted_caps(int pid, int tid, uint64_t *cap)
67 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid);
164 int tid;
169 tid = atoi(entry->d_name);
170 if (tid == 0) /* should not happen - be safe */
173 if (_get_task_permitted_caps(target_pid, tid, &tid_caps) < 0) {
175 D("Could not get permitted caps for thread %d\n", tid);
220 pc = (void *)ptrace(PTRACE_PEEKUSR, handle->tid, (void *)60 /* r15/pc */, NULL);
225 gEventMsgHandle.pid = ptrace(PTRACE_PEEKUSR, handle->tid, (void *)0 /* r0 */, NULL);
226 gEventMsgHandle.tid = gEventMsgHandle.pid;
258 info->ti_tid = handle->tid;
259 info->ti_lid = handle->tid; // Our pthreads uses kernel ids for tids
260 info->ti_state = TD_THR_SLEEP; /* XXX this needs to be read from /proc/<pid>/task/<tid>.
318 handle.tid = atoi(entry->d_name);