/freebsd-src/sys/sys/ |
H A D | syscallsubr.h | 85 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg, 87 int kern_abort2(struct thread *td, const char *why, int nargs, 89 int kern_accept(struct thread *td, int s, struct sockaddr *sa, 91 int kern_accept4(struct thread *td, int s, struct sockaddr *sa, 93 int kern_accessat(struct thread *td, int fd, const char *path, 95 int kern_adjtime(struct thread *td, struct timeval *delta, 97 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa); 98 int kern_break(struct thread *td, uintptr_t *addr); 99 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, 101 int kern_cap_rights_limit(struct thread *t [all...] |
H A D | sched.h | 82 void sched_exit(struct proc *p, struct thread *childtd); 83 void sched_fork(struct thread *td, struct thread *childtd); 84 void sched_fork_exit(struct thread *td); 85 void sched_class(struct thread *td, int class); 93 void sched_exit_thread(struct thread *td, struct thread *child); 94 u_int sched_estcpu(struct thread *td); 95 void sched_fork_thread(struct thread *td, struct thread *child); 96 void sched_ithread_prio(struct thread *td, u_char prio); 97 void sched_lend_prio(struct thread *td, u_char prio); 98 void sched_lend_user_prio(struct thread *td, u_char pri); [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | thread.h | 1 //===-- llvm/Support/thread.h - Wrapper for <thread> ------------*- C++ -*-===// 9 // This header is a wrapper for <thread> that works around problems with the 10 // MSVC headers when exceptions are disabled. It also provides llvm::thread, 11 // which is either a typedef of std::thread or a replacement that calls the 30 #include <thread> 36 /// LLVM thread following std::thread interface with added constructor to 38 class thread { 72 thread() : Thread(native_handle_type()) {} in thread() function 73 thread(thread &&Other) noexcept in thread() function 74 : Thread(std::exchange(Other.Thread, native_handle_type())) {} in thread() [all …]
|
/freebsd-src/lib/libthr/thread/ |
H A D | thr_list.c | 74 static void thr_destroy(struct pthread *curthread, struct pthread *thread); 119 * XXX we don't free initial thread, because there might in _thr_gc() 120 * have some code referencing initial thread. in _thr_gc() 123 DBG_MSG("Initial thread won't be freed\n"); in _thr_gc() 134 struct pthread *thread = NULL; in _thr_alloc() local 142 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc() 143 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc() 149 if (thread == NULL) { in _thr_alloc() 153 thread = __thr_calloc(1, sizeof(struct pthread)); in _thr_alloc() 154 if (thread in _thr_alloc() 186 _thr_free(struct pthread * curthread,struct pthread * thread) _thr_free() argument 219 thr_destroy(struct pthread * curthread __unused,struct pthread * thread) thr_destroy() argument 233 _thr_link(struct pthread * curthread,struct pthread * thread) _thr_link() argument 245 _thr_unlink(struct pthread * curthread,struct pthread * thread) _thr_unlink() argument 254 _thr_hash_add(struct pthread * thread) _thr_hash_add() argument 263 _thr_hash_remove(struct pthread * thread) _thr_hash_remove() argument 269 _thr_hash_find(struct pthread * thread) _thr_hash_find() argument 288 _thr_ref_add(struct pthread * curthread,struct pthread * thread,int include_dead) _thr_ref_add() argument 308 _thr_ref_delete(struct pthread * curthread,struct pthread * thread) _thr_ref_delete() argument 318 _thr_try_gc(struct pthread * curthread,struct pthread * thread) _thr_try_gc() argument 339 _thr_find_thread(struct pthread * curthread,struct pthread * thread,int include_dead) _thr_find_thread() argument [all...] |
H A D | thr_suspend_np.c | 47 /* Suspend a thread: */ 49 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np() 54 /* Suspending the current thread doesn't make sense. */ in _pthread_suspend_np() 55 if (thread == _get_curthread()) in _pthread_suspend_np() 58 /* Add a reference to the thread: */ in _pthread_suspend_np() 59 else if ((ret = _thr_ref_add(curthread, thread, /*include dead*/0)) in _pthread_suspend_np() 62 THR_THREAD_LOCK(curthread, thread); in _pthread_suspend_np() 63 suspend_common(curthread, thread, 1); in _pthread_suspend_np() 65 THR_THREAD_UNLOCK(curthread, thread); in _pthread_suspend_np() 68 _thr_ref_delete(curthread, thread); in _pthread_suspend_np() 48 _pthread_suspend_np(pthread_t thread) _pthread_suspend_np() argument 107 struct pthread *thread; _pthread_suspend_all_np() local 159 suspend_common(struct pthread * curthread,struct pthread * thread,int waitok) suspend_common() argument [all...] |
H A D | thr_info.c | 47 thr_set_name_np(struct pthread *thread, char **tmp_name) in thr_set_name_np() argument 50 free(thread->name); in thr_set_name_np() 51 thread->name = *tmp_name; in thr_set_name_np() 55 /* Set the thread name. */ 58 _pthread_setname_np(pthread_t thread, const char *name) in _pthread_setname_np() argument 72 if (curthread == thread) { in _pthread_setname_np() 74 THR_THREAD_LOCK(curthread, thread); in _pthread_setname_np() 75 if (thr_set_name(thread->tid, name) == -1) in _pthread_setname_np() 78 thr_set_name_np(thread, &tmp_name); in _pthread_setname_np() 79 THR_THREAD_UNLOCK(curthread, thread); in _pthread_setname_np() [all …]
|
/freebsd-src/share/man/man4/ |
H A D | dtrace_sched.4 | 32 .Fn sched:::change-pri "struct thread *" "struct proc *" "uint8_t" 33 .Fn sched:::dequeue "struct thread *" "struct proc *" "void *" 34 .Fn sched:::enqueue "struct thread *" "struct proc *" "void *" "int" 35 .Fn sched:::lend-pri "struct thread *" "struct proc *" "uint8_t" "struct thread *" 37 .Fn sched:::off-cpu "struct thread *" "struct proc *" 41 .Fn sched:::surrender "struct thread *" "struct proc *" 43 .Fn sched:::tick "struct thread *" "struct proc *" 44 .Fn sched:::wakeup "struct thread *" "struct proc *" 53 probe fires when a thread's active scheduling priority is about to be updated. 54 The first two arguments are the thread whose priority is about to be changed, [all …]
|
/freebsd-src/share/man/man3/ |
H A D | pthread.3 | 36 .Nd POSIX thread functions 49 The POSIX thread functions are summarized in this section in the following 54 Thread Routines 64 Per-Thread Context Routines 70 extensions to the POSIX thread functions are summarized in 72 .Ss Thread Routines 77 .Fa "pthread_t *thread" "const pthread_attr_t *attr" 81 Creates a new thread of execution. 84 .Fn pthread_cancel "pthread_t thread" 86 Cancels execution of a thread. [all …]
|
H A D | pthread_np.3 | 29 .Nd FreeBSD extensions to POSIX thread functions 35 This manual page documents extensions to the POSIX thread functions. 38 The POSIX thread functions are summarized in this section in the following 43 Thread Routines 54 .\" Per-Thread Context Routines 57 .Ss Thread Routines 65 Get the CPU affinity of a specified thread. 68 .Fn pthread_get_name_np "pthread_t thread" "char *name" "size_t len" 70 Get the name of a specified thread. 73 .Fn pthread_getname_np "pthread_t thread" "char *name" "size_t len" [all …]
|
H A D | pthread_join.3 | 38 .Nd inspect thread termination state 44 .Fn pthread_join "pthread_t thread" "void **value_ptr" 48 .Fa "pthread_t thread" 53 .Fa "pthread_t thread" 60 function suspends execution of the calling thread until the target 61 .Fa thread 63 .Fa thread 72 by the terminating thread is stored in the location referenced by 76 returns successfully, the target thread has been terminated. 80 specifying the same target thread are undefined. [all …]
|
/freebsd-src/contrib/llvm-project/libcxx/include/ |
H A D | thread | 15 thread synopsis 20 class thread 26 thread() noexcept; 27 template <class F, class ...Args> explicit thread(F&& f, Args&&... args); 28 ~thread(); 30 thread(const thread&) = delete; 31 thread(thread&& t) noexcept; 33 thread [all...] |
/freebsd-src/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBThreadDocstrings.i | 2 "Represents a thread of execution. :py:class:`SBProcess` contains SBThread(s). 4 SBThreads can be referred to by their ID, which maps to the system specific thread 6 system reuses its thread identifiers. The IndexID is a monotonically increasing identifier 7 that will always uniquely reference a particular thread, and when that thread goes 15 for thread in process: 17 print_stacktrace(thread) 18 ID = thread.GetThreadID() 19 if thread.GetStopReason() == lldb.eStopReasonBreakpoint: 21 for frame in thread [all...] |
/freebsd-src/lib/libpmc/pmu-events/arch/x86/skylake/ |
H A D | skl-metrics.json | 4 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)", 11 …"MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CL… 18 ….ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)", 25 …+ 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_… 33 ….CORE / (4 * CPU_CLK_UNHALTED.THREAD)) - ( UOPS_ISSUED.ANY + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 *… 40 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) - ( UOPS… 47 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)", 54 …"MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_… 61 …THREAD))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) … 67 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))) + (4 * … [all …]
|
/freebsd-src/contrib/ofed/opensm/include/complib/ |
H A D | cl_thread.h | 38 * Declaration of thread abstraction and thread related operations. 55 /****i* Component Library/Thread 57 * Thread 60 * The Thread provides a separate thread of execution. 65 /****d* Component Library: Thread/cl_pfn_thread_callback_t 71 * for functions invoked by thread objects 89 * Thread Pool 92 /****i* Component Library: Thread/cl_thread_t 97 * Thread structure. 113 * Implementation specific structure for managing thread information. [all …]
|
H A D | cl_threadpool.h | 38 * Declaration of thread pool. 57 /****h* Component Library/Thread Pool 59 * Thread Pool 62 * The Thread Pool manages a user specified number of threads. 64 * Each thread in the thread pool waits for a user initiated signal before 65 * invoking a user specified callback function. All threads in the thread 68 * The thread pool functions operate on a cl_thread_pool_t structure which 82 /****s* Component Library: Thread Pool/cl_thread_pool_t 87 * Thread pool structure. 106 * Callback function for the thread to invoke. [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/skylakex/ |
H A D | skx-metrics.json | 4 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)", 11 …"MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CL… 18 ….ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)", 25 …+ 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_… 33 ….CORE / (4 * CPU_CLK_UNHALTED.THREAD)) - ( UOPS_ISSUED.ANY + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 *… 40 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) - ( UOPS… 47 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)", 54 …"MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_… 61 …THREAD))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) … 67 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))) + (4 * … [all …]
|
/freebsd-src/share/man/man9/ |
H A D | kthread.9 | 47 .Fn kthread_resume "struct thread *td" 49 .Fn kthread_suspend "struct thread *td" "int timo" 56 .Fa "struct thread **newtdpp" "int flags" "int pages" 62 .Fa "struct proc **procptr" "struct thread **tdptr" 102 which describes the kernel thread that should be created: 107 struct thread **global_threadpp; 116 String to be used for the name of the thread. 120 .Vt "struct thread" . 122 The main function for this kernel thread to run. 125 .Vt "struct thread" [all …]
|
H A D | mi_switch.9 | 39 .Nd switch to another thread context 48 function implements the machine-independent prelude to a thread context 52 The context switch is, by necessity, always performed by the switched thread, 65 when the current thread 69 Involuntary preemption due to arrival of a higher-priority thread. 79 when the running thread has exceeded its time slice. 88 where a thread needs to stop execution due to the suspension state of 93 when a thread wants to voluntarily relinquish the processor. 115 Switch from the idle thread. 117 A kernel thread whic [all...] |
/freebsd-src/contrib/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_fuchsia.cpp | 28 // used to always find the hwasan thread object associated with the current 29 // running thread. 58 // These are known parameters passed to the hwasan runtime on thread creation. 59 struct Thread::InitState { 63 static void FinishThreadInitialization(Thread *thread); 77 // Create the hwasan thread object for the current (main) thread. Stack info in InitThreads() 78 // for this thread is known from information passed via in InitThreads() 80 const Thread::InitState state = { in InitThreads() 90 // This is called from the parent thread before the new thread is created. Here 91 // we can propagate known info like the stack bounds to Thread::Init before [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/cascadelakex/ |
H A D | clx-metrics.json | 4 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)", 11 …"MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CL… 18 ….ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)", 25 …+ 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_… 33 ….CORE / (4 * CPU_CLK_UNHALTED.THREAD)) - ( UOPS_ISSUED.ANY + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 *… 40 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) - ( UOPS… 47 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)", 54 …"MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_… 61 …THREAD))) + (4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) … 67 …THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )))) + (4 * … [all …]
|
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | Thread.h | 1 //===-- Thread.h ------------------------------------------------*- C++ -*-===// 44 /// thread won't stop in during "step-in" operations. 63 class Thread : public std::enable_shared_from_this<Thread>, 139 /// class. In that case, the Thread we are constructing represents 140 /// a thread from earlier in the program execution. We may have the 141 /// tid of the original thread that they represent but we don't want 142 /// to reuse the IndexID of that thread, or create a new one. If a 143 /// client wants to know the original thread's IndexID, they should use 144 /// Thread [all...] |
H A D | StopInfo.h | 26 StopInfo(Thread &thread, uint64_t value); 49 // ShouldStopSynchronous will get called before any thread plans are 80 virtual bool IsValidForOperatingSystemThread(Thread &thread) { return true; } in IsValidForOperatingSystemThread() argument 85 virtual bool WasContinueInterrupted(Thread &thread) { return false; } 87 // Sometimes the thread plan logic will know that it wants a given stop to 109 CreateStopReasonWithBreakpointSiteID(Thread &thread, [all...] |
/freebsd-src/lib/libpmc/pmu-events/arch/arm64/arm/cortex-a65/ |
H A D | ifu.json | 57 "PublicDescription": "Thread flushed due to TLB miss", 60 "BriefDescription": "Thread flushed due to TLB miss" 63 "PublicDescription": "Thread flushed due to reasons other than TLB miss", 66 "BriefDescription": "Thread flushed due to reasons other than TLB miss" 69 "PublicDescription": "This thread and the other thread both ready for scheduling in if0", 72 "BriefDescription": "This thread and the other thread both ready for scheduling in if0" 75 …"PublicDescription": "This thread was arbitrated when the other thread was also ready for scheduli… 78 …"BriefDescription": "This thread was arbitrated when the other thread was also ready for schedulin… 81 …"PublicDescription": "This thread was arbitrated when the other thread was also active, but not ne… 84 …"BriefDescription": "This thread was arbitrated when the other thread was also active, but not nec… [all …]
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_thread_arg_retval.h | 11 // Tracks thread arguments and return value for leak checking. 27 // class keeps data up to the detach or join, as exited thread still can be 41 // prevent child thread from proceeding without thread handle. 42 template <typename CreateFn /* returns thread id on success, or 0 */> 47 if (uptr thread = fn()) in Create() local 48 CreateLocked(thread, detached, args); in Create() 51 // Returns thread arg and routine. 52 Args GetArgs(uptr thread) const; 54 // Mark thread as done and stores retval or remove if detached. Should be 55 // called by the thread. [all …]
|
/freebsd-src/sys/i386/linux/ |
H A D | linux_proto.h | 23 struct thread; 1732 int linux_exit(struct thread *, struct linux_exit_args *); 1733 int linux_fork(struct thread *, struct linux_fork_args *); 1734 int linux_write(struct thread *, struct linux_write_args *); 1735 int linux_open(struct thread *, struct linux_open_args *); 1736 int linux_waitpid(struct thread *, struct linux_waitpid_args *); 1737 int linux_creat(struct thread *, struct linux_creat_args *); 1738 int linux_link(struct thread *, struct linux_link_args *); 1739 int linux_unlink(struct thread *, struct linux_unlink_args *); 1740 int linux_execve(struct thread *, struct linux_execve_args *); [all …]
|