/system/core/include/cutils/ |
H A D | debugger.h | 40 pid_t tid; member in struct:__anon301 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 D | sched_policy.h | 37 /* 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);
|
H A D | logger.h | 24 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/ |
H A D | machine.h | 28 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 D | backtrace.h | 28 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed,
|
H A D | utility.c | 53 int wait_for_signal(pid_t tid, int* total_sleep_time_usec) { argument 56 pid_t n = waitpid(tid, &status, __WALL | WNOHANG); 72 LOG("timed out waiting for tid=%d to die\n", tid); 83 void wait_for_stop(pid_t tid, int* total_sleep_time_usec) { argument 85 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, tid, 0, &si)) < 0 && errno == ESRCH) { 87 LOG("timed out waiting for tid=%d to stop\n", tid);
|
H A D | backtrace.c | 65 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); 84 _LOG(log, false, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); 86 if (!attached && ptrace(PTRACE_ATTACH, tid, 0, 0) < 0) { 91 wait_for_stop(tid, total_sleep_time_usec); 94 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH); 109 if (!attached && ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { 110 LOG("ptrace detach from %d failed: %s\n", tid, strerror(errno)); 115 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed, argument 121 ptrace_context_t* context = load_ptrace_context(tid); [all...] |
H A D | utility.h | 51 int wait_for_signal(pid_t tid, int* total_sleep_time_usec); 52 void wait_for_stop(pid_t tid, int* total_sleep_time_usec);
|
H A D | tombstone.h | 28 char* engrave_tombstone(pid_t pid, pid_t tid, int signal,
|
H A D | debuggerd.c | 53 pid_t pid, tid; member in struct:__anon288 159 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) { argument 161 snprintf(path, sizeof(path), "/proc/%d/status", tid); 196 XLOG("reading tid\n"); 205 LOG("timed out reading tid\n"); 221 out_request->tid = msg.tid; 227 /* Ensure that the tid reported by the crashing process is valid. */ 230 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid); 232 LOG("tid 475 do_explicit_dump(pid_t tid, bool dump_backtrace) argument 510 pid_t tid = 0; local [all...] |
H A D | tombstone.c | 149 static void dump_fault_addr(log_t* log, pid_t tid, int sig) argument 154 if(ptrace(PTRACE_GETSIGINFO, tid, 0, &si)){ 167 static void dump_thread_info(log_t* log, pid_t pid, pid_t tid, bool at_fault) { argument 173 snprintf(path, sizeof(path), "/proc/%d/comm", tid); 195 _LOG(log, false, "pid: %d, tid: %d, name: %s >>> %s <<<\n", pid, tid, 199 _LOG(log, true, "pid: %d, tid: %d, name: %s\n", pid, tid, 205 log_t* log, pid_t tid __attribute((unused)), bool at_fault, 220 static void dump_stack_segment(const ptrace_context_t* context, log_t* log, pid_t tid, argument 268 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 320 dump_backtrace_and_stack(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault) argument 330 dump_nearby_maps(const ptrace_context_t* context, log_t* log, pid_t tid) argument 393 dump_thread(const ptrace_context_t* context, log_t* log, pid_t tid, bool at_fault, int* total_sleep_time_usec) argument 406 dump_sibling_thread_report(const ptrace_context_t* context, log_t* log, pid_t pid, pid_t tid, int* total_sleep_time_usec) argument 600 dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, int* total_sleep_time_usec) argument 693 engrave_tombstone(pid_t pid, pid_t tid, int signal, bool dump_sibling_threads, bool quiet, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
/system/core/libcutils/ |
H A D | debugger.c | 23 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 D | sched_policy.c | 54 #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 D | schedtop.c | 19 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 D | test_timer_create2.c | 51 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 D | test_timer_create3.c | 35 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 D | test_timer_create.c | 51 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 D | machine.c | 45 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { 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, ®s)) { 136 dump_memory(log, tid, addr, at_fault); 141 dump_memory(log, tid, (uintptr_t)regs.ARM_pc, at_fault); 145 dump_memory(log, tid, (uintptr_t)regs.ARM_lr, at_fault); 150 log_t* log, pid_t tid, bool at_fault) variable 155 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { 174 if(ptrace(PTRACE_GETVFPREGS, tid, [all...] |
/system/core/libcorkscrew/ |
H A D | backtrace.c | 46 extern int tgkill(int tgid, int tid, int sig); 59 static int tgkill(int tgid, int tid, int sig) { argument 60 return syscall(__NR_tgkill, tgid, tid, sig); 143 ssize_t unwind_backtrace_thread(pid_t tid, backtrace_frame_t* backtrace, argument 145 if (tid == gettid()) { 149 ALOGV("Unwinding thread %d from thread %d.", tid, gettid()); 169 android_atomic_release_store(tid, &g_unwind_signal_state.tid_state); 172 int32_t tid_state = tid; 173 if (tgkill(getpid(), tid, SIGURG)) { 174 ALOGV("Failed to send SIGURG to thread %d.", tid); 228 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 D | ptrace.c | 39 memory->tid = -1; 43 void init_memory_ptrace(memory_t* memory, pid_t tid) { argument 44 memory->tid = tid; 55 if (memory->tid < 0) { 67 *out_value = ptrace(PTRACE_PEEKTEXT, memory->tid, (void*)ptr, NULL); 69 ALOGV("try_get_word: invalid pointer 0x%08x reading from tid %d, " 70 "ptrace() errno=%d", ptr, memory->tid, errno); 77 bool try_get_word_ptrace(pid_t tid, uintptr_t ptr, uint32_t* out_value) { argument 79 init_memory_ptrace(&memory, tid); [all...] |
H A D | backtrace-arch.h | 38 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context,
|
/system/core/debuggerd/mips/ |
H A D | machine.c | 39 static void dump_memory(log_t* log, pid_t tid, uintptr_t addr, bool at_fault) { argument 75 long data = ptrace(PTRACE_PEEKTEXT, tid, (void*)p, NULL); 104 log_t* log, pid_t tid, bool at_fault) { variable 106 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) { 133 dump_memory(log, tid, addr, at_fault); 141 dump_memory(log, tid, (uintptr_t)pc, at_fault); 145 dump_memory(log, tid, (uintptr_t)ra, at_fault); 150 log_t* log, pid_t tid, bool at_fault) variable 155 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
|
/system/core/debuggerd/x86/ |
H A D | machine.c | 35 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 D | ptrace.h | 41 pid_t tid; member in struct:__anon297 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/extras/latencytop/ |
H A D | latencytop.c | 45 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...] |