Searched refs:tid (Results 1 - 25 of 47) sorted by relevance

12

/system/core/include/cutils/
H A Ddebugger.h39 pid_t tid; member in struct:__anon39
47 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen);
52 int dump_backtrace_to_file(pid_t tid, int fd);
H A Dsched_policy.h37 /* Assign thread tid to the cgroup associated with the specified policy.
40 * On platforms which support gettid(), zero tid means current thread.
43 extern int set_sched_policy(int tid, SchedPolicy policy);
45 /* Return the policy associated with the cgroup of thread tid via policy pointer.
46 * On platforms which support gettid(), zero tid means current thread.
49 extern int get_sched_policy(int tid, SchedPolicy *policy);
/system/core/debuggerd/
H A Dmachine.h28 void dump_memory_and_code(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault);
29 void dump_registers(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault);
H A Dbacktrace.c65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached, argument
72 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
85 threadname ? threadname : "<unknown>", tid);
87 if (!attached && ptrace(PTRACE_ATTACH, tid, 0, 0) < 0) {
92 wait_for_stop(tid, total_sleep_time_usec);
95 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH);
110 if (!attached && ptrace(PTRACE_DETACH, tid, 0, 0) != 0) {
111 LOG("ptrace detach from %d failed: %s\n", tid, strerror(errno));
116 void dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed, argument
123 ptrace_context_t* context = load_ptrace_context(tid);
[all...]
H A Dbacktrace.h28 void dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed,
H A Dtombstone.h28 char* engrave_tombstone(pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address,
H A Ddebuggerd.c54 pid_t pid, tid; member in struct:__anon21
161 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) { argument
163 snprintf(path, sizeof(path), "/proc/%d/status", tid);
198 XLOG("reading tid\n");
207 LOG("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid);
228 out_request->tid = msg.tid;
235 /* Ensure that the tid reported by the crashing process is valid. */
238 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid);
240 LOG("tid
487 do_explicit_dump(pid_t tid, bool dump_backtrace) argument
522 pid_t tid = 0; local
[all...]
H A Dutility.c89 int wait_for_signal(pid_t tid, int* total_sleep_time_usec) { argument
92 pid_t n = waitpid(tid, &status, __WALL | WNOHANG);
108 LOG("timed out waiting for tid=%d to die\n", tid);
119 void wait_for_stop(pid_t tid, int* total_sleep_time_usec) { argument
121 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, tid, 0, &si)) < 0 && errno == ESRCH) {
123 LOG("timed out waiting for tid=%d to stop\n", tid);
H A Dutility.h63 int wait_for_signal(pid_t tid, int* total_sleep_time_usec);
64 void wait_for_stop(pid_t tid, int* total_sleep_time_usec);
H A Dtombstone.c178 static void dump_fault_addr(log_t* log, pid_t tid, int sig) argument
183 if(ptrace(PTRACE_GETSIGINFO, tid, 0, &si)){
196 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid, bool at_fault) { argument
202 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
224 _LOG(log, SCOPE_AT_FAULT, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid,
228 _LOG(log, 0, "pid: %d, tid: %d, name: %s\n",
229 pid, tid, threadname ? threadname : "UNKNOWN");
234 log_t* log, pid_t tid __attribute((unused)), bool at_fault,
250 static void dump_stack_segment(const ptrace_context_t* context, log_t* log, pid_t tid, argument
298 dump_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, const backtrace_frame_t* backtrace, size_t frames) argument
350 dump_backtrace_and_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault) argument
372 dump_nearby_maps(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault) argument
424 dump_thread(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, int* total_sleep_time_usec) argument
437 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument
627 dump_abort_message(log_t* log, pid_t tid, uintptr_t address) argument
665 dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address, bool dump_sibling_threads, int* total_sleep_time_usec) argument
810 engrave_tombstone(pid_t pid, pid_t tid, int signal, uintptr_t abort_msg_address, bool dump_sibling_threads, bool quiet, bool* detach_failed, int* total_sleep_time_usec) argument
[all...]
/system/core/libcutils/
H A Ddebugger.c23 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) { argument
31 msg.tid = tid;
56 int dump_backtrace_to_file(pid_t tid, int fd) { argument
64 msg.tid = tid;
H A Dsched_policy.c54 #define CAN_SET_SP_SYSTEM 0 // non-zero means to implement set_sched_policy(tid, SP_SYSTEM)
67 /* Add tid to the scheduling group defined by the policy */
68 static int add_tid_to_cgroup(int tid, SchedPolicy policy) argument
96 // specialized itoa -- works for tid > 0
101 while (tid > 0) {
102 *--ptr = '0' + (tid % 10);
103 tid = tid / 10;
161 static int getSchedulerGroup(int tid, char* buf, size_t bufLen) argument
168 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid);
222 get_sched_policy(int tid, SchedPolicy *policy) argument
261 set_sched_policy(int tid, SchedPolicy policy) argument
334 set_sched_policy(int tid, SchedPolicy policy) argument
339 get_sched_policy(int tid, SchedPolicy *policy) argument
[all...]
/system/core/toolbox/
H A Dschedtop.c19 int tid; member in struct:thread_info
94 static void add_thread(int pid, int tid, struct thread_info *proc_info) argument
100 if(tid == 0)
105 info->tid = tid;
107 if(tid)
108 sprintf(line, "/proc/%d/task/%d/schedstat", pid, tid);
122 if (!tid) {
130 if (tid)
131 sprintf(line, "/proc/%d/task/%d/stat", pid, tid);
165 int tid = atoi(de->d_name); local
177 int tid = last_threads.data[i].tid; local
232 int tid = last_processes.data[i].tid; local
[all...]
/system/extras/tests/bionic/libc/other/
H A Dtest_timer_create2.c51 timer_t tid; local
59 if (timer_create (CLOCK_REALTIME, &se, &tid) < 0)
64 printf("timer_create successfully = %d.\n", (int)tid);
69 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
H A Dtest_timer_create3.c35 static timer_t tid; variable
60 timer_settime(tid, TIMER_ABSTIME, &ts, NULL);
76 if (timer_create (CLOCK_REALTIME, &se, &tid) < 0)
86 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
H A Dtest_timer_create.c51 timer_t tid; local
60 if (timer_create (CLOCK_REALTIME, &se, &tid) < 0)
70 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
/system/core/debuggerd/arm/
H A Dmachine.c45 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, int scopeFlags) { argument
82 long data = ptrace(PTRACE_PEEKTEXT, tid, (void*)p, NULL);
114 log_t* log, pid_t tid, bool at_fault) { variable
116 if(ptrace(PTRACE_GETREGS, tid, 0, &regs)) {
138 dump_memory(log, tid, addr, scopeFlags | SCOPE_SENSITIVE);
144 dump_memory(log, tid, (uintptr_t)regs.ARM_pc, scopeFlags);
148 dump_memory(log, tid, (uintptr_t)regs.ARM_lr, scopeFlags);
153 log_t* log, pid_t tid, bool at_fault) variable
158 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
177 if(ptrace(PTRACE_GETVFPREGS, tid,
[all...]
/system/core/libcorkscrew/
H A Dbacktrace.c43 extern int tgkill(int tgid, int tid, int sig);
65 static int tgkill(int tgid, int tid, int sig) { argument
66 return syscall(__NR_tgkill, tgid, tid, sig);
149 ssize_t unwind_backtrace_thread(pid_t tid, backtrace_frame_t* backtrace, argument
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, SIGUR
236 unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context, backtrace_frame_t* backtrace, size_t ignore_depth, size_t max_depth) argument
[all...]
H A Dptrace.c39 memory->tid = -1;
43 void init_memory_ptrace(memory_t* memory, pid_t tid) { argument
44 memory->tid = tid;
55 if (memory->tid < 0) {
71 *out_value = ptrace(PTRACE_PEEKTEXT, memory->tid, (void*)ptr, NULL);
73 ALOGV("try_get_word: invalid pointer 0x%08x reading from tid %d, "
74 "ptrace() errno=%d", ptr, memory->tid, errno);
82 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_t* out_value) { argument
84 init_memory_ptrace(&memory, tid);
[all...]
H A Dbacktrace-arch.h38 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context,
/system/core/include/log/
H A Dlogger.h24 int32_t tid; /* generating process's tid */ member in struct:logger_entry
39 int32_t tid; /* generating process's tid */ member in struct:logger_entry_v2
/system/core/debuggerd/x86/
H A Dmachine.c35 log_t* log, pid_t tid, bool at_fault) { variable
39 log_t* log, pid_t tid, bool at_fault) { variable
43 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
/system/core/include/corkscrew/
H A Dptrace.h41 pid_t tid; member in struct:__anon35
90 void init_memory_ptrace(memory_t* memory, pid_t tid);
103 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_t* out_value);
/system/core/libutils/
H A DProcessCallStack.cpp79 static String8 getThreadName(pid_t tid) { argument
85 snprintf(path, sizeof(path), PATH_THREAD_NAME, tid);
153 * Each tid is a directory inside of /proc/self/task
154 * - Read every file in directory => get every tid
158 pid_t tid = -1; local
159 sscanf(ep->d_name, "%d", &tid);
161 if (tid < 0) {
163 ALOGV("%s: Failed to read tid from %s/%s",
168 ssize_t idx = mThreadMap.add(tid, ThreadInfo());
181 int ignoreDepth = (selfPid == tid)
222 pid_t tid = mThreadMap.keyAt(i); local
[all...]
/system/extras/latencytop/
H A Dlatencytop.c45 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal);
71 int pid, tid; local
77 pid = tid = 0;
113 tid = atoi(argv[++i]);
121 if (tid && !pid) {
146 if (tid) {
147 e = read_thread_stats(e, erase, pid, tid, 1);
158 if (tid) {
159 printf("Latencies for thread %d in process %d:\n", tid, pid);
206 int tid; local
231 read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal) argument
[all...]

Completed in 1609 milliseconds

12