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

12

/bionic/libc/bionic/
H A Dgettid.cpp37 pid_t tid = self->tid; local
38 if (__predict_true(tid != -1)) {
39 return tid;
41 self->tid = syscall(__NR_gettid);
42 return self->tid;
H A Dpthread_getcpuclockid.cpp34 pid_t tid = pthread_gettid_np(t); local
35 if (tid == -1) return ESRCH;
37 // The tid is stored in the top bits, but negated.
38 clockid_t result = ~static_cast<clockid_t>(tid) << 3;
H A Draise.cpp38 pid_t tid = syscall(__NR_gettid); local
39 return tgkill(pid, tid, sig);
H A Dpthread_kill.cpp38 pid_t tid = pthread_gettid_np(t); local
39 if (tid == -1) return ESRCH;
41 return (tgkill(getpid(), tid, sig) == -1) ? errno : 0;
H A Dabort.cpp37 static inline __always_inline void inline_tgkill(pid_t pid, pid_t tid, int sig) { argument
40 register int r1 __asm__("r1") = tid;
46 register long x1 __asm__("x1") = tid;
51 syscall(__NR_tgkill, pid, tid, sig);
59 pid_t tid = syscall(__NR_gettid); local
68 inline_tgkill(pid, tid, SIGABRT);
76 inline_tgkill(pid, tid, SIGABRT);
H A Dpthread_getschedparam.cpp37 pid_t tid = pthread_gettid_np(t); local
38 if (tid == -1) return ESRCH;
40 if (sched_getparam(tid, param) == -1) return errno;
41 *policy = sched_getscheduler(tid);
H A Dpthread_join.cpp55 pid_t tid = thread->tid; local
56 volatile int* tid_ptr = &thread->tid;
63 __futex_wait(tid_ptr, tid, NULL);
H A Dpthread_setschedparam.cpp38 pid_t tid = pthread_gettid_np(t); local
39 if (tid == -1) return ESRCH;
41 return (sched_setscheduler(tid, policy, param) == -1) ? errno : 0;
47 pid_t tid = pthread_gettid_np(t); local
48 if (tid == -1) return ESRCH;
51 return (sched_setparam(tid, &param) == -1) ? errno : 0;
H A Dpthread_internal.h68 pid_t tid; member in class:pthread_internal_t
H A Dndk_cruft.cpp232 int tkill(pid_t tid, int sig) { argument
233 return syscall(__NR_tkill, tid, sig);
H A Dpthread_mutex.cpp150 pid_t tid = __get_thread()->tid; local
154 &old_owner, tid,
159 if (tid == (old_owner & FUTEX_TID_MASK)) {
193 pid_t tid = __get_thread()->tid; local
194 int old_owner = tid;
205 if (tid != (old_owner & FUTEX_TID_MASK)) {
215 if (old_owner == tid) {
713 pid_t tid local
860 pid_t tid = __get_thread()->tid; local
909 pid_t tid = __get_thread()->tid; local
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_l2tp.h27 __u32 tid; member in struct:xt_l2tp_info
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_l2tp.h27 __u32 tid; member in struct:xt_l2tp_info
/bionic/tests/
H A Dstack_protector_test.cpp43 pid_t tid = gettid(); local
46 printf("[thread %d] TLS stack guard = %p\n", tid, guard);
48 // Duplicate tid. gettid(2) bug? Seeing this would be very upsetting.
49 ASSERT_TRUE(tids.find(tid) == tids.end());
60 tids.insert(tid);
H A Dleak_test.cpp130 struct thread_data { pthread_barrier_t* barrier; pid_t* tid; } threads[kThreadCount] = {}; member in struct:thread_data
141 *data->tid = gettid();
H A Dsched_test.cpp34 pid_t tid = clone(child_fn, &child_stack[1024], CLONE_VM, &i); local
37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE)));
H A Dtime_test.cpp567 pid_t tid; member in struct:TimerDeleteData
574 tdd->tid = gettid();
606 while ((kill(tdd.tid, 0) != -1 || errno != ESRCH) && (time(NULL) - cur_time) < 5);
607 ASSERT_EQ(-1, kill(tdd.tid, 0));
H A Dutils.h126 static inline void WaitUntilThreadSleep(std::atomic<pid_t>& tid) { argument
127 while (tid == 0) {
130 std::string filename = android::base::StringPrintf("/proc/%d/stat", tid.load());
H A Dunistd_test.cpp481 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid)
615 uint64_t tid = GetTidForTest(); local
616 return reinterpret_cast<void*>(tid);
H A Dpthread_test.cpp892 std::atomic<pid_t> tid; member in struct:RwlockWakeupHelperArg
900 arg->tid = gettid();
917 wakeup_arg.tid = 0;
924 WaitUntilThreadSleep(wakeup_arg.tid);
966 wakeup_arg.tid = 0;
973 WaitUntilThreadSleep(wakeup_arg.tid);
1011 arg->tid = gettid();
1040 wakeup_arg.tid = 0;
1048 WaitUntilThreadSleep(wakeup_arg.tid);
1077 wakeup_arg.tid
1112 std::atomic<pid_t>& tid; member in struct:RwlockKindTestHelper::ThreadArg
1114 ThreadArg(RwlockKindTestHelper* helper, std::atomic<pid_t>& tid) argument
1130 CreateWriterThread(pthread_t& thread, std::atomic<pid_t>& tid) argument
1137 CreateReaderThread(pthread_t& thread, std::atomic<pid_t>& tid) argument
1935 std::atomic<pid_t> tid; member in class:MutexWakeupHelper
1988 GetThreadPriority(pid_t tid) argument
2431 std::atomic<int> tid; member in struct:BarrierDestroyTestArg
[all...]
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_l2tp.h27 __u32 tid; member in struct:xt_l2tp_info
/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp2171 static pid_t tid = 0; local
2174 tid = gettid();
2181 std::string expected = android::base::StringPrintf("%d: malloc %p 100\n", tid, pointer);
2182 expected += android::base::StringPrintf("%d: free %p\n", tid, pointer);
2183 expected += android::base::StringPrintf("%d: thread_done 0x0\n", tid);
/bionic/libc/async_safe/
H A Dasync_safe_log.cpp488 uint16_t tid = gettid(); local
489 vec[1].iov_base = &tid;
490 vec[1].iov_len = sizeof(tid);
/bionic/libc/kernel/uapi/linux/
H A Di2o-dev.h54 unsigned int tid; member in struct:i2o_cmd_psetget
72 unsigned int tid; member in struct:i2o_html
82 unsigned int tid; member in struct:i2o_evt_id
167 __u32 tid : 12; member in struct:_i2o_lct_entry
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Di2o-dev.h54 unsigned int tid; member in struct:i2o_cmd_psetget
72 unsigned int tid; member in struct:i2o_html
82 unsigned int tid; member in struct:i2o_evt_id
167 __u32 tid : 12; member in struct:_i2o_lct_entry

Completed in 6366 milliseconds

12