| /freebsd/sys/sys/ |
| H A D | syscallsubr.h | 86 int kern___getcwd(struct thread *td, char *buf, enum uio_seg bufseg, 88 int kern_abort2(struct thread *td, const char *why, int nargs, 90 int kern_accept(struct thread *td, int s, struct sockaddr *sa, 92 int kern_accept4(struct thread *td, int s, struct sockaddr *sa, 94 int kern_accessat(struct thread *td, int fd, const char *path, 96 int kern_adjtime(struct thread *td, struct timeval *delta, 98 int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa); 99 int kern_break(struct thread *td, uintptr_t *addr); 100 int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, 102 int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights); [all …]
|
| /freebsd/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/lib/libthr/thread/ |
| H A D | thr_list.c | 75 static void thr_destroy(struct pthread *curthread, struct pthread *thread); 120 * XXX we don't free initial thread, because there might in _thr_gc() 121 * have some code referencing initial thread. in _thr_gc() 124 DBG_MSG("Initial thread won't be freed\n"); in _thr_gc() 135 struct pthread *thread = NULL; in _thr_alloc() local 143 if ((thread = TAILQ_FIRST(&free_threadq)) != NULL) { in _thr_alloc() 144 TAILQ_REMOVE(&free_threadq, thread, tle); in _thr_alloc() 150 if (thread == NULL) { in _thr_alloc() 154 thread = __thr_aligned_alloc_offset(_Alignof(struct pthread), in _thr_alloc() 156 if (thread == NULL) { in _thr_alloc() [all …]
|
| H A D | thr_suspend_np.c | 47 /* Suspend a thread: */ 49 _pthread_suspend_np(pthread_t thread) in _pthread_suspend_np() argument 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() [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/share/man/man9/ |
| H A D | cpu_machdep.9 | 36 .Nd machine-dependent interfaces to handle CPU and thread state 41 .Fn cpu_copy_thread "struct thread *td" "struct thread *td0" 45 .Fn cpu_exit "struct thread *td" 47 .Fn cpu_fetch_syscall_args "struct thread *td" 50 .Fa "struct thread *td1" "struct proc *p2" "struct thread *td2" "int flags" 54 .Fa "struct thread *td" "void (*func)(void *)" "void *arg" 62 .Fa "struct thread *td" "int idtype" "id_t id" "int com" "void *data" 65 .Fn cpu_ptrace "struct thread *_td" "int req" "void *addr" "int data" 67 .Fn cpu_set_syscall_retval "struct thread *td" "int error" 70 .Fa "struct thread *td" "void (*entry)(void *)" "void *arg" "stack_t *stack" [all …]
|
| 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 …]
|
| /freebsd/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/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_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 …]
|
| 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 …]
|
| /freebsd/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/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& operator=(const thread&) = delete; 34 thread& operator=(thread&& t) noexcept; 36 void swap(thread& t) noexcept; [all …]
|
| /freebsd/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: 59 Collects a thread's stop reason extended information dictionary and prints it [all …]
|
| /freebsd/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/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/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/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::GetExtendedBacktraceOriginatingIndexID(). 145 Thread(Process &process, lldb::tid_t tid, bool use_invalid_index_id = false); [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; } in WasContinueInterrupted() argument 87 // Sometimes the thread plan logic will know that it wants a given stop to 109 CreateStopReasonWithBreakpointSiteID(Thread &thread, 112 // This creates a StopInfo for the thread where the should_stop is already 115 Thread &thread, lldb::break_id_t break_id, bool should_stop); 118 CreateStopReasonWithWatchpointID(Thread &thread, lldb::break_id_t watch_id, 122 CreateStopReasonWithSignal(Thread &thread, int signo, [all …]
|
| /freebsd/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/crypto/openssl/crypto/thread/ |
| H A D | arch.c | 47 int ossl_crypto_thread_native_join(CRYPTO_THREAD *thread, CRYPTO_THREAD_RETVAL *retval) in ossl_crypto_thread_native_join() argument 51 if (thread == NULL) in ossl_crypto_thread_native_join() 54 ossl_crypto_mutex_lock(thread->statelock); in ossl_crypto_thread_native_join() 56 while (!CRYPTO_THREAD_GET_STATE(thread, req_state_mask)) in ossl_crypto_thread_native_join() 57 ossl_crypto_condvar_wait(thread->condvar, thread->statelock); in ossl_crypto_thread_native_join() 59 if (CRYPTO_THREAD_GET_STATE(thread, CRYPTO_THREAD_JOINED)) in ossl_crypto_thread_native_join() 63 while (CRYPTO_THREAD_GET_STATE(thread, CRYPTO_THREAD_JOIN_AWAIT)) { in ossl_crypto_thread_native_join() 64 if (!CRYPTO_THREAD_GET_STATE(thread, CRYPTO_THREAD_JOINED)) in ossl_crypto_thread_native_join() 65 ossl_crypto_condvar_wait(thread->condvar, thread->statelock); in ossl_crypto_thread_native_join() 66 if (CRYPTO_THREAD_GET_STATE(thread, CRYPTO_THREAD_JOINED)) in ossl_crypto_thread_native_join() [all …]
|
| /freebsd/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/crypto/openssl/doc/designs/ |
| H A D | thread-api.md | 1 Thread Pool Support 12 To support this end, OpenSSL can manage an internal thread pool. Tasks can be 13 scheduled on the internal thread pool. 16 the thread pool functionality, known as the “default model”. More models 19 A thread pool is managed on a per-`OSSL_LIB_CTX` basis. 27 The application enables thread pooling by calling the following function 32 * Set the maximum number of threads to be used by the thread pool. 34 * If the argument is 0, thread pooling is disabled. OpenSSL will not create any 35 * threads and existing threads in the thread pool will be torn down. 38 * thread pooling is not supported (for example, if it is not supported on the [all …]
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_proto.h | 23 struct thread; 1735 int linux_exit(struct thread *, struct linux_exit_args *); 1736 int linux_fork(struct thread *, struct linux_fork_args *); 1737 int linux_write(struct thread *, struct linux_write_args *); 1738 int linux_open(struct thread *, struct linux_open_args *); 1739 int linux_waitpid(struct thread *, struct linux_waitpid_args *); 1740 int linux_creat(struct thread *, struct linux_creat_args *); 1741 int linux_link(struct thread *, struct linux_link_args *); 1742 int linux_unlink(struct thread *, struct linux_unlink_args *); 1743 int linux_execve(struct thread *, struct linux_execve_args *); [all …]
|