/system/core/include/cutils/ |
H A D | sched_policy.h | 29 extern int set_sched_policy(int tid, SchedPolicy policy); 30 extern int get_sched_policy(int tid, SchedPolicy *policy);
|
H A D | logger.h | 19 int32_t tid; /* generating process's tid */ member in struct:logger_entry
|
H A D | logprint.h | 48 pthread_t tid; member in struct:AndroidLogEntry_t
|
/system/core/libcutils/ |
H A D | sched_policy.c | 55 /* Add tid to the scheduling group defined by the policy */ 56 static int add_tid_to_cgroup(int tid, SchedPolicy policy) argument 72 // specialized itoa -- works for tid > 0 77 while (tid > 0) { 78 *--ptr = '0' + (tid % 10); 79 tid = tid / 10; 129 static int getSchedulerGroup(int tid, char* buf, size_t bufLen) argument 136 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid); 190 int get_sched_policy(int tid, SchedPolic argument 222 set_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...] |
H A D | ps.c | 34 static int ps_line(int pid, int tid, char *namefilter) argument 51 if(tid) { 52 sprintf(statline, "/proc/%d/task/%d/stat", pid, tid); 132 if(tid != 0) { 134 pid = tid; 185 int tid = atoi(de->d_name); local 186 if(tid == pid) continue; 187 ps_line(pid, tid, namefilter);
|
H A D | top.c | 55 pid_t tid; member in struct:proc_info 100 static struct proc_info *find_old_proc(pid_t pid, pid_t tid); 229 pid_t pid, tid; local 257 proc->pid = proc->tid = pid; 290 tid = atoi(tid_dir->d_name); 294 proc->pid = pid; proc->tid = tid; 296 sprintf(filename, "/proc/%d/task/%d/stat", pid, tid); 299 read_policy(tid, proc); 422 old_proc = find_old_proc(new_procs[i]->pid, new_procs[i]->tid); 491 find_old_proc(pid_t pid, pid_t tid) argument [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/ |
H A D | debuggerd.c | 191 void dump_crash_banner(int tfd, unsigned pid, unsigned tid, int sig) argument 207 _LOG(tfd, false, "pid: %d, tid: %d >>> %s <<<\n", 208 pid, tid, x ? x : "UNKNOWN"); 210 if(sig) dump_fault_addr(tfd, tid, sig); 255 void dump_crash_report(int tfd, unsigned pid, unsigned tid, bool at_fault) argument 269 _LOG(tfd, true, "pid: %d, tid: %d\n", pid, tid); 272 dump_registers(tfd, tid, at_fault); 290 parse_elf_info(milist, tid); 296 stack_depth = unwind_backtrace_with_ptrace(tfd, tid, milis 385 dump_sibling_thread_report(int tfd, unsigned pid, unsigned tid) argument 571 engrave_tombstone(unsigned pid, unsigned tid, int debug_uid, int signal) argument 661 wait_for_user_action(unsigned tid, struct ucred* cr) argument 721 unsigned tid; local [all...] |
/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...] |
/system/core/adb/ |
H A D | usb_linux_client.c | 115 adb_thread_t tid; local 136 if(adb_thread_create(&tid, usb_open_thread, h)){
|
H A D | sysdeps.h | 63 typedef struct { unsigned tid; } adb_thread_t; member in struct:__anon282 71 thread->tid = _beginthread( (win_thread_func_t)func, 0, arg ); 72 if (thread->tid == (unsigned)-1L) {
|
H A D | usb_windows.c | 180 adb_thread_t tid; local 182 if(adb_thread_create(&tid, device_poll_thread, NULL)) {
|
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_osx.c | 408 adb_thread_t tid; local 416 if(adb_thread_create(&tid, RunLoopThread, NULL))
|
H A D | usb_linux.c | 678 adb_thread_t tid; local 687 if(adb_thread_create(&tid, device_poll_thread, NULL)){
|
/system/core/liblog/ |
H A D | fake_log_device.c | 357 pid_t pid, tid; local 363 pid = tid = getpid(); // find gettid()? 401 "%c(%5d:%p) ", priChar, pid, (void*)tid); 415 "%s %5d %5d %c %-8s \n\t", timeBuf, pid, tid, priChar, tag); 421 timeBuf, pid, (void*)tid, priChar, tag);
|
H A D | logprint.c | 356 entry->tid = buf->tid; 611 entry->tid = buf->tid; 756 "%c(%5d:%p) ", priChar, entry->pid, (void*)entry->tid); 776 (int)entry->pid, (int)entry->tid, priChar, entry->tag); 784 (void*)entry->tid, priChar, entry->tag);
|