Searched refs:tid (Results 1 - 25 of 95) sorted by relevance

1234

/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 Dthread_utils.h28 int tgkill(int tgid, int tid, int sig);
H A DBacktracePtrace.h29 BacktracePtrace(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
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 DBacktraceCurrent.h40 BacktraceCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : Backtrace(pid, tid, map) {} argument
H A DThreadEntry.h26 static ThreadEntry* Get(pid_t pid, pid_t tid, bool create = true);
51 ThreadEntry(pid_t pid, pid_t tid);
H A DUnwindCurrent.h36 UnwindCurrent(pid_t pid, pid_t tid, BacktraceMap* map) : BacktraceCurrent(pid, tid, map) {} argument
/system/core/include/cutils/
H A Dsched_policy.h38 extern int set_cpuset_policy(int tid, SchedPolicy policy);
40 /* Assign thread tid to the cgroup associated with the specified policy.
43 * On platforms which support gettid(), zero tid means current thread.
46 extern int set_sched_policy(int tid, SchedPolicy policy);
48 /* Return the policy associated with the cgroup of thread tid via policy pointer.
49 * On platforms which support gettid(), zero tid means current thread.
52 extern int get_sched_policy(int tid, SchedPolicy *policy);
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/core/debuggerd/
H A Dsignal_sender.h26 // If tid is greater than zero, this performs tgkill(pid, tid, signal).
28 bool send_signal(pid_t pid, pid_t tid, int signal);
H A Dmachine.h27 void dump_registers(log_t* log, pid_t tid);
H A Dbacktrace.h32 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t 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 };
H A Ddebuggerd.cpp71 pid_t pid, tid; member in struct:debugger_request_t
88 request.pid, request.tid);
103 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) { argument
105 snprintf(path, sizeof(path), "/proc/%d/status", tid);
173 if (getpidcon(request->tid, &tcon) < 0) {
174 ALOGE("Cannot get context for tid %d\n", request->tid);
186 static bool pid_contains_tid(pid_t pid, pid_t tid) { argument
188 if (snprintf(task_path, PATH_MAX, "/proc/%d/task/%d", pid, tid) >= PATH_MAX) {
189 ALOGE("debuggerd: task path overflow (pid = %d, tid
345 is32bit(pid_t tid) argument
424 ptrace_attach_thread(pid_t pid, pid_t tid) argument
465 pid_t tid = strtoul(de->d_name, &end, 10); local
893 do_explicit_dump(pid_t tid, bool dump_backtrace) argument
933 pid_t tid = 0; local
[all...]
/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/libmemunreachable/
H A DThreadCapture.cpp79 bool ReleaseThread(pid_t tid);
83 int CaptureThread(pid_t tid);
84 bool ReleaseThread(pid_t tid, unsigned int signal);
85 int PtraceAttach(pid_t tid);
86 void PtraceDetach(pid_t tid, unsigned int signal);
87 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info);
136 pid_t tid = atoi(dirent->d_name); local
137 if (tid <= 0) {
140 tids.push_back(tid);
177 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigne argument
187 PtraceAttach(pid_t tid) argument
212 PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info) argument
253 CaptureThread(pid_t tid) argument
301 ReleaseThread(pid_t tid) argument
309 ReleaseThread(pid_t tid, unsigned int signal) argument
359 ReleaseThread(pid_t tid) argument
[all...]
H A DThreadCapture.h25 pid_t tid; member in struct:ThreadInfo
43 bool ReleaseThread(pid_t tid);
/system/core/libcutils/
H A Dsched_policy.c76 /* Add tid to the scheduling group defined by the policy */
77 static int add_tid_to_cgroup(int tid, int fd) argument
85 // specialized itoa -- works for tid > 0
90 while (tid > 0) {
91 *--ptr = '0' + (tid % 10);
92 tid = tid / 10;
166 static int getCGroupSubsys(int tid, const char* subsys, char* buf, size_t bufLen) argument
173 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid);
227 int get_sched_policy(int tid, SchedPolic argument
279 set_cpuset_policy(int tid, SchedPolicy policy) argument
332 set_sched_policy(int tid, SchedPolicy policy) argument
[all...]
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.h31 Thread* CreateThread(pid_t tid);
32 Thread* FindThread(pid_t tid);
49 Thread* FindEmptyEntry(pid_t tid);
50 size_t GetHashEntry(pid_t tid);
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...]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
H A Dtarget.h24 const char * tid; member in struct:perf_target
/system/extras/simpleperf/
H A Dthread_tree.cpp45 void ThreadTree::AddThread(int pid, int tid, const std::string& comm) { argument
46 auto it = thread_tree_.find(tid);
49 pid, tid,
53 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread)));
61 void ThreadTree::ForkThread(int pid, int tid, int ppid, int ptid) { argument
63 ThreadEntry* child = FindThreadOrNew(pid, tid);
68 ThreadEntry* ThreadTree::FindThreadOrNew(int pid, int tid) { argument
69 auto it = thread_tree_.find(tid);
71 AddThread(pid, tid, "unknown");
72 it = thread_tree_.find(tid);
77 << "), actual (" << pid << ", " << tid << ")"; local
111 AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument
[all...]
/system/core/libutils/
H A DProcessCallStack.cpp80 static String8 getThreadName(pid_t tid) { argument
86 snprintf(path, sizeof(path), PATH_THREAD_NAME, tid);
96 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
225 pid_t tid = mThreadMap.keyAt(i); local
[all...]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Dtarget.h9 const char *tid; member in struct:perf_target
52 return target->tid || target->pid || target->uid_str;

Completed in 356 milliseconds

1234