Home
last modified time | relevance | path

Searched refs:curthread (Results 1 – 25 of 716) sorted by relevance

12345678910>>...29

/freebsd-13.1/lib/libthr/thread/
H A Dthr_syscalls.c103 struct pthread *curthread; in __thr_accept() local
121 struct pthread *curthread; in __thr_accept4() local
136 struct pthread *curthread; in __thr_aio_suspend() local
157 struct pthread *curthread; in __thr_close() local
175 struct pthread *curthread; in __thr_connect() local
196 struct pthread *curthread; in __thr_fcntl() local
221 struct pthread *curthread; in __thr_fsync() local
235 struct pthread *curthread; in __thr_fdatasync() local
253 struct pthread *curthread; in __thr_msync() local
268 struct pthread *curthread; in __thr_clock_nanosleep() local
[all …]
H A Dthr_suspend_np.c89 _single_thread = curthread; in _thr_suspend_all_lock()
115 curthread->no_cancel = 1; in _pthread_suspend_all_np()
116 _thr_suspend_all_lock(curthread); in _pthread_suspend_all_np()
117 THREAD_LIST_RDLOCK(curthread); in _pthread_suspend_all_np()
119 if (thread != curthread) { in _pthread_suspend_all_np()
131 if (thread != curthread) { in _pthread_suspend_all_np()
136 THREAD_LIST_UNLOCK(curthread); in _pthread_suspend_all_np()
138 THR_REF_ADD(curthread, thread); in _pthread_suspend_all_np()
144 THREAD_LIST_RDLOCK(curthread); in _pthread_suspend_all_np()
155 THREAD_LIST_UNLOCK(curthread); in _pthread_suspend_all_np()
[all …]
H A Dthr_sig.c100 curthread->sigblock++; in thr_signal_block_slow()
104 curthread->sigblock++; in thr_signal_block_slow()
200 check_suspend(curthread); in sigcancel_handler()
214 struct pthread *curthread; in thr_sighandler() local
328 check_suspend(curthread); in _thr_ast()
339 !curthread->cancel_enable || curthread->no_cancel)) in check_cancel()
433 THR_UMUTEX_LOCK(curthread, &(curthread)->lock); in check_suspend()
435 curthread->cycle++; in check_suspend()
448 THR_UMUTEX_UNLOCK(curthread, &(curthread)->lock); in check_suspend()
450 THR_UMUTEX_LOCK(curthread, &(curthread)->lock); in check_suspend()
[all …]
H A Dthr_cancel.c60 testcancel(curthread); in _thr_testcancel()
98 if (curthread->cancel_async) in _thr_setcancelstate()
99 testcancel(curthread); in _thr_setcancelstate()
122 testcancel(curthread); in _thr_setcanceltype()
141 struct pthread *curthread; in _Tthr_testcancel() local
145 testcancel(curthread); in _Tthr_testcancel()
151 curthread->cancel_point = 1; in _thr_cancel_enter()
152 testcancel(curthread); in _thr_cancel_enter()
158 curthread->cancel_point = 1; in _thr_cancel_enter2()
162 thr_wake(curthread->tid); in _thr_cancel_enter2()
[all …]
H A Dthr_list.c105 THREAD_LIST_WRLOCK(curthread); in _thr_gc()
117 THREAD_LIST_UNLOCK(curthread); in _thr_gc()
130 _thr_free(curthread, td); in _thr_gc()
140 if (curthread != NULL) { in _thr_alloc()
142 _thr_gc(curthread); in _thr_alloc()
171 if (curthread != NULL) { in _thr_alloc()
198 if (curthread != NULL) { in _thr_free()
238 THREAD_LIST_WRLOCK(curthread); in _thr_link()
240 THREAD_LIST_UNLOCK(curthread); in _thr_link()
250 THREAD_LIST_WRLOCK(curthread); in _thr_unlink()
[all …]
H A Dthr_malloc.c66 if (curthread == NULL) in thr_malloc_lock()
68 curthread->locklevel++; in thr_malloc_lock()
69 curtid = TID(curthread); in thr_malloc_lock()
80 if (curthread == NULL) in thr_malloc_unlock()
86 curthread->locklevel--; in thr_malloc_unlock()
87 _thr_ast(curthread); in thr_malloc_unlock()
93 struct pthread *curthread; in __thr_calloc() local
97 thr_malloc_lock(curthread); in __thr_calloc()
106 struct pthread *curthread; in __thr_free() local
117 struct pthread *curthread; in __thr_malloc() local
[all …]
H A Dthr_exit.c218 if (curthread->cancelling)
224 curthread->cancelling = 1;
225 curthread->no_cancel = 1;
240 curthread->ret = status;
284 free(curthread->name);
285 curthread->name = NULL;
304 THR_LOCK(curthread);
307 curthread->cycle++;
310 if (!curthread->force_exit && SHOULD_REPORT_EVENT(curthread, TD_DEATH))
316 curthread->refcount--;
[all …]
H A Dthr_spec.c62 struct pthread *curthread; in _thr_key_create() local
67 curthread = _get_curthread(); in _thr_key_create()
90 struct pthread *curthread; in _thr_key_delete() local
96 curthread = _get_curthread(); in _thr_key_delete()
111 struct pthread *curthread; in _thread_cleanupspecific() local
116 curthread = _get_curthread(); in _thread_cleanupspecific()
117 if (curthread->specific == NULL) in _thread_cleanupspecific()
161 __thr_free(curthread->specific); in _thread_cleanupspecific()
162 curthread->specific = NULL; in _thread_cleanupspecific()
231 struct pthread *curthread; in _thr_tsd_unload() local
[all …]
H A Dthr_cond.c209 struct pthread *curthread; in cond_wait_kernel() local
281 struct pthread *curthread; in cond_wait_user() local
290 _thr_testcancel(curthread); in cond_wait_user()
300 curthread->mutex_obj = mp; in cond_wait_user()
301 _sleepq_add(cvp, curthread); in cond_wait_user()
303 _thr_clear_wake(curthread); in cond_wait_user()
346 curthread->mutex_obj = NULL; in cond_wait_user()
465 curthread->defer_waiters[curthread->nwaiter_defer++] = in cond_signal_common()
478 struct pthread *curthread; member
488 struct pthread *curthread = ba->curthread; in drop_cb() local
[all …]
H A Dthr_fork.c85 struct pthread *curthread; in _thr_atfork() local
93 curthread = _get_curthread(); in _thr_atfork()
97 THR_CRITICAL_ENTER(curthread); in _thr_atfork()
109 struct pthread *curthread; in __pthread_cxa_finalize() local
114 curthread = _get_curthread(); in __pthread_cxa_finalize()
149 struct pthread *curthread; in thr_fork_impl() local
168 curthread = _get_curthread(); in thr_fork_impl()
170 curthread->no_cancel = 1; in thr_fork_impl()
182 _thr_signal_block(curthread); in thr_fork_impl()
237 thr_self(&curthread->tid); in thr_fork_impl()
[all …]
H A Dthr_rtld.c116 struct pthread *curthread; in _thr_rtld_rlock_acquire() local
120 curthread = _get_curthread(); in _thr_rtld_rlock_acquire()
127 curthread->rdlock_count++; in _thr_rtld_rlock_acquire()
134 struct pthread *curthread; in _thr_rtld_wlock_acquire() local
138 curthread = _get_curthread(); in _thr_rtld_wlock_acquire()
151 struct pthread *curthread; in _thr_rtld_lock_release() local
156 curthread = _get_curthread(); in _thr_rtld_lock_release()
163 curthread->rdlock_count--; in _thr_rtld_lock_release()
195 struct pthread *curthread; in _thr_dlerror_loc() local
204 struct pthread *curthread; in _thr_dlerror_seen() local
[all …]
H A Dthr_event.c47 curthread->event_buf.event = TD_CREATE; in _thr_report_creation()
49 curthread->event_buf.data = 0; in _thr_report_creation()
50 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_creation()
51 _thread_last_event = curthread; in _thr_report_creation()
54 THR_UMUTEX_UNLOCK(curthread, &_thr_event_lock); in _thr_report_creation()
58 _thr_report_death(struct pthread *curthread) in _thr_report_death() argument
60 curthread->event_buf.event = TD_DEATH; in _thr_report_death()
61 curthread->event_buf.th_p = (uintptr_t)curthread; in _thr_report_death()
62 curthread->event_buf.data = 0; in _thr_report_death()
63 THR_UMUTEX_LOCK(curthread, &_thr_event_lock); in _thr_report_death()
[all …]
H A Dthr_create.c79 curthread = _get_curthread(); in _pthread_create()
111 _thr_free(curthread, new_thread); in _pthread_create()
142 _thr_link(curthread, new_thread); in _pthread_create()
259 set = curthread->sigmask; in thread_start()
267 THR_LOCK(curthread); in thread_start()
268 THR_UNLOCK(curthread); in thread_start()
270 if (curthread->force_exit) in thread_start()
276 _thr_ast(curthread); in thread_start()
287 curthread->unwind_stackend = (char *)curthread->attr.stackaddr_attr + in thread_start()
288 curthread->attr.stacksize_attr; in thread_start()
[all …]
H A Dthr_resume_np.c59 THR_THREAD_UNLOCK(curthread, thread); in _pthread_resume_np()
71 old_nocancel = curthread->no_cancel; in _pthread_resume_all_np()
72 curthread->no_cancel = 1; in _pthread_resume_all_np()
73 _thr_suspend_all_lock(curthread); in _pthread_resume_all_np()
75 THREAD_LIST_RDLOCK(curthread); in _pthread_resume_all_np()
78 if (thread != curthread) { in _pthread_resume_all_np()
79 THR_THREAD_LOCK(curthread, thread); in _pthread_resume_all_np()
86 THREAD_LIST_UNLOCK(curthread); in _pthread_resume_all_np()
87 _thr_suspend_all_unlock(curthread); in _pthread_resume_all_np()
88 curthread->no_cancel = old_nocancel; in _pthread_resume_all_np()
[all …]
H A Dthr_mutex.c207 curthread->inact_mtx = 0; in _mutex_leave_robust()
228 if (curthread == NULL) in mutex_init_robust()
455 queue_fork(curthread, &curthread->mq[TMQ_NORM], in _mutex_fork()
457 queue_fork(curthread, &curthread->mq[TMQ_NORM_PP], in _mutex_fork()
459 queue_fork(curthread, &curthread->mq[TMQ_ROBUST_PP], in _mutex_fork()
620 struct pthread *curthread; in __Tthr_mutex_trylock() local
629 id = TID(curthread); in __Tthr_mutex_trylock()
656 id = TID(curthread); in mutex_lock_sleep()
721 struct pthread *curthread; in mutex_lock_common() local
816 struct pthread *curthread; in _mutex_cv_attach() local
[all …]
H A Dthr_join.c54 THR_THREAD_LOCK(curthread, pthread); in backout_join()
56 THR_THREAD_UNLOCK(curthread, pthread); in backout_join()
99 if (pthread == curthread) in join_common()
127 pthread->joiner = curthread; in join_common()
129 THR_THREAD_UNLOCK(curthread, pthread); in join_common()
132 _thr_cancel_enter(curthread); in join_common()
136 _thr_testcancel(curthread); in join_common()
152 _thr_cancel_leave(curthread, 0); in join_common()
153 THR_CLEANUP_POP(curthread, 0); in join_common()
156 THR_THREAD_LOCK(curthread, pthread); in join_common()
[all …]
H A Dthr_pshared.c68 curthread->locklevel++; in pshared_rlock()
76 curthread->locklevel++; in pshared_wlock()
85 curthread->locklevel--; in pshared_unlock()
86 _thr_ast(curthread); in pshared_unlock()
106 pshared_wlock(curthread); in pshared_gc()
119 pshared_unlock(curthread); in pshared_gc()
214 struct pthread *curthread; in __thr_pshared_offpage() local
219 pshared_rlock(curthread); in __thr_pshared_offpage()
232 pshared_wlock(curthread); in __thr_pshared_offpage()
249 pshared_wlock(curthread); in __thr_pshared_destroy()
[all …]
H A Dthr_info.c63 struct pthread *curthread; in _pthread_setname_np() local
74 curthread = _get_curthread(); in _pthread_setname_np()
75 if (curthread == thread) { in _pthread_setname_np()
77 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np()
82 THR_THREAD_UNLOCK(curthread, thread); in _pthread_setname_np()
94 THR_THREAD_UNLOCK(curthread, thread); in _pthread_setname_np()
123 struct pthread *curthread; in _pthread_getname_np() local
127 curthread = _get_curthread(); in _pthread_getname_np()
128 if (curthread == thread) { in _pthread_getname_np()
129 THR_THREAD_LOCK(curthread, thread); in _pthread_getname_np()
[all …]
H A Dthr_clean.c62 struct pthread *curthread = _get_curthread(); in __thr_cleanup_push_imp() local
69 newbuf->prev = curthread->cleanup; in __thr_cleanup_push_imp()
70 curthread->cleanup = newbuf; in __thr_cleanup_push_imp()
76 struct pthread *curthread = _get_curthread(); in __thr_cleanup_pop_imp() local
79 if ((old = curthread->cleanup) != NULL) { in __thr_cleanup_pop_imp()
80 curthread->cleanup = old->prev; in __thr_cleanup_pop_imp()
91 struct pthread *curthread = _get_curthread(); in _thr_cleanup_push() local
94 curthread->unwind_disabled = 1; in _thr_cleanup_push()
101 newbuf->prev = curthread->cleanup; in _thr_cleanup_push()
102 curthread->cleanup = newbuf; in _thr_cleanup_push()
H A Dthr_barrier.c51 struct pthread *curthread; in _pthread_barrier_destroy() local
68 curthread = _get_curthread(); in _pthread_barrier_destroy()
69 THR_UMUTEX_LOCK(curthread, &bar->b_lock); in _pthread_barrier_destroy()
71 THR_UMUTEX_UNLOCK(curthread, &bar->b_lock); in _pthread_barrier_destroy()
78 THR_UMUTEX_UNLOCK(curthread, &bar->b_lock); in _pthread_barrier_destroy()
83 THR_UMUTEX_LOCK(curthread, &bar->b_lock); in _pthread_barrier_destroy()
88 THR_UMUTEX_UNLOCK(curthread, &bar->b_lock); in _pthread_barrier_destroy()
136 struct pthread *curthread; in _pthread_barrier_wait() local
151 curthread = _get_curthread(); in _pthread_barrier_wait()
152 THR_UMUTEX_LOCK(curthread, &bar->b_lock); in _pthread_barrier_wait()
[all …]
/freebsd-13.1/tools/sched/
H A Dschedgraph.d85 …exit\", attributes: prio:td\n", cpu, timestamp, curthread->td_proc->p_comm, curthread->td_name, cu…
90 …exit\", attributes: prio:td\n", cpu, timestamp, curthread->td_proc->p_comm, curthread->td_name, cu…
100 …, linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, curthread->td_proc->p_comm, curthread->td_name, cu…
105 …td_name, args[0]->td_tid, args[0]->td_priority, curthread->td_proc->p_comm, curthread->td_name, cu…
106 …: linkedto:\"%s/%s tid %d\"\n", cpu, timestamp, curthread->td_proc->p_comm, curthread->td_name, cu…
111 …td_name, args[0]->td_tid, args[0]->td_priority, curthread->td_proc->p_comm, curthread->td_name, cu…
120 / curthread->td_flags & TDF_IDLETD /
122 …tributes: prio:%d\n", cpu, timestamp, curthread->td_proc->p_comm, curthread->td_name, curthread->t…
126 / (curthread->td_flags & TDF_IDLETD) == 0 /
128curthread->td_proc->p_comm, curthread->td_name, curthread->td_tid, KTDSTATE[curthread], curthread-…
[all …]
/freebsd-13.1/sys/security/audit/
H A Daudit.h160 if (AUDITING_TD(curthread)) \
165 if (AUDITING_TD(curthread)) \
170 if (AUDITING_TD(curthread)) \
175 if (AUDITING_TD(curthread)) \
180 if (AUDITING_TD(curthread)) \
185 if (AUDITING_TD(curthread)) \
190 if (AUDITING_TD(curthread)) \
195 if (AUDITING_TD(curthread)) \
200 if (AUDITING_TD(curthread)) \
205 if (AUDITING_TD(curthread)) \
[all …]
/freebsd-13.1/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/
H A Dfasttrap_isa.c221 fill_regs(curthread, &r); in fasttrap_pid_getarg()
232 fill_regs(curthread, &r); in fasttrap_usdt_getarg()
344 fill_regs(curthread, &reg); in fasttrap_pid_probe()
363 curthread->t_dtrace_ft = 0; in fasttrap_pid_probe()
364 curthread->t_dtrace_pc = 0; in fasttrap_pid_probe()
365 curthread->t_dtrace_npc = 0; in fasttrap_pid_probe()
366 curthread->t_dtrace_scrpc = 0; in fasttrap_pid_probe()
517 set_regs(curthread, rp); in fasttrap_pid_probe()
530 curthread->t_dtrace_pc = 0; in fasttrap_return_probe()
531 curthread->t_dtrace_npc = 0; in fasttrap_return_probe()
[all …]
/freebsd-13.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/misc/
H A Dtst.roch.d46 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) /
50 (long long)curthread, pid, tid,
56 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) /
60 (long long) curthread, pid, tid,
68 (long long)curthread, pid, tid);
74 (long long)curthread, pid, tid, (int)arg1, (int)arg0);
80 (long long)curthread, pid, tid, arg0);
86 (long long) curthread, pid, tid, arg0);
/freebsd-13.1/sys/x86/cpufreq/
H A Dhwpstate_intel.c140 thread_lock(curthread); in intel_hwp_dump_sysctl_handler()
142 thread_unlock(curthread); in intel_hwp_dump_sysctl_handler()
188 thread_lock(curthread); in intel_hwp_dump_sysctl_handler()
189 sched_unbind(curthread); in intel_hwp_dump_sysctl_handler()
267 thread_lock(curthread); in sysctl_epp_select()
326 thread_lock(curthread); in sysctl_epp_select()
327 sched_unbind(curthread); in sysctl_epp_select()
382 thread_lock(curthread); in set_autonomous_hwp()
470 thread_lock(curthread); in set_autonomous_hwp()
590 thread_lock(curthread); in intel_hwpstate_resume()
[all …]

12345678910>>...29