Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 80) sorted by relevance

1234

/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-clone2-internal.c47 pid_t tid = gettid (); in f() local
53 if (write (pipefd[1], &tid, sizeof tid) != sizeof (tid)) in f()
91 pid_t ppid, pid, tid; in do_test() local
102 if (read (pipefd[0], &tid, sizeof tid) != sizeof tid) in do_test()
115 if ((ppid != own_pid) || (pid == own_pid) || (tid == own_tid)) in do_test()
117 (int)ppid, (int)pid, (int)tid, (int)own_pid, (int)own_tid); in do_test()
Dtst-clone2.c47 pid_t tid = syscall (__NR_gettid); in f() local
53 if (write (pipefd[1], &tid, sizeof tid) != sizeof (tid)) in f()
96 pid_t ppid, pid, tid; in do_test() local
107 if (read (pipefd[0], &tid, sizeof tid) != sizeof tid) in do_test()
122 if ((ppid != own_pid) || (pid == own_pid) || (tid == own_tid)) in do_test()
124 (int)ppid, (int)pid, (int)tid, (int)own_pid, (int)own_tid); in do_test()
Dtst-clone3.c79 pid_t tid; in do_test() local
85 tid = __clone2 (f, st, sizeof (st), clone_flags, NULL, /* ptid */ NULL, in do_test()
89 tid = clone (f, st + sizeof (st), clone_flags, NULL, /* ptid */ NULL, in do_test()
92 tid = clone (f, st, clone_flags, NULL, /* ptid */ NULL, /* tls */ NULL, in do_test()
98 if (tid == -1) in do_test()
Dtst-tgkill.c42 pid_t tid; member
56 TEST_COMPARE (tgkill (getpid (), ids->tid, SIGUSR2), -1); in subprocess_no_tid_match()
102 .tid = gettid (), in threadfunc()
109 .tid = getpid (), in threadfunc()
Dtst-clone3-internal.c79 pid_t tid; in do_test() local
89 tid = __clone_internal (&clone_args, f, NULL); in do_test()
90 if (tid == -1) in do_test()
/glibc-2.36/elf/
Dpldd.c135 pid_t tid; in main() member
154 long int tid = strtol (d->d_name, &endp, 10); in main() local
155 if (tid < 0 || (tid == ULONG_MAX && errno == ERANGE) || *endp != '\0' in main()
156 || (sizeof (pid_t) < sizeof (pid) && tid > INT_MAX)) in main()
160 if (ptrace (PTRACE_ATTACH, tid, NULL, NULL) != 0) in main()
165 if (errno == ESRCH && tid != pid) in main()
169 tid); in main()
172 wait_for_ptrace_stop (tid); in main()
175 newp->tid = tid; in main()
189 ptrace (PTRACE_DETACH, thread_list->tid, NULL, NULL); in main()
/glibc-2.36/nptl/
Dpthread_mutex_unlock.c84 if (mutex->__data.__owner != THREAD_GETMEM (THREAD_SELF, tid)) in __pthread_mutex_unlock_usercnt()
99 if (mutex->__data.__owner != THREAD_GETMEM (THREAD_SELF, tid) in __pthread_mutex_unlock_usercnt()
119 == THREAD_GETMEM (THREAD_SELF, tid) in libc_hidden_def()
130 if (mutex->__data.__owner != THREAD_GETMEM (THREAD_SELF, tid)) in libc_hidden_def()
143 != THREAD_GETMEM (THREAD_SELF, tid) in libc_hidden_def()
195 if (mutex->__data.__owner != THREAD_GETMEM (THREAD_SELF, tid)) in libc_hidden_def()
206 == THREAD_GETMEM (THREAD_SELF, tid) in libc_hidden_def()
217 if (mutex->__data.__owner != THREAD_GETMEM (THREAD_SELF, tid)) in libc_hidden_def()
233 != THREAD_GETMEM (THREAD_SELF, tid) in libc_hidden_def()
290 || (l != THREAD_GETMEM (THREAD_SELF, tid))) in libc_hidden_def()
[all …]
Dpthread_join_common.c93 pid_t tid; in __pthread_clockjoin_ex() local
94 while ((tid = atomic_load_acquire (&pd->tid)) != 0) in __pthread_clockjoin_ex()
103 (unsigned int *) &pd->tid, tid, clockid, abstime, LLL_SHARED); in __pthread_clockjoin_ex()
118 pd->tid = -1; in __pthread_clockjoin_ex()
Dpthread_sigqueue.c36 pid_t tid = atomic_forced_read (pd->tid); in __pthread_sigqueue() local
37 if (__glibc_unlikely (tid <= 0)) in __pthread_sigqueue()
58 int val = INTERNAL_SYSCALL_CALL (rt_tgsigqueueinfo, pid, tid, signo, in __pthread_sigqueue()
Dpthread_create.c288 .pidfd = (uintptr_t) &pd->tid, in create_thread()
289 .parent_tid = (uintptr_t) &pd->tid, in create_thread()
290 .child_tid = (uintptr_t) &pd->tid, in create_thread()
311 int res = INTERNAL_SYSCALL_CALL (sched_setaffinity, pd->tid, in create_thread()
323 int res = INTERNAL_SYSCALL_CALL (sched_setscheduler, pd->tid, in create_thread()
854 pid_t tid; in __pthread_create_2_1() local
855 while ((tid = atomic_load_acquire (&pd->tid)) != 0) in __pthread_create_2_1()
856 __futex_abstimed_wait_cancelable64 ((unsigned int *) &pd->tid, in __pthread_create_2_1()
857 tid, 0, NULL, LLL_SHARED); in __pthread_create_2_1()
Dtpp.c127 if (__sched_getparam (self->tid, &self->schedparam) != 0) in libc_hidden_def()
135 self->schedpolicy = __sched_getscheduler (self->tid); in libc_hidden_def()
150 if (__sched_setscheduler (self->tid, self->schedpolicy, &sp) < 0) in libc_hidden_def()
176 if (__sched_getparam (self->tid, &self->schedparam) != 0) in libc_hidden_def()
184 self->schedpolicy = __sched_getscheduler (self->tid); in libc_hidden_def()
Dpthread_kill.c42 pid_t tid = INTERNAL_SYSCALL_CALL (gettid); in __pthread_kill_implementation() local
43 int ret = INTERNAL_SYSCALL_CALL (tgkill, __getpid (), tid, signo); in __pthread_kill_implementation()
62 ret = INTERNAL_SYSCALL_CALL (tgkill, __getpid (), pd->tid, signo); in __pthread_kill_implementation()
/glibc-2.36/htl/tests/
Dtest-2.c38 pthread_t tid; in main() local
41 err = pthread_create (&tid, 0, thread, 0); in main()
45 err = pthread_detach (tid); in main()
49 err = pthread_detach (tid); in main()
52 err = pthread_join (tid, &ret); in main()
Dtest-8.c53 pthread_t tid[THREADS]; in main() local
57 err = pthread_create (&tid[i], 0, thr, 0); in main()
68 err = pthread_join (tid[i], &ret); in main()
Dtest-5.c63 pthread_t tid; in main() local
66 err = pthread_create (&tid, 0, thr, 0); in main()
70 err = pthread_join (tid, &ret); in main()
Dtest-1.c44 pthread_t tid[THREADS]; in main() local
51 err = pthread_create (&tid[i], 0, foo, &mutex[i]); in main()
61 err = pthread_join (tid[i], &ret); in main()
Dtest-4.c59 pthread_t tid; in main() local
76 err = pthread_create (&tid, &attr, thr, 0); in main()
82 err = pthread_join (tid, &ret); in main()
Dtest-7.c57 pthread_t tid[THREADS]; in main() local
72 err = pthread_create (&tid[i], 0, thr, 0); in main()
81 err = pthread_join (tid[i], &ret); in main()
Dtest-__pthread_destroy_specific-skip.c85 pthread_t tid; in main() local
88 err = pthread_create (&tid, 0, test, NULL); in main()
92 err = pthread_join (tid, NULL); in main()
/glibc-2.36/sysdeps/powerpc/
Dtest-get_hwcap.c51 uint64_t check_tcbhwcap (long tid) in check_tcbhwcap() argument
113 PRIx64 " for thread %ld.\n", tcb_hwcap, hwcap, tid); in check_tcbhwcap()
128 " for thread %ld\n", tcb_at_platform, at_platform, tid); in check_tcbhwcap()
135 void *t1 (void *tid) in t1() argument
137 if (check_tcbhwcap ((long) tid)) in t1()
139 pthread_exit (tid); in t1()
/glibc-2.36/nptl_db/
Dtd_thr_get_info.c30 psaddr_t tls, schedpolicy, schedprio, cancelhandling, tid, report_events; in td_thr_get_info() local
42 tid = 0; in td_thr_get_info()
75 err = DB_GET_FIELD_LOCAL (tid, th->th_ta_p, copy, pthread, tid, 0); in td_thr_get_info()
108 infop->ti_lid = tid == 0 ? ps_getpid (th->th_ta_p->ph) : (uintptr_t) tid; in td_thr_get_info()
Dtd_thr_setgregs.c25 psaddr_t cancelhandling, tid; in td_thr_setgregs() local
44 err = DB_GET_FIELD (tid, th->th_ta_p, th->th_unique, pthread, tid, 0); in td_thr_setgregs()
48 if (ps_lsetregs (th->th_ta_p->ph, tid - (psaddr_t) 0, gregs) != PS_OK) in td_thr_setgregs()
Dtd_thr_setfpregs.c25 psaddr_t cancelhandling, tid; in td_thr_setfpregs() local
44 err = DB_GET_FIELD (tid, th->th_ta_p, th->th_unique, pthread, tid, 0); in td_thr_setfpregs()
48 if (ps_lsetfpregs (th->th_ta_p->ph, (uintptr_t) tid, fpregs) != PS_OK) in td_thr_setfpregs()
Dtd_thr_getgregs.c25 psaddr_t cancelhandling, tid; in td_thr_getgregs() local
47 err = DB_GET_FIELD (tid, th->th_ta_p, th->th_unique, pthread, tid, 0); in td_thr_getgregs()
51 if (ps_lgetregs (th->th_ta_p->ph, (uintptr_t) tid, regset) != PS_OK) in td_thr_getgregs()
Dtd_thr_getfpregs.c25 psaddr_t cancelhandling, tid; in td_thr_getfpregs() local
47 err = DB_GET_FIELD (tid, th->th_ta_p, th->th_unique, pthread, tid, 0); in td_thr_getfpregs()
51 if (ps_lgetfpregs (th->th_ta_p->ph, (uintptr_t) tid, regset) != PS_OK) in td_thr_getfpregs()

1234