| /freebsd-12.1/sys/amd64/vmm/ |
| H A D | x86.c | 97 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 249 logical_cpus = threads; in x86_emulate_cpuid() 254 logical_cpus = threads; in x86_emulate_cpuid() 259 logical_cpus = threads * cores; in x86_emulate_cpuid() 286 threads = MIN(0xFF, threads - 1); in x86_emulate_cpuid() 287 regs[1] = (threads << 8) | in x86_emulate_cpuid() 288 (vcpu_id >> log2(threads + 1)); in x86_emulate_cpuid() 385 logical_cpus = threads * cores; in x86_emulate_cpuid() 406 logical_cpus = threads; in x86_emulate_cpuid() 476 logical_cpus = threads; in x86_emulate_cpuid() [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libpthread_dbg/ |
| H A D | t_threads.c | 78 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 139 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 209 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 282 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 300 (pthread_setname_np(threads[i], "test_%d", (void*)i)); in ATF_TC_BODY() 363 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 381 (pthread_setname_np(threads[i], "test_%d", (void*)i)); in ATF_TC_BODY() 436 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 510 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 584 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local [all …]
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/stdlib/ |
| H A D | t_getenv_thread.c | 150 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 158 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_getenv_r, in ATF_TC_BODY() 163 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 175 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 183 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_putenv, in ATF_TC_BODY() 188 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 200 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local 208 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_setenv, in ATF_TC_BODY() 213 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY() 225 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local [all …]
|
| /freebsd-12.1/tools/tools/crypto/ |
| H A D | cryptorun.sh | 17 threads=1 24 while [ "$threads" -le "$max_threads" ]; do 25 echo "Testing with $threads processes." 27 $crypto -t $threads -a $1 $iterations $size 31 threads=$(($threads * 2))
|
| /freebsd-12.1/contrib/xz/src/liblzma/common/ |
| H A D | stream_encoder_mt.c | 146 worker_thread *threads; member 426 coder->threads[i].state = THR_STOP; in threads_stop() 439 &coder->threads[i].mutex); in threads_stop() 454 coder->threads[i].state = THR_EXIT; in threads_end() 465 lzma_free(coder->threads, allocator); in threads_end() 929 *progress_out += coder->threads[i] in get_progress() 1007 coder->threads = NULL; in stream_encoder_mt_init() 1019 assert(options->threads > 0); in stream_encoder_mt_init() 1023 coder->threads = NULL; in stream_encoder_mt_init() 1029 coder->threads = lzma_alloc( in stream_encoder_mt_init() [all …]
|
| H A D | outqueue.c | 24 uint64_t buf_size_max, uint32_t threads) in get_options() argument 26 if (threads > LZMA_THREADS_MAX || buf_size_max > BUF_SIZE_MAX) in get_options() 34 *bufs_count = threads * 2; in get_options() 42 lzma_outq_memusage(uint64_t buf_size_max, uint32_t threads) in lzma_outq_memusage() argument 47 if (get_options(&bufs_alloc_size, &bufs_count, buf_size_max, threads) in lzma_outq_memusage() 58 uint64_t buf_size_max, uint32_t threads) in lzma_outq_init() argument 65 buf_size_max, threads)); in lzma_outq_init()
|
| /freebsd-12.1/sys/contrib/zstd/contrib/pzstd/ |
| H A D | README.md | 13 …nd line interface as Zstandard, but also provides the `-p` option to specify the number of threads. 18 pzstd input-file -o output-file -p num-threads -# # Compression 19 pzstd -d input-file -o output-file -p num-threads # Decompression 23 cat input-file | pzstd -p num-threads -# -c > /dev/null 29 PZstandard tries to pick a smart default number of threads if not specified (displayed in `pzstd --… 30 …uitable, during compilation you can define `PZSTD_NUM_THREADS` to the number of threads you prefer. 34 …ndard and Pigz were compared on an Intel Core i7 @ 3.1 GHz, each using 4 threads, with the [Silesi… 49 …llel decompression, it simply does each of reading, decompression, and writing on separate threads.
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/API/ |
| H A D | SBThreadCollection.cpp | 29 SBThreadCollection::SBThreadCollection(const ThreadCollectionSP &threads) in SBThreadCollection() argument 30 : m_opaque_sp(threads) {} in SBThreadCollection() 34 void SBThreadCollection::SetOpaque(const lldb::ThreadCollectionSP &threads) { in SetOpaque() argument 35 m_opaque_sp = threads; in SetOpaque()
|
| /freebsd-12.1/sbin/nvmecontrol/ |
| H A D | perftest.c | 55 uint32_t threads; member 64 .threads = 0, 78 OPT("threads", 'n', arg_uint32, opt, threads, 162 if (opt.threads <= 0 || opt.threads > 128) { in perftest() 163 fprintf(stderr, "Bad number of threads %d\n", opt.threads); in perftest()
|
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_xz.c | 103 uint32_t threads; member 155 data->threads = 1; in common_setup() 235 if (data->threads != 1) { in archive_compressor_xz_init_stream() 237 mt_options.threads = data->threads; in archive_compressor_xz_init_stream() 398 data->threads = (int)strtoul(value, &endptr, 10); in archive_compressor_xz_options() 400 data->threads = 1; in archive_compressor_xz_options() 403 if (data->threads == 0) { in archive_compressor_xz_options() 405 data->threads = lzma_cputhreads(); in archive_compressor_xz_options() 407 data->threads = 1; in archive_compressor_xz_options()
|
| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_stoptheworld_mac.cc | 58 thread_array_t threads; in RunThread() local 60 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); in RunThread() 68 if (threads[i] == thread_self) continue; in RunThread() 70 thread_suspend(threads[i]); in RunThread() 71 suspended_threads_list.Append(threads[i]); in RunThread()
|
| /freebsd-12.1/contrib/libevent/ |
| H A D | event_iocp.c | 190 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch_() 191 if (!port->threads) in event_iocp_port_launch_() 208 port->threads[i] = (HANDLE)th; in event_iocp_port_launch_() 218 if (port->threads) in event_iocp_port_launch_() 219 mm_free(port->threads); in event_iocp_port_launch_() 232 mm_free(port->threads); in event_iocp_port_unlock_and_free_()
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/ |
| H A D | event_iocp.c | 190 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch_() 191 if (!port->threads) in event_iocp_port_launch_() 208 port->threads[i] = (HANDLE)th; in event_iocp_port_launch_() 218 if (port->threads) in event_iocp_port_launch_() 219 mm_free(port->threads); in event_iocp_port_launch_() 232 mm_free(port->threads); in event_iocp_port_unlock_and_free_()
|
| /freebsd-12.1/sys/dev/random/ |
| H A D | unit_test.c | 238 thrd_t threads[NUM_THREADS]; in main() local 246 rc = thrd_create(&threads[t], (t == 0 ? RunHarvester : ReadCSPRNG), NULL); in main() 254 thrd_join(threads[t], &rc); in main() 258 thrd_join(threads[1], &rc); in main() 259 thrd_join(threads[0], &rc); in main()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
| H A D | MainThreadCheckerRuntime.cpp | 241 ThreadCollectionSP threads; in GetBacktracesFromExtendedStopInfo() local 242 threads.reset(new ThreadCollection()); in GetBacktracesFromExtendedStopInfo() 248 return threads; in GetBacktracesFromExtendedStopInfo() 258 return threads; in GetBacktracesFromExtendedStopInfo() 273 threads->AddThread(new_thread_sp); in GetBacktracesFromExtendedStopInfo() 275 return threads; in GetBacktracesFromExtendedStopInfo()
|
| /freebsd-12.1/usr.sbin/pmc/ |
| H A D | cmd_pmc_filter.cc | 200 char *events, char *processes, char *threads, bool exclusive, bool json, int infd, in pmc_filter_handler() argument 221 if (threads) in pmc_filter_handler() 222 parse_names(threads, threadlist, &threadcount); in pmc_filter_handler() 303 char *lwps, *pids, *events, *processes, *threads; in cmd_pmc_filter() local 310 threads = processes = lwps = pids = events = NULL; in cmd_pmc_filter() 331 threads = strdup(optarg); in cmd_pmc_filter() 360 processes, threads, exclusive, json, prelogfd, postlogfd); in cmd_pmc_filter()
|
| /freebsd-12.1/sys/contrib/zstd/lib/common/ |
| H A D | pool.c | 36 ZSTD_pthread_t *threads; member 128 ctx->threads = (ZSTD_pthread_t*)ZSTD_malloc(numThreads * sizeof(ZSTD_pthread_t), customMem); in POOL_create_advanced() 132 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 136 if (ZSTD_pthread_create(&ctx->threads[i], NULL, &POOL_thread, ctx)) { in POOL_create_advanced() 160 ZSTD_pthread_join(ctx->threads[i], NULL); in POOL_join() 171 ZSTD_free(ctx->threads, ctx->customMem); in POOL_free()
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/threadsappend/ |
| H A D | threadsappend.c | 87 pthread_t threads[2]; in main() local 120 ret = pthread_create(&threads[i], NULL, go, (void *)&i); in main() 130 if (pthread_join(threads[i], NULL) != 0) in main()
|
| /freebsd-12.1/contrib/libevent/m4/ |
| H A D | acx_pthread.m4 | 9 # This macro figures out how to build C programs using POSIX threads. 10 # It sets the PTHREAD_LIBS output variable to the threads library and 25 # If you are only building threads programs, you may wish to use 36 # ACTION-IF-FOUND is a list of shell commands to run if a threads 97 # etcetera environment variables, and if threads linking works using 115 # We must check for the threads library under a number of different 131 # none: in case threads are in libc; should be tried before -Kthread and 133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) [all …]
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/m4/ |
| H A D | acx_pthread.m4 | 9 # This macro figures out how to build C programs using POSIX threads. 10 # It sets the PTHREAD_LIBS output variable to the threads library and 25 # If you are only building threads programs, you may wish to use 36 # ACTION-IF-FOUND is a list of shell commands to run if a threads 97 # etcetera environment variables, and if threads linking works using 115 # We must check for the threads library under a number of different 131 # none: in case threads are in libc; should be tried before -Kthread and 133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) [all …]
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/UBSan/ |
| H A D | UBSanRuntime.cpp | 306 ThreadCollectionSP threads; in GetBacktracesFromExtendedStopInfo() local 307 threads.reset(new ThreadCollection()); in GetBacktracesFromExtendedStopInfo() 313 return threads; in GetBacktracesFromExtendedStopInfo() 323 return threads; in GetBacktracesFromExtendedStopInfo() 340 threads->AddThread(new_thread_sp); in GetBacktracesFromExtendedStopInfo() 342 return threads; in GetBacktracesFromExtendedStopInfo()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/TSan/ |
| H A D | TSanRuntime.cpp | 444 StructuredData::Array *threads = ConvertToStructuredArray( in RetrieveReportData() local 1044 threads->AddThread(new_thread_sp); in AddThreadsForPath() 1053 ThreadCollectionSP threads; in GetBacktracesFromExtendedStopInfo() local 1054 threads.reset(new ThreadCollection()); in GetBacktracesFromExtendedStopInfo() 1058 return threads; in GetBacktracesFromExtendedStopInfo() 1062 AddThreadsForPath("stacks", threads, process_sp, info); in GetBacktracesFromExtendedStopInfo() 1063 AddThreadsForPath("mops", threads, process_sp, info); in GetBacktracesFromExtendedStopInfo() 1064 AddThreadsForPath("locs", threads, process_sp, info); in GetBacktracesFromExtendedStopInfo() 1065 AddThreadsForPath("mutexes", threads, process_sp, info); in GetBacktracesFromExtendedStopInfo() 1066 AddThreadsForPath("threads", threads, process_sp, info); in GetBacktracesFromExtendedStopInfo() [all …]
|
| /freebsd-12.1/contrib/googletest/googletest/m4/ |
| H A D | acx_pthread.m4 | 13 dnl @summary figure out how to build C programs using POSIX threads 15 dnl This macro figures out how to build C programs using POSIX threads. 16 dnl It sets the PTHREAD_LIBS output variable to the threads library and 31 dnl If you are only building threads programs, you may wish to use 42 dnl ACTION-IF-FOUND is a list of shell commands to run if a threads 74 # etcetera environment variables, and if threads linking works using 92 # We must check for the threads library under a number of different 108 # none: in case threads are in libc; should be tried before -Kthread and 110 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 113 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) [all …]
|
| /freebsd-12.1/contrib/unbound/ |
| H A D | ax_pthread.m4 | 11 # This macro figures out how to build C programs using POSIX threads. It 12 # sets the PTHREAD_LIBS output variable to the threads library and linker 25 # If you are only building threads programs, you may wish to use these 40 # ACTION-IF-FOUND is a list of shell commands to run if a threads library 98 # etcetera environment variables, and if threads linking works using 116 # We must check for the threads library under a number of different 132 # none: in case threads are in libc; should be tried before -Kthread and 134 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 135 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 137 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) [all …]
|
| /freebsd-12.1/contrib/gdb/gdb/ |
| H A D | gnu-nat.c | 644 inf->threads = 0; in make_inf() 961 struct proc *thread = inf->threads; in inf_tid_to_thread() 975 struct proc *thread = inf->threads; in inf_port_to_thread() 989 thread_array_t threads; in inf_validate_procs() local 1025 struct proc *thread = inf->threads; in inf_validate_procs() 1037 if (thread->port == threads[i]) in inf_validate_procs() 1053 (last ? last->next : inf->threads) = thread; in inf_validate_procs() 1199 inf->signal_thread = inf->threads ? inf->threads->next : 0; in inf_update_signal_thread() 1433 if (!inf->threads && !inf->pending_execs) in gnu_wait() 1439 if (!inf->threads && !inf->task->dead) in gnu_wait() [all …]
|