Searched defs:tid (Results 1 - 25 of 33) sorted by last modified time

12

/system/core/adb/
H A Dsysdeps.h64 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 Dusb_libusb.c629 adb_thread_t tid; local
651 if (adb_thread_create(&tid, device_poll_thread, NULL)) {
H A Dusb_linux.c703 adb_thread_t tid; local
712 if(adb_thread_create(&tid, device_poll_thread, NULL)){
H A Dusb_linux_client.c231 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 Dusb_osx.c416 adb_thread_t tid; local
424 if(adb_thread_create(&tid, RunLoopThread, NULL))
H A Dusb_windows.c180 adb_thread_t tid; local
182 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
/system/core/debuggerd/arm/
H A Dmachine.c45 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, &regs)) {
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 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);
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 Ddebuggerd.c53 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 Dtombstone.c149 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 Dutility.c53 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);
/system/core/debuggerd/mips/
H A Dmachine.c39 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 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:__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 Ddebugger.h40 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 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
H A Dlogprint.h48 int32_t tid; member in struct:AndroidLogEntry_t
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c131 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, &regs)) {
598 init_memory_ptrace(&memory, tid);
/system/core/libcorkscrew/arch-mips/
H A Dbacktrace-mips.c174 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
178 if (ptrace(PTRACE_GETREGS, tid, 0, &regs)) {
191 init_memory_ptrace(&memory, tid);
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c141 ssize_t unwind_backtrace_ptrace_arch(pid_t tid, const ptrace_context_t* context, argument
144 if (ptrace(PTRACE_GETREGS, tid, 0, &regs)) {
154 init_memory_ptrace(&memory, tid);
/system/core/libcorkscrew/
H A Dbacktrace.c46 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 Dmap_info.c71 map_info_t* load_map_info_list(pid_t tid) { argument
77 snprintf(path, PATH_MAX, "/proc/%d/maps", tid);
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) {
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...]
/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...]

Completed in 138 milliseconds

12