/nptl/ |
A D | nptl-printers.py | 62 self.values = [] 63 self.read_values() 65 def to_string(self): argument 73 def children(self): argument 88 self.read_type() 93 def read_type(self): argument 137 self.values.append(('Owner ID', '%d (dead)' % self.owner)) 139 self.values.append(('Owner ID', self.lock & FUTEX_TID_MASK)) 225 self.values.append(('Times acquired by the owner', self.count)) 261 def children(self): argument [all …]
|
A D | tpp.c | 55 struct pthread *self = THREAD_SELF; in libc_hidden_def() local 80 THREAD_SETMEM (self, tpp, tpp); in libc_hidden_def() 127 if (__sched_getparam (self->tid, &self->schedparam) != 0) in libc_hidden_def() 130 self->flags |= ATTR_FLAG_SCHED_SET; in libc_hidden_def() 135 self->schedpolicy = __sched_getscheduler (self->tid); in libc_hidden_def() 136 if (self->schedpolicy == -1) 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() 179 self->flags |= ATTR_FLAG_SCHED_SET; in libc_hidden_def() 184 self->schedpolicy = __sched_getscheduler (self->tid); in libc_hidden_def() [all …]
|
A D | cancellation.c | 32 struct pthread *self = THREAD_SELF; in __pthread_enable_asynccancel() local 34 int oldval = THREAD_GETMEM (self, canceltype); in __pthread_enable_asynccancel() 35 THREAD_SETMEM (self, canceltype, PTHREAD_CANCEL_ASYNCHRONOUS); in __pthread_enable_asynccancel() 37 int ch = THREAD_GETMEM (self, cancelhandling); in __pthread_enable_asynccancel() 39 if (self->cancelstate == PTHREAD_CANCEL_ENABLE in __pthread_enable_asynccancel() 44 THREAD_SETMEM (self, result, PTHREAD_CANCELED); in __pthread_enable_asynccancel() 62 struct pthread *self = THREAD_SELF; in libc_hidden_def() local 63 self->canceltype = PTHREAD_CANCEL_DEFERRED; in libc_hidden_def()
|
A D | libc-cleanup.c | 25 struct pthread *self = THREAD_SELF; in __libc_cleanup_push_defer() local 27 buffer->__prev = THREAD_GETMEM (self, cleanup); in __libc_cleanup_push_defer() 30 buffer->__canceltype = THREAD_GETMEM (self, canceltype); in __libc_cleanup_push_defer() 31 THREAD_SETMEM (self, canceltype, PTHREAD_CANCEL_DEFERRED); in __libc_cleanup_push_defer() 33 THREAD_SETMEM (self, cleanup, buffer); in __libc_cleanup_push_defer() 40 struct pthread *self = THREAD_SELF; in libc_hidden_def() local 42 THREAD_SETMEM (self, cleanup, buffer->__prev); in libc_hidden_def() 44 THREAD_SETMEM (self, canceltype, buffer->__canceltype); in libc_hidden_def()
|
A D | cleanup_defer.c | 27 struct pthread *self = THREAD_SELF; in ___pthread_register_cancel_defer() local 30 ibuf->priv.data.prev = THREAD_GETMEM (self, cleanup_jmp_buf); in ___pthread_register_cancel_defer() 31 ibuf->priv.data.cleanup = THREAD_GETMEM (self, cleanup); in ___pthread_register_cancel_defer() 34 ibuf->priv.data.canceltype = THREAD_GETMEM (self, canceltype); in ___pthread_register_cancel_defer() 35 THREAD_SETMEM (self, canceltype, PTHREAD_CANCEL_DEFERRED); in ___pthread_register_cancel_defer() 38 THREAD_SETMEM (self, cleanup_jmp_buf, (struct pthread_unwind_buf *) buf); in ___pthread_register_cancel_defer() 52 struct pthread *self = THREAD_SELF; in ___pthread_unregister_cancel_restore() local 55 THREAD_SETMEM (self, cleanup_jmp_buf, ibuf->priv.data.prev); in ___pthread_unregister_cancel_restore() 57 THREAD_SETMEM (self, canceltype, ibuf->priv.data.canceltype); in ___pthread_unregister_cancel_restore()
|
A D | nptl_deallocate_tsd.c | 24 struct pthread *self = THREAD_SELF; in __nptl_deallocate_tsd() local 28 if (THREAD_GETMEM (self, specific_used)) in __nptl_deallocate_tsd() 39 THREAD_SETMEM (self, specific_used, false); in __nptl_deallocate_tsd() 45 level2 = THREAD_GETMEM_NC (self, specific, cnt); in __nptl_deallocate_tsd() 81 if (THREAD_GETMEM (self, specific_used) == 0) in __nptl_deallocate_tsd() 90 sizeof (self->specific_1stblock)); in __nptl_deallocate_tsd() 98 level2 = THREAD_GETMEM_NC (self, specific, cnt); in __nptl_deallocate_tsd() 104 THREAD_SETMEM_NC (self, specific, cnt, NULL); in __nptl_deallocate_tsd() 108 THREAD_SETMEM (self, specific_used, false); in __nptl_deallocate_tsd()
|
A D | pthread_setcancelstate.c | 26 volatile struct pthread *self; in __pthread_setcancelstate() local 31 self = THREAD_SELF; in __pthread_setcancelstate() 34 *oldstate = self->cancelstate; in __pthread_setcancelstate() 35 self->cancelstate = state; in __pthread_setcancelstate()
|
A D | pthread_cleanup_upto.c | 26 struct pthread *self = THREAD_SELF; in __pthread_cleanup_upto() local 32 uintptr_t adj = (uintptr_t) self->stackblock + self->stackblock_size; in __pthread_cleanup_upto() 35 for (cbuf = THREAD_GETMEM (self, cleanup); in __pthread_cleanup_upto() 59 THREAD_SETMEM (self, cleanup, cbuf); in __pthread_cleanup_upto()
|
A D | pthread_testcancel.c | 25 struct pthread *self = THREAD_SELF; in ___pthread_testcancel() local 26 int cancelhandling = THREAD_GETMEM (self, cancelhandling); in ___pthread_testcancel() 27 if (self->cancelstate == PTHREAD_CANCEL_ENABLE in ___pthread_testcancel() 32 THREAD_SETMEM (self, result, PTHREAD_CANCELED); in ___pthread_testcancel()
|
A D | pthread_setspecific.c | 26 struct pthread *self; in ___pthread_setspecific() local 32 self = THREAD_SELF; in ___pthread_setspecific() 43 level2 = &self->specific_1stblock[key]; in ___pthread_setspecific() 47 THREAD_SETMEM (self, specific_used, true); in ___pthread_setspecific() 60 level2 = THREAD_GETMEM_NC (self, specific, idx1st); in ___pthread_setspecific() 74 THREAD_SETMEM_NC (self, specific, idx1st, level2); in ___pthread_setspecific() 81 THREAD_SETMEM (self, specific_used, true); in ___pthread_setspecific()
|
A D | pthread_join_common.c | 31 struct pthread *self = THREAD_SELF; in cleanup() local 32 atomic_compare_exchange_weak_acquire (&arg, &self, NULL); in cleanup() 52 struct pthread *self = THREAD_SELF; in __pthread_clockjoin_ex() local 57 if ((pd == self in __pthread_clockjoin_ex() 58 || (self->joinid == pd in __pthread_clockjoin_ex() 62 && !(self->cancelstate == PTHREAD_CANCEL_ENABLE in __pthread_clockjoin_ex() 78 &self, in __pthread_clockjoin_ex()
|
A D | pthread_setcanceltype.c | 29 volatile struct pthread *self = THREAD_SELF; in __pthread_setcanceltype() local 32 *oldtype = self->canceltype; in __pthread_setcanceltype() 33 self->canceltype = type; in __pthread_setcanceltype()
|
A D | cleanup_compat.c | 26 struct pthread *self = THREAD_SELF; in __pthread_cleanup_push() local 30 buffer->__prev = THREAD_GETMEM (self, cleanup); in __pthread_cleanup_push() 32 THREAD_SETMEM (self, cleanup, buffer); in __pthread_cleanup_push() 41 struct pthread *self __attribute ((unused)) = THREAD_SELF; in __pthread_cleanup_pop() 43 THREAD_SETMEM (self, cleanup, buffer->__prev); in __pthread_cleanup_pop()
|
A D | unwind.c | 45 struct pthread *self = THREAD_SELF; in unwind_stop() local 46 struct _pthread_cleanup_buffer *curp = THREAD_GETMEM (self, cleanup); in unwind_stop() 52 uintptr_t adj = (uintptr_t) self->stackblock + self->stackblock_size; in unwind_stop() 89 THREAD_SETMEM (self, cleanup, curp); in unwind_stop() 123 struct pthread *self = THREAD_SELF; in __cleanup_fct_attribute() local 127 THREAD_SETMEM (self, exc.exception_class, 0); in __cleanup_fct_attribute() 128 THREAD_SETMEM (self, exc.exception_cleanup, &unwind_cleanup); in __cleanup_fct_attribute() 130 _Unwind_ForcedUnwind (&self->exc, unwind_stop, ibuf); in __cleanup_fct_attribute()
|
A D | cleanup.c | 27 struct pthread *self = THREAD_SELF; in ___pthread_register_cancel() local 30 ibuf->priv.data.prev = THREAD_GETMEM (self, cleanup_jmp_buf); in ___pthread_register_cancel() 31 ibuf->priv.data.cleanup = THREAD_GETMEM (self, cleanup); in ___pthread_register_cancel() 34 THREAD_SETMEM (self, cleanup_jmp_buf, (struct pthread_unwind_buf *) buf); in ___pthread_register_cancel()
|
A D | tst-setgetname.c | 79 pthread_t self; in do_test() local 90 self = pthread_self (); in do_test() 91 res = pthread_getname_np (self, name, TASK_COMM_LEN); in do_test() 122 res = pthread_setname_np (self, NEW_NAME); in do_test() 153 res = pthread_getname_np (self, name, TASK_COMM_LEN); in do_test() 157 res = pthread_setname_np (self, BIG_NAME); in do_test() 208 res = pthread_setname_np (self, LONGEST_NAME); in do_test() 243 res = pthread_getname_np (self, name, strlen (LONGEST_NAME)); in do_test() 272 res = pthread_getname_np (self, name, strlen (LONGEST_NAME) + 1); in do_test()
|
A D | nptl_setxid.c | 77 struct pthread *self = THREAD_SELF; in __nptl_setxid_sighandler() local 81 flags = THREAD_GETMEM (self, cancelhandling); in __nptl_setxid_sighandler() 88 self->setxid_futex = 1; in __nptl_setxid_sighandler() 89 futex_wake (&self->setxid_futex, 1, FUTEX_PRIVATE); in __nptl_setxid_sighandler() 185 struct pthread *self = THREAD_SELF; in __nptl_setxid() local 192 if (t == self) in __nptl_setxid() 202 if (t == self) in __nptl_setxid() 218 if (t == self) in __nptl_setxid() 227 if (t == self) in __nptl_setxid() 248 if (t == self) in __nptl_setxid() [all …]
|
A D | pthread_cancel.c | 43 struct pthread *self = THREAD_SELF; in sigcancel_handler() local 45 int ch = atomic_load_relaxed (&self->cancelhandling); in sigcancel_handler() 47 if (self->cancelstate == PTHREAD_CANCEL_DISABLE in sigcancel_handler() 53 THREAD_SETMEM (self, result, PTHREAD_CANCELED); in sigcancel_handler() 55 if (self->canceltype == PTHREAD_CANCEL_ASYNCHRONOUS) in sigcancel_handler()
|
A D | pthread_create.c | 666 pd->header.self = pd; in __pthread_create_2_1() 680 struct pthread *self = THREAD_SELF; in __pthread_create_2_1() local 682 | (self->flags & (ATTR_FLAG_SCHED_SET | ATTR_FLAG_POLICY_SET))); in __pthread_create_2_1() 686 if ((int) THREAD_GETMEM_VOLATILE (self, rseq_area.cpu_id) >= 0) in __pthread_create_2_1() 695 pd->eventbuf = self->eventbuf; in __pthread_create_2_1() 700 pd->schedpolicy = self->schedpolicy; in __pthread_create_2_1() 701 pd->schedparam = self->schedparam; in __pthread_create_2_1()
|