/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 | 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 | BacktracePtrace.cpp | 34 static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) { argument 38 *out_value = ptrace(PTRACE_PEEKTEXT, tid, reinterpret_cast<void*>(addr), nullptr);
|
H A D | UnwindCurrent.h | 36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
|
H A D | UnwindPtrace.cpp | 31 UnwindPtrace::UnwindPtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 32 : BacktracePtrace(pid, tid, map), addr_space_(nullptr), upt_info_(nullptr) {
|
H A D | Backtrace.cpp | 40 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument 41 : pid_(pid), tid_(tid), map_(map), map_shared_(true) { 119 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) { argument 122 if (tid == BACKTRACE_CURRENT_THREAD) { 123 tid = gettid(); 125 } else if (tid == BACKTRACE_CURRENT_THREAD) { 126 tid = pid; 130 return new UnwindCurrent(pid, tid, map); 132 return new UnwindPtrace(pid, tid, map);
|
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/debuggerd/x86/ |
H A D | machine.cpp | 47 void dump_registers(log_t* log, pid_t tid) { argument 49 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
|
/system/core/debuggerd/x86_64/ |
H A D | machine.cpp | 48 void dump_registers(log_t* log, pid_t tid) { argument 50 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
|
/system/core/libmemunreachable/ |
H A D | ThreadCapture.h | 25 pid_t tid; member in struct:ThreadInfo 43 bool ReleaseThread(pid_t tid);
|
/system/core/debuggerd/arm/ |
H A D | machine.cpp | 51 void dump_registers(log_t* log, pid_t tid) { argument 53 if (ptrace(PTRACE_GETREGS, tid, 0, &r)) { 73 if (ptrace(PTRACE_GETVFPREGS, tid, 0, &vfp_regs)) {
|
/system/core/debuggerd/arm64/ |
H A D | machine.cpp | 55 void dump_registers(log_t* log, pid_t tid) { argument 61 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) { 85 if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) {
|
/system/core/debuggerd/mips/ |
H A D | machine.cpp | 64 void dump_registers(log_t* log, pid_t tid) { argument 66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
|
/system/core/debuggerd/mips64/ |
H A D | machine.cpp | 64 void dump_registers(log_t* log, pid_t tid) { argument 66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
|
/system/core/include/cutils/ |
H A D | debugger.h | 44 pid_t tid; member in struct:__anon1530 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/extras/simpleperf/ |
H A D | event_selection_set.h | 33 pid_t tid; member in struct:CountersInfo::CounterInfo
|
H A D | environment.h | 44 pid_t pid, tid; member in struct:ThreadComm
|
/system/core/libutils/ |
H A D | CallStack.cpp | 41 void CallStack::update(int32_t ignoreDepth, pid_t tid) { argument 44 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(BACKTRACE_CURRENT_PROCESS, tid));
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | target.h | 24 const char * tid; member in struct:perf_target
|
/system/bt/utils/src/ |
H A D | bt_utils.c | 120 int tid = gettid(); local 133 // set_sched_policy does not support tid == 0 134 rc = set_sched_policy(tid, SP_AUDIO_SYS); 138 g_TaskIDs[high_task] = tid; 142 LOG_WARN(LOG_TAG, "failed to change sched policy, tid %d, err: %d", tid, errno); 151 if (setpriority(PRIO_PROCESS, tid, priority) < 0) { 152 LOG_WARN(LOG_TAG, "failed to change priority tid: %d to %d", tid, priority); 169 int tid; local [all...] |
/system/core/debuggerd/ |
H A D | backtrace.cpp | 71 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid) { argument 77 snprintf(path, sizeof(path), "/proc/%d/comm", tid); 89 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", threadname ? threadname : "<unknown>", tid); 91 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map)); 95 ALOGE("Unwind failed: tid = %d: %s", tid, 100 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, argument 107 dump_thread(&log, map, pid, tid);
|
H A D | signal_sender.cpp | 35 pid_t tid; member in struct:signal_message 100 if (msg.tid > 0) { 101 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) != 0) { 148 bool send_signal(pid_t pid, pid_t tid, int signal) { argument 155 signal_message msg = {.pid = pid, .tid = tid, .signal = signal };
|
/system/core/libcutils/ |
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/extras/memory_replay/ |
H A D | Threads.cpp | 76 Thread* Threads::CreateThread(pid_t tid) { argument 80 Thread* thread = FindEmptyEntry(tid); 85 thread->tid_ = tid; 89 err(1, "Failed to create thread %d: %s\n", tid, strerror(errno)); 96 Thread* Threads::FindThread(pid_t tid) { argument 97 size_t index = GetHashEntry(tid); 100 if (cur_tid == tid) { 123 size_t Threads::GetHashEntry(pid_t tid) { argument 124 return tid % max_threads_; 127 Thread* Threads::FindEmptyEntry(pid_t tid) { argument [all...] |