/bionic/libc/bionic/ |
H A D | gettid.cpp | 37 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 D | pthread_getcpuclockid.cpp | 34 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 D | raise.cpp | 38 pid_t tid = syscall(__NR_gettid); local 39 return tgkill(pid, tid, sig);
|
H A D | pthread_kill.cpp | 38 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 D | abort.cpp | 37 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 D | pthread_getschedparam.cpp | 37 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 D | pthread_join.cpp | 55 pid_t tid = thread->tid; local 56 volatile int* tid_ptr = &thread->tid; 63 __futex_wait(tid_ptr, tid, NULL);
|
H A D | pthread_setschedparam.cpp | 38 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, ¶m) == -1) ? errno : 0;
|
H A D | pthread_internal.h | 68 pid_t tid; member in class:pthread_internal_t
|
H A D | ndk_cruft.cpp | 232 int tkill(pid_t tid, int sig) { argument 233 return syscall(__NR_tkill, tid, sig);
|
H A D | pthread_mutex.cpp | 150 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 D | xt_l2tp.h | 27 __u32 tid; member in struct:xt_l2tp_info
|
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/netfilter/ |
H A D | xt_l2tp.h | 27 __u32 tid; member in struct:xt_l2tp_info
|
/bionic/tests/ |
H A D | stack_protector_test.cpp | 43 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 D | leak_test.cpp | 130 struct thread_data { pthread_barrier_t* barrier; pid_t* tid; } threads[kThreadCount] = {}; member in struct:thread_data 141 *data->tid = gettid();
|
H A D | sched_test.cpp | 34 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 D | time_test.cpp | 567 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 D | utils.h | 126 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 D | unistd_test.cpp | 481 EXPECT_EQ(getpid(), GetTidForTest()) << "real tid is " << syscall(__NR_gettid) 615 uint64_t tid = GetTidForTest(); local 616 return reinterpret_cast<void*>(tid);
|
H A D | pthread_test.cpp | 892 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 D | xt_l2tp.h | 27 __u32 tid; member in struct:xt_l2tp_info
|
/bionic/libc/malloc_debug/tests/ |
H A D | malloc_debug_unit_tests.cpp | 2171 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 D | async_safe_log.cpp | 488 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 D | i2o-dev.h | 54 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 D | i2o-dev.h | 54 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
|