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

123456

/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.cpp42 Backtrace::Backtrace(pid_t pid, pid_t tid, BacktraceMap* map) argument
43 : pid_(pid), tid_(tid), map_(map), map_shared_(true) {
126 Backtrace* Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map) { argument
129 if (tid == BACKTRACE_CURRENT_THREAD) {
130 tid = gettid();
132 } else if (tid == BACKTRACE_CURRENT_THREAD) {
133 tid = pid;
137 return new UnwindCurrent(pid, tid, map);
139 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/logd/
H A DLogBufferInterface.cpp27 pid_t LogBufferInterface::tidToPid(pid_t tid) { argument
28 return android::tidToPid(tid);
H A DLogBufferInterface.h34 pid_t tid, const char* msg, unsigned short len) = 0;
37 virtual pid_t tidToPid(pid_t tid);
/system/core/include/cutils/
H A Dsched_policy.h56 extern int set_cpuset_policy(int tid, SchedPolicy policy);
58 /* Assign thread tid to the cgroup associated with the specified policy.
61 * On platforms which support gettid(), zero tid means current thread.
64 extern int set_sched_policy(int tid, SchedPolicy policy);
66 /* Return the policy associated with the cgroup of thread tid via policy pointer.
67 * On platforms which support gettid(), zero tid means current thread.
70 extern int get_sched_policy(int tid, SchedPolicy *policy);
/system/core/libcutils/include/cutils/
H A Dsched_policy.h56 extern int set_cpuset_policy(int tid, SchedPolicy policy);
58 /* Assign thread tid to the cgroup associated with the specified policy.
61 * On platforms which support gettid(), zero tid means current thread.
64 extern int set_sched_policy(int tid, SchedPolicy policy);
66 /* Return the policy associated with the cgroup of thread tid via policy pointer.
67 * On platforms which support gettid(), zero tid means current thread.
70 extern int get_sched_policy(int tid, SchedPolicy *policy);
/system/core/libcutils/include_vndk/cutils/
H A Dsched_policy.h56 extern int set_cpuset_policy(int tid, SchedPolicy policy);
58 /* Assign thread tid to the cgroup associated with the specified policy.
61 * On platforms which support gettid(), zero tid means current thread.
64 extern int set_sched_policy(int tid, SchedPolicy policy);
66 /* Return the policy associated with the cgroup of thread tid via policy pointer.
67 * On platforms which support gettid(), zero tid means current thread.
70 extern int get_sched_policy(int tid, SchedPolicy *policy);
/system/core/libmemunreachable/
H A DThreadCapture.cpp81 bool ReleaseThread(pid_t tid);
86 int CaptureThread(pid_t tid);
87 bool ReleaseThread(pid_t tid, unsigned int signal);
88 int PtraceAttach(pid_t tid);
89 void PtraceDetach(pid_t tid, unsigned int signal);
90 bool PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info);
138 pid_t tid = atoi(dirent->d_name); local
139 if (tid <= 0) {
142 tids.push_back(tid);
179 void ThreadCaptureImpl::PtraceDetach(pid_t tid, unsigne argument
188 PtraceAttach(pid_t tid) argument
211 PtraceThreadInfo(pid_t tid, ThreadInfo& thread_info) argument
251 CaptureThread(pid_t tid) argument
297 ReleaseThread(pid_t tid) argument
305 ReleaseThread(pid_t tid, unsigned int signal) argument
355 ReleaseThread(pid_t tid) argument
[all...]
/system/core/libcutils/
H A Dsched_policy.cpp68 /* Add tid to the scheduling group defined by the policy */
69 static int add_tid_to_cgroup(int tid, int fd) argument
77 // specialized itoa -- works for tid > 0
82 while (tid > 0) {
83 *--ptr = '0' + (tid % 10);
84 tid = tid / 10;
185 static int getCGroupSubsys(int tid, const char* subsys, char* buf, size_t bufLen) argument
192 snprintf(pathBuf, sizeof(pathBuf), "/proc/%d/cgroup", tid);
246 int get_sched_policy(int tid, SchedPolic argument
279 set_cpuset_policy(int tid, SchedPolicy policy) argument
332 set_timerslack_ns(int tid, unsigned long slack) argument
357 set_sched_policy(int tid, SchedPolicy policy) argument
[all...]
/system/core/debuggerd/include/debuggerd/
H A Dclient.h32 int dump_backtrace_to_file(pid_t tid, enum DebuggerdDumpType dump_type, int output_fd);
33 int dump_backtrace_to_file_timeout(pid_t tid, enum DebuggerdDumpType dump_type, int timeout_secs,
/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/core/debuggerd/libdebuggerd/
H A Dbacktrace.cpp59 static void log_thread_name(log_t* log, pid_t tid, const char* thread_name) { argument
60 _LOG(log, logtype::BACKTRACE, "\n\"%s\" sysTid=%d\n", thread_name, tid);
63 static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid, argument
65 log_thread_name(log, tid, thread_name.c_str());
67 std::unique_ptr<Backtrace> backtrace(Backtrace::Create(pid, tid, map));
71 ALOGE("Unwind failed: tid = %d: %s", tid,
76 void dump_backtrace(int fd, BacktraceMap* map, pid_t pid, pid_t tid, const std::string& process_name, argument
83 dump_thread(&log, map, pid, tid, threads.find(tid)
98 pid_t tid = gettid(); local
[all...]
/system/nfc/src/nfc/llcp/
H A Dllcp_sdp.c97 static void llcp_sdp_add_sdreq(uint8_t tid, char* p_name) { argument
106 UINT8_TO_BE_STREAM(p, tid);
122 tLLCP_STATUS llcp_sdp_send_sdreq(uint8_t tid, char* p_name) { argument
127 LLCP_TRACE_DEBUG2("llcp_sdp_send_sdreq (): tid=0x%x, ServiceName=%s", tid,
151 llcp_sdp_add_sdreq(tid, p_name);
164 llcp_sdp_add_sdreq(tid, p_name);
194 static void llcp_sdp_add_sdres(uint8_t tid, uint8_t sap) { argument
202 UINT8_TO_BE_STREAM(p, tid);
218 static tLLCP_STATUS llcp_sdp_send_sdres(uint8_t tid, uint8_ argument
318 llcp_sdp_return_sap(uint8_t tid, uint8_t sap) argument
378 uint8_t type, length, tid, sap, *p_value; local
[all...]
/system/bt/utils/src/
H A Dbt_utils.cc115 int tid = gettid(); local
129 // set_sched_policy does not support tid == 0
130 rc = set_sched_policy(tid, SP_AUDIO_SYS);
134 g_TaskIDs[high_task] = tid;
138 LOG_WARN(LOG_TAG, "failed to change sched policy, tid %d, err: %d", tid,
148 const int rc = sched_setscheduler(tid, SCHED_FIFO, &rt_params);
151 "%s unable to set SCHED_FIFO priority %d for tid %d, error %s",
152 __func__, A2DP_RT_PRIORITY, tid, strerror(errno));
/system/extras/simpleperf/inferno/
H A Ddata_types.py26 def __init__(self, tid):
27 self.tid = tid
70 def get_thread(self, tid):
71 if (tid not in self.threads.keys()):
72 self.threads[tid] = Thread(tid)
73 return self.threads[tid]
/system/core/debuggerd/libdebuggerd/include/
H A Dmachine.h27 void dump_registers(log_t* log, pid_t tid);
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
H A Dtarget.h24 const char * tid; member in struct:perf_target
/system/core/debuggerd/
H A Dsignal_sender.cpp38 pid_t tid; member in struct:signal_message
103 if (msg.tid > 0) {
104 if (syscall(SYS_tgkill, msg.pid, msg.tid, msg.signal) != 0) {
151 bool send_signal(pid_t pid, pid_t tid, int signal) { argument
158 signal_message msg = {.pid = pid, .tid = tid, .signal = signal };
/system/core/libutils/
H A DProcessCallStack.cpp77 static String8 getThreadName(pid_t tid) { argument
83 snprintf(path, sizeof(path), PATH_THREAD_NAME, tid);
93 return String8::format("[err-unknown-tid-%d]", tid);
151 * Each tid is a directory inside of /proc/self/task
152 * - Read every file in directory => get every tid
156 pid_t tid = -1; local
157 sscanf(ep->d_name, "%d", &tid);
159 if (tid < 0) {
161 ALOGV("%s: Failed to read tid fro
212 pid_t tid = mThreadMap.keyAt(i); local
[all...]

Completed in 839 milliseconds

123456