/system/core/debuggerd/x86/ |
H A D | machine.cpp | 31 void dump_registers(log_t* log, pid_t tid) { argument 33 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
|
/system/core/debuggerd/x86_64/ |
H A D | machine.cpp | 33 void dump_registers(log_t* log, pid_t tid) { argument 35 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
|
/system/core/libbacktrace/ |
H A D | thread_utils.c | 38 int tgkill(int tgid, int tid, int sig) { argument 39 return syscall(__NR_tgkill, tgid, tid, sig);
|
H A D | UnwindCurrent.cpp | 163 Backtrace* CreateThreadObj(pid_t tid, BacktraceMap* map) { argument 164 return new BacktraceThread(new UnwindCurrent(), tid, map);
|
H A D | UnwindPtrace.cpp | 136 Backtrace* CreatePtraceObj(pid_t pid, pid_t tid, BacktraceMap* map) { argument 137 return new BacktracePtrace(new UnwindPtrace(), pid, tid, map);
|
H A D | map_info.c | 132 backtrace_map_info_t* backtrace_create_map_info_list(pid_t tid) { argument 138 if (tid < 0) { 139 tid = getpid(); 141 snprintf(path, PATH_MAX, "/proc/%d/maps", tid);
|
H A D | BacktraceImpl.cpp | 165 BacktraceImpl* impl, pid_t pid, pid_t tid, BacktraceMap* map) 167 tid_ = tid; 187 BACK_LOGW("invalid pointer %p reading from tid %d, ptrace() strerror(errno)=%s", 195 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) { argument 197 if (tid == BACKTRACE_CURRENT_THREAD || tid == gettid()) { 200 return CreateThreadObj(tid, map); 202 } else if (tid == BACKTRACE_CURRENT_THREAD) { 205 return CreatePtraceObj(pid, tid, map); 164 BacktracePtrace( BacktraceImpl* impl, pid_t pid, pid_t tid, BacktraceMap* map) argument
|
H A D | BacktraceThread.cpp | 44 ThreadEntry::ThreadEntry(pid_t pid, pid_t tid) argument 45 : pid_(pid), tid_(tid), ref_count_(1), mutex_(PTHREAD_MUTEX_INITIALIZER), 60 ThreadEntry* ThreadEntry::Get(pid_t pid, pid_t tid, bool create) { argument 64 if (entry->Match(pid, tid)) { 72 entry = new ThreadEntry(pid, tid); 151 BACK_LOGW("Unable to find pid %d tid %d information", getpid(), gettid()); 167 BacktraceThread::BacktraceThread(BacktraceImpl* impl, pid_t tid, BacktraceMap* map) argument 169 tid_ = tid;
|
/system/core/debuggerd/arm/ |
H A D | machine.cpp | 30 void dump_memory_and_code(log_t* log, pid_t tid) { argument 32 if (ptrace(PTRACE_GETREGS, tid, 0, ®s)) { 49 dump_memory(log, tid, addr); 54 dump_memory(log, tid, static_cast<uintptr_t>(regs.ARM_pc)); 58 dump_memory(log, tid, static_cast<uintptr_t>(regs.ARM_lr)); 62 void dump_registers(log_t* log, pid_t tid) { argument 64 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { 84 if (ptrace(PTRACE_GETVFPREGS, tid, 0, &vfp_regs)) {
|
/system/core/debuggerd/arm64/ |
H A D | machine.cpp | 30 void dump_memory_and_code(log_t* log, pid_t tid) { argument 36 if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) { 54 dump_memory(log, tid, addr); 58 dump_memory(log, tid, (uintptr_t)regs.pc); 62 dump_memory(log, tid, (uintptr_t)regs.sp); 66 void dump_registers(log_t* log, pid_t tid) { argument 72 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { 96 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) {
|
/system/core/include/cutils/ |
H A D | debugger.h | 46 pid_t tid; member in struct:__anon30 55 pid_t tid; member in struct:__anon31 65 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen); 73 int dump_tombstone_timeout(pid_t tid, char* pathbuf, size_t pathlen, int timeout_secs); 78 int dump_backtrace_to_file(pid_t tid, int fd); 85 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs);
|
/system/core/logd/ |
H A D | LogBufferElement.cpp | 30 uid_t uid, pid_t pid, pid_t tid, 35 , mTid(tid) 54 entry.tid = mTid; 29 LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char *msg, unsigned short len) argument
|
H A D | LogListener.cpp | 93 pid_t tid = (pid_t) *((uint16_t *) msg); local 105 logbuf->log(log_id, realtime, cred->uid, cred->pid, tid, msg,
|
/system/core/debuggerd/mips/ |
H A D | machine.cpp | 46 void dump_memory_and_code(log_t* log, pid_t tid) { argument 48 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { 72 dump_memory(log, tid, addr); 79 dump_memory(log, tid, (uintptr_t)pc); 83 dump_memory(log, tid, (uintptr_t)ra); 87 void dump_registers(log_t* log, pid_t tid) { argument 89 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
|
/system/core/libutils/ |
H A D | CallStack.cpp | 40 void CallStack::update(int32_t ignoreDepth, pid_t tid) { argument 43 UniquePtr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid));
|
/system/core/include/log/ |
H A D | logprint.h | 48 int32_t tid; member in struct:AndroidLogEntry_t
|
H A D | logger.h | 30 int32_t tid; /* generating process's tid */ member in struct:logger_entry 45 int32_t tid; /* generating process's tid */ member in struct:logger_entry_v2 56 int32_t tid; /* generating process's tid */ member in struct:logger_entry_v3
|
/system/core/libcutils/ |
H A D | debugger.c | 35 static bool is32bit(pid_t tid) { argument 37 if (asprintf(&exeline, "/proc/%d/exe", tid) == -1) { 72 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { argument 80 if (is32bit(tid)) { 83 msg32.tid = tid; 93 msg.tid = tid; 127 int dump_backtrace_to_file(pid_t tid, int fd) { argument 128 return dump_backtrace_to_file_timeout(tid, f 131 dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs) argument 151 dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) argument 155 dump_tombstone_timeout(pid_t tid, char* pathbuf, size_t pathlen, int timeout_secs) argument [all...] |
H A D | sched_policy.c | 62 /* Add tid to the scheduling group defined by the policy */ 63 static int add_tid_to_cgroup(int tid, SchedPolicy policy) argument 86 // specialized itoa -- works for tid > 0 91 while (tid > 0) { 92 *--ptr = '0' + (tid % 10); 93 tid = tid / 10; 143 static int getSchedulerGroup(int tid, char* buf, size_t bufLen) argument 150 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid); 204 int get_sched_policy(int tid, SchedPolic argument 241 set_sched_policy(int tid, SchedPolicy policy) argument [all...] |
/system/core/debuggerd/ |
H A D | backtrace.cpp | 66 log_t* log, pid_t tid, bool attached, bool* detach_failed, int* total_sleep_time_usec) { 72 snprintf(path, sizeof(path), "/proc/%d/comm", tid); 84 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); 86 if (!attached && ptrace(PTRACE_ATTACH, tid, 0, 0) < 0) { 91 if (!attached && wait_for_sigstop(tid, total_sleep_time_usec, detach_failed) == -1) { 95 UniquePtr<Backtrace> backtrace(Backtrace::Create(tid, BACKTRACE_CURRENT_THREAD)); 100 if (!attached && ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { 101 _LOG(log, logtype::ERROR, "ptrace detach from %d failed: %s\n", tid, strerror(errno)); 106 void dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed, argument 113 dump_thread(&log, tid, tru 65 dump_thread( log_t* log, pid_t tid, bool attached, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
H A D | utility.cpp | 94 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed) { argument 98 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); 100 ALOGE("waitpid failed: tid %d, %s", tid, strerror(errno)); 102 } else if (n == tid) { 108 // to fail with ESRCH, which indicates the tid has exited. 115 ALOGE("timed out waiting for stop signal: tid=%d", tid); 123 if (ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { 125 ALOGE("tid exite 140 dump_memory(log_t* log, pid_t tid, uintptr_t addr) argument [all...] |
H A D | debuggerd.cpp | 50 pid_t pid, tid; member in struct:debugger_request_t 81 request.pid, exe, request.tid); 99 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) { argument 101 snprintf(path, sizeof(path), "/proc/%d/status", tid); 136 ALOGV("reading tid"); 145 ALOGE("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid); 162 out_request->tid = msg.tid; 170 // Ensure that the tid reported by the crashing process is valid. 173 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid); 404 do_explicit_dump(pid_t tid, bool dump_backtrace) argument 439 pid_t tid = 0; local [all...] |
/system/core/adb/ |
H A D | usb_linux_client.c | 231 adb_thread_t tid; local 257 if(adb_thread_create(&tid, usb_adb_open_thread, h)){ 445 adb_thread_t tid; local 463 if (adb_thread_create(&tid, usb_ffs_open_thread, h)){
|
H A D | usb_windows.c | 182 adb_thread_t tid; local 184 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
|
/system/core/liblog/ |
H A D | logd_write.c | 161 uint16_t tid; local 187 * u16 tid; 208 tid = gettid(); 212 newVec[1].iov_base = (unsigned char *) &tid; 213 newVec[1].iov_len = sizeof(tid); 259 if (ret > (ssize_t)(sizeof_log_id_t + sizeof(tid) + sizeof(log_time))) { 260 ret -= sizeof_log_id_t + sizeof(tid) + sizeof(log_time);
|