/system/core/adb/ |
H A D | sysdeps.h | 64 typedef struct { unsigned tid; } adb_thread_t; member in struct:__anon282 72 thread->tid = _beginthread( (win_thread_func_t)func, 0, arg ); 73 if (thread->tid == (unsigned)-1L) {
|
H A D | usb_libusb.c | 629 adb_thread_t tid; local 651 if (adb_thread_create(&tid, device_poll_thread, NULL)) {
|
H A D | usb_linux.c | 703 adb_thread_t tid; local 712 if(adb_thread_create(&tid, device_poll_thread, NULL)){
|
H A D | usb_linux_client.c | 231 adb_thread_t tid; local 257 if(adb_thread_create(&tid, usb_adb_open_thread, h)){ 440 adb_thread_t tid; local 458 if (adb_thread_create(&tid, usb_ffs_open_thread, h)){
|
H A D | usb_osx.c | 416 adb_thread_t tid; local 424 if(adb_thread_create(&tid, RunLoopThread, NULL))
|
H A D | usb_windows.c | 180 adb_thread_t tid; local 182 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
|
/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/debuggerd/ |
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 | backtrace.h | 28 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed,
|
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 | 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 | 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...] |
H A D | tombstone.h | 28 char* engrave_tombstone(pid_t pid, pid_t tid, int signal,
|
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 | 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);
|
/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 | backtrace.h | 67 ssize_t unwind_backtrace_thread(pid_t tid, backtrace_frame_t* backtrace, 75 ssize_t unwind_backtrace_ptrace(pid_t tid, const ptrace_context_t* context,
|
H A D | map_info.h | 40 /* Loads memory map from /proc/<tid>/maps. */ 41 map_info_t* load_map_info_list(pid_t tid);
|
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/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 | 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
|
H A D | logprint.h | 48 int32_t tid; member in struct:AndroidLogEntry_t
|
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);
|
/system/core/libcorkscrew/arch-arm/ |
H A D | backtrace-arm.c | 131 if (memory->tid < 0) { 585 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument 588 if (ptrace(PTRACE_GETREGS, tid, 0, ®s)) { 598 init_memory_ptrace(&memory, tid);
|