/system/core/libbacktrace/ |
H A D | thread_utils.c | 25 int tgkill(int tgid, int tid, int sig) { argument 26 return syscall(__NR_tgkill, tgid, tid, sig);
|
H A D | thread_utils.h | 24 int tgkill(int tgid, int tid, int sig);
|
H A D | Backtrace.cpp | 42 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 43 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { 127 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) { argument 130 if (tid == BACKTRACE_CURRENT_THREAD) { 131 tid = gettid(); 133 } else if (tid == BACKTRACE_CURRENT_THREAD) { 134 tid = pid; 138 return new UnwindCurrent(pid, tid, map); 140 return new UnwindPtrace(pid, tid, map);
|
H A D | BacktracePtrace.h | 29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
|
H A D | BacktraceCurrent.h | 40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
|
H A D | ThreadEntry.h | 26 static ThreadEntry* Get(pid_t pid, pid_t tid, bool create = true); 51 ThreadEntry(pid_t pid, pid_t tid);
|
H A D | UnwindCurrent.h | 36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
|
H A D | ThreadEntry.cpp | 33 ThreadEntry::ThreadEntry(pid_t pid, pid_t tid) argument 34 : pid_(pid), tid_(tid), ref_count_(1), mutex_(PTHREAD_MUTEX_INITIALIZER), 49 ThreadEntry* ThreadEntry::Get(pid_t pid, pid_t tid, bool create) { argument 53 if (entry->Match(pid, tid)) { 61 entry = new ThreadEntry(pid, tid);
|
/system/core/include/cutils/ |
H A D | sched_policy.h | 37 extern int set_cpuset_policy(int tid, SchedPolicy policy); 39 /* Assign thread tid to the cgroup associated with the specified policy. 42 * On platforms which support gettid(), zero tid means current thread. 45 extern int set_sched_policy(int tid, SchedPolicy policy); 47 /* Return the policy associated with the cgroup of thread tid via policy pointer. 48 * On platforms which support gettid(), zero tid means current thread. 51 extern int get_sched_policy(int tid, SchedPolicy *policy);
|
H A D | debugger.h | 44 pid_t tid; member in struct:__anon1323 53 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen); 61 int dump_tombstone_timeout(pid_t tid, char* pathbuf, size_t pathlen, int timeout_secs); 66 int dump_backtrace_to_file(pid_t tid, int fd); 73 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs);
|
/system/bt/utils/src/ |
H A D | bt_utils.c | 119 int tid = gettid(); local 127 // set_sched_policy does not support tid == 0 128 rc = set_sched_policy(tid, SP_AUDIO_SYS); 130 g_TaskIDs[high_task] = tid; 134 LOG_WARN("failed to change sched policy, tid %d, err: %d", tid, errno); 144 if (setpriority(PRIO_PROCESS, tid, priority) < 0) { 145 LOG_WARN("failed to change priority tid: %d to %d", tid, priority); 162 int tid; local [all...] |
/system/core/libcutils/ |
H A D | sched_policy.c | 67 /* Add tid to the scheduling group defined by the policy */ 68 static int add_tid_to_cgroup(int tid, int fd) argument 76 // specialized itoa -- works for tid > 0 81 while (tid > 0) { 82 *--ptr = '0' + (tid % 10); 83 tid = tid / 10; 145 static int getSchedulerGroup(int tid, char* buf, size_t bufLen) argument 152 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid); 206 int get_sched_policy(int tid, SchedPolic argument 241 set_cpuset_policy(int tid, SchedPolicy policy) argument 277 set_sched_policy(int tid, SchedPolicy policy) argument [all...] |
H A D | debugger.c | 45 static int make_dump_request(debugger_action_t action, pid_t tid, int timeout_secs) { argument 48 msg.tid = tid; 78 int dump_backtrace_to_file(pid_t tid, int fd) { argument 79 return dump_backtrace_to_file_timeout(tid, fd, 0); 82 int dump_backtrace_to_file_timeout(pid_t tid, int fd, int timeout_secs) { argument 83 int sock_fd = make_dump_request(DEBUGGER_ACTION_DUMP_BACKTRACE, tid, timeout_secs); 102 int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) { argument 103 return dump_tombstone_timeout(tid, pathbuf, pathlen, 0); 106 int dump_tombstone_timeout(pid_t tid, cha argument [all...] |
/system/core/debuggerd/ |
H A D | machine.h | 27 void dump_registers(log_t* log, pid_t tid);
|
H A D | debuggerd.cpp | 60 pid_t pid, tid; member in struct:debugger_request_t 91 request.pid, exe, request.tid); 109 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) { argument 111 snprintf(path, sizeof(path), "/proc/%d/status", tid); 149 static bool selinux_action_allowed(int s, pid_t tid, debugger_action_t action) argument 171 if (getpidcon(tid, &tcon) < 0) { 172 ALOGE("Cannot get context for tid %d\n", tid); 193 ALOGV("reading tid"); 202 ALOGE("timed out reading tid (fro 267 is32bit(pid_t tid) argument 561 do_explicit_dump(pid_t tid, bool dump_backtrace) argument 600 pid_t tid = 0; local [all...] |
H A D | backtrace.cpp | 71 log_t* log, pid_t tid, bool attached, bool* detach_failed, int* total_sleep_time_usec) { 77 snprintf(path, sizeof(path), "/proc/%d/comm", tid); 89 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); 91 if (!attached && ptrace(PTRACE_ATTACH, tid, 0, 0) < 0) { 96 if (!attached && wait_for_sigstop(tid, total_sleep_time_usec, detach_failed) == -1) { 100 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(tid, BACKTRACE_CURRENT_THREAD)); 104 ALOGE("Unwind failed: tid = %d", tid); 107 if (!attached && ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { 108 _LOG(log, logtype::ERROR, "ptrace detach from %d failed: %s\n", tid, strerro 70 dump_thread( log_t* log, pid_t tid, bool attached, bool* detach_failed, int* total_sleep_time_usec) argument 113 dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed, int* total_sleep_time_usec) argument [all...] |
H A D | backtrace.h | 28 void dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed,
|
H A D | tombstone.h | 26 char* engrave_tombstone(pid_t pid, pid_t tid, int signal, int original_si_code,
|
H A D | utility.cpp | 82 int wait_for_sigstop(pid_t tid, int* total_sleep_time_usec, bool* detach_failed) { argument 86 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); 88 ALOGE("waitpid failed: tid %d, %s", tid, strerror(errno)); 90 } else if (n == tid) { 96 // to fail with ESRCH, which indicates the tid has exited. 103 ALOGE("timed out waiting for stop signal: tid=%d", tid); 111 if (ptrace(PTRACE_DETACH, tid, 0, 0) != 0) { 113 ALOGE("tid exite [all...] |
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | target.h | 24 const char * tid; member in struct:perf_target
|
H A D | event.h | 25 u32 pid, tid; member in struct:mmap_event 35 u32 pid, tid; member in struct:mmap2_event 50 u32 pid, tid; member in struct:comm_event 57 u32 tid, ptid; member in struct:fork_event 70 u32 pid, tid; member in struct:read_event 116 u32 pid, tid; member in struct:perf_sample
|
/system/core/libutils/ |
H A D | ProcessCallStack.cpp | 79 static String8 getThreadName(pid_t tid) { argument 85 snprintf(path, sizeof(path), PATH_THREAD_NAME, tid); 95 return String8::format("[err-unknown-tid-%d]", tid); 158 * Each tid is a directory inside of /proc/self/task 159 * - Read every file in directory => get every tid 163 pid_t tid = -1; local 164 sscanf(ep->d_name, "%d", &tid); 166 if (tid < 0) { 168 ALOGV("%s: Failed to read tid fro 226 pid_t tid = mThreadMap.keyAt(i); local [all...] |
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | target.h | 9 const char *tid; member in struct:perf_target 52 return target->tid || target->pid || target->uid_str;
|
/system/extras/latencytop/ |
H A D | latencytop.c | 46 static struct latency_entry *read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal); 72 int pid, tid; local 78 pid = tid = 0; 114 tid = atoi(argv[++i]); 122 if (tid && !pid) { 147 if (tid) { 148 e = read_thread_stats(e, erase, pid, tid, 1); 159 if (tid) { 160 printf("Latencies for thread %d in process %d:\n", tid, pid); 207 int tid; local 232 read_thread_stats(struct latency_entry *list, int erase, int pid, int tid, int fatal) argument [all...] |
/system/extras/simpleperf/ |
H A D | record.h | 44 uint32_t pid, tid; member in struct:PerfSampleTidType 122 uint32_t pid, tid; member in struct:MmapRecord::MmapRecordDataType 141 uint32_t pid, tid; member in struct:CommRecord::CommRecordDataType 158 uint32_t tid, ptid; member in struct:ExitRecord::ExitRecordDataType 204 MmapRecord CreateMmapRecord(const perf_event_attr& attr, bool in_kernel, uint32_t pid, uint32_t tid, 207 CommRecord CreateCommRecord(const perf_event_attr& attr, uint32_t pid, uint32_t tid,
|