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

123

/system/core/libbacktrace/
H A Dthread_utils.c25 int tgkill(int tgid, int tid, int sig) { argument
26 return syscall(__NR_tgkill, tgid, tid, sig);
H A DBacktracePtrace.h29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DBacktraceCurrent.h40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DBacktracePtrace.cpp34 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 DUnwindCurrent.h36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
H A DUnwindPtrace.cpp31 UnwindPtrace::UnwindPtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument
32 : BacktracePtrace(pid, tid, map), addr_space_(nullptr), upt_info_(nullptr) {
H A DBacktrace.cpp40 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 DThreadEntry.cpp33 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 Dmachine.cpp47 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 Dmachine.cpp48 void dump_registers(log_t* log, pid_t tid) { argument
50 if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
/system/core/libmemunreachable/
H A DThreadCapture.h25 pid_t tid; member in struct:ThreadInfo
43 bool ReleaseThread(pid_t tid);
/system/core/debuggerd/arm/
H A Dmachine.cpp51 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 Dmachine.cpp55 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 Dmachine.cpp64 void dump_registers(log_t* log, pid_t tid) { argument
66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
/system/core/debuggerd/mips64/
H A Dmachine.cpp64 void dump_registers(log_t* log, pid_t tid) { argument
66 if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
/system/core/include/cutils/
H A Ddebugger.h44 pid_t tid; member in struct:__anon1527
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 Devent_selection_set.h33 pid_t tid; member in struct:CountersInfo::CounterInfo
H A Denvironment.h44 pid_t pid, tid; member in struct:ThreadComm
/system/core/libutils/
H A DCallStack.cpp41 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 Dtarget.h24 const char * tid; member in struct:perf_target
/system/bt/utils/src/
H A Dbt_utils.c120 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 Dbacktrace.cpp71 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 Dsignal_sender.cpp35 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 Ddebugger.c45 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 DThreads.cpp76 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...]

Completed in 471 milliseconds

123