Searched defs:tid (Results 1 - 25 of 33) sorted by relevance

12

/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/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/debuggerd/
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);
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...]
/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/extras/tests/bionic/libc/other/
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)
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)
/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/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/libcorkscrew/
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...]
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 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...]
/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/adb/
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_windows.c180 adb_thread_t tid; local
182 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
H A Dusb_libusb.c629 adb_thread_t tid; local
651 if (adb_thread_create(&tid, device_poll_thread, NULL)) {
/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/toolbox/
H A Dps.c34 static int ps_line(int pid, int tid, char *namefilter) argument
52 if(tid) {
53 sprintf(statline, "/proc/%d/task/%d/stat", pid, tid);
55 snprintf(macline, sizeof(macline), "/proc/%d/task/%d/attr/current", pid, tid);
135 if(tid != 0) {
137 pid = tid;
195 int tid = atoi(de->d_name); local
196 if(tid == pid) continue;
197 ps_line(pid, tid, namefilter);
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/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 165 milliseconds

12