| /freebsd-14.2/crypto/openssl/Configurations/ |
| H A D | 10-main.conf | 245 cflags => add(threads("-pthread")), 247 ex_libs => add(threads("-pthread")), 301 lflags => add(threads("-mt")), 358 lflags => add(threads("-mt")), 693 cflags => threads("-pthread"), 1020 cflags => threads("-pthread"), 1126 cflags => threads("-Kthread"), 1135 cflags => threads("-Kthread"), 1276 threads("-pthread")), 1310 threads("-pthread")), [all …]
|
| /freebsd-14.2/tools/tools/crypto/ |
| H A D | cryptorun.sh | 16 threads=1 23 while [ "$threads" -le "$max_threads" ]; do 24 echo "Testing with $threads processes." 26 $crypto -t $threads -a $1 $iterations $size 30 threads=$(($threads * 2))
|
| /freebsd-14.2/sys/amd64/vmm/ |
| H A D | x86.c | 87 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 246 logical_cpus = threads; in x86_emulate_cpuid() 251 logical_cpus = threads; in x86_emulate_cpuid() 256 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() 488 logical_cpus = threads; in x86_emulate_cpuid() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/contrib/xz/src/liblzma/common/ |
| H A D | stream_encoder_mt.c | 167 worker_thread *threads; member 451 coder->threads[i].state = THR_STOP; in threads_stop() 464 &coder->threads[i].mutex); in threads_stop() 479 coder->threads[i].state = THR_EXIT; in threads_end() 490 lzma_free(coder->threads, allocator); in threads_end() 1101 coder->threads = NULL; in stream_encoder_mt_init() 1114 assert(options->threads > 0); in stream_encoder_mt_init() 1118 coder->threads = NULL; in stream_encoder_mt_init() 1124 coder->threads = lzma_alloc( in stream_encoder_mt_init() 1127 if (coder->threads == NULL) in stream_encoder_mt_init() [all …]
|
| H A D | outqueue.c | 20 #define GET_BUFS_LIMIT(threads) (2 * (threads)) argument 24 lzma_outq_memusage(uint64_t buf_size_max, uint32_t threads) in lzma_outq_memusage() argument 34 if (threads > LZMA_THREADS_MAX || buf_size_max > limit) in lzma_outq_memusage() 37 return GET_BUFS_LIMIT(threads) in lzma_outq_memusage() 114 uint32_t threads) in lzma_outq_init() argument 116 if (threads > LZMA_THREADS_MAX) in lzma_outq_init() 119 const uint32_t bufs_limit = GET_BUFS_LIMIT(threads); in lzma_outq_init()
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | f_offset.sh | 52 3. there are several threads or processes that operate on the same 127 pthread_t threads[3]; 141 if ((r = pthread_create(&threads[0], NULL, t1, 0)) != 0) 143 if ((r = pthread_create(&threads[1], NULL, t2, 0)) != 0) 145 if ((r = pthread_create(&threads[2], NULL, t3, 0)) != 0) 148 if ((r = pthread_join(threads[0], NULL)) != 0) 150 if ((r = pthread_join(threads[1], NULL)) != 0) 152 if ((r = pthread_join(threads[2], NULL)) != 0)
|
| H A D | devfs2.sh | 93 pthread_t threads[2]; 97 if ((r = pthread_create(&threads[0], NULL, thr1, 0)) != 0) 99 if ((r = pthread_create(&threads[1], NULL, thr2, 0)) != 0) 103 if ((r = pthread_join(threads[i], NULL)) != 0)
|
| H A D | context2.sh | 56 * Pass a token thru pipes to NTHREADS+1 threads in a circular list. 96 pthread_t threads[NTHREADS]; 108 if ((r = pthread_create(&threads[i], NULL, thr_routine, 124 if ((r = pthread_cancel(threads[i])) != 0) 127 if ((r = pthread_join(threads[i], NULL)) != 0)
|
| H A D | pthread8.sh | 94 pthread_t *threads; 104 threads = calloc(ncpus, sizeof(pthread_t)); 105 if (threads == NULL) 125 error = pthread_create(&threads[i], NULL, runner, &ra); 134 pthread_join(threads[i], NULL);
|
| H A D | kevent.sh | 139 pthread_t threads[2]; 158 if ((r = pthread_create(&threads[0], NULL, thr1, 0)) != 0) 160 if ((r = pthread_create(&threads[1], NULL, thr2, 0)) != 0) 163 if ((r = pthread_join(threads[0], NULL)) != 0) 165 if ((r = pthread_join(threads[1], NULL)) != 0)
|
| H A D | kevent2.sh | 137 pthread_t threads[2]; 154 if ((r = pthread_create(&threads[0], NULL, thr1, 0)) != 0) 156 if ((r = pthread_create(&threads[1], NULL, thr2, 0)) != 0) 159 if ((r = pthread_join(threads[0], NULL)) != 0) 161 if ((r = pthread_join(threads[1], NULL)) != 0)
|
| /freebsd-14.2/tools/test/stress2/testcases/thr2/ |
| H A D | thr2.c | 71 pthread_t threads[NTHREADS]; in test() local 76 if ((r = pthread_create(&threads[i], NULL, thr1, 0)) != 0) in test() 80 if (pthread_join(threads[i], NULL) != 0) in test() 84 if ((r = pthread_create(&threads[i], NULL, thr2, 0)) != 0) in test() 89 if ((r = pthread_join(threads[i], NULL)) != 0) in test()
|
| /freebsd-14.2/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_zstd.c | 60 int threads; member 137 data->threads = 0; in archive_write_add_filter_zstd() 271 intmax_t threads; in archive_compressor_zstd_options() local 272 if (string_to_number(value, &threads) != ARCHIVE_OK) { in archive_compressor_zstd_options() 277 if (threads == 0) { in archive_compressor_zstd_options() 278 threads = sysconf(_SC_NPROCESSORS_ONLN); in archive_compressor_zstd_options() 282 if (threads == 0) { in archive_compressor_zstd_options() 285 threads = (intmax_t)winCores; in archive_compressor_zstd_options() 288 if (threads < 0 || threads > INT_MAX) { in archive_compressor_zstd_options() 291 data->threads = (int)threads; in archive_compressor_zstd_options() [all …]
|
| H A D | archive_write_add_filter_xz.c | 101 uint32_t threads; member 153 data->threads = 1; in common_setup() 233 if (data->threads != 1) { in archive_compressor_xz_init_stream() 235 mt_options.threads = data->threads; in archive_compressor_xz_init_stream() 391 data->threads = (int)strtoul(value, &endptr, 10); in archive_compressor_xz_options() 393 data->threads = 1; in archive_compressor_xz_options() 396 if (data->threads == 0) { in archive_compressor_xz_options() 398 data->threads = lzma_cputhreads(); in archive_compressor_xz_options() 400 data->threads = 1; in archive_compressor_xz_options()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleLoader.cpp | 128 for (const JSONThread &thread : process.threads) in ParseProcess() 129 parsed_process->threads.push_back(ParseThread(*process_sp, thread)); in ParseProcess() 135 if (!process.threads.empty()) in ParseProcess() 163 parsed_process->threads.push_back(thread_sp); in ParseKernel() 249 "threads": [ in GetSchema() 337 for (JSONThread &thread : process.threads) in AugmentThreadsFromContextSwitches() 373 std::vector<ThreadPostMortemTraceSP> threads; in CreateTraceIntelPTInstance() local 377 threads.insert(threads.end(), parsed_process.threads.begin(), in CreateTraceIntelPTInstance() 378 parsed_process.threads.end()); in CreateTraceIntelPTInstance() 386 bundle_description, processes, threads, trace_mode); in CreateTraceIntelPTInstance() [all …]
|
| /freebsd-14.2/sbin/nvmecontrol/ |
| H A D | perftest.c | 54 uint32_t threads; member 63 .threads = 0, 77 OPT("threads", 'n', arg_uint32, opt, threads, 161 if (opt.threads <= 0 || opt.threads > 128) { in perftest() 162 fprintf(stderr, "Bad number of threads %d\n", opt.threads); in perftest() 165 io_test.num_threads = opt.threads; in perftest()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/API/ |
| H A D | SBThreadCollection.cpp | 33 SBThreadCollection::SBThreadCollection(const ThreadCollectionSP &threads) in SBThreadCollection() argument 34 : m_opaque_sp(threads) {} in SBThreadCollection() 38 void SBThreadCollection::SetOpaque(const lldb::ThreadCollectionSP &threads) { in SetOpaque() argument 39 m_opaque_sp = threads; in SetOpaque()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/perf/ |
| H A D | perf.shlib | 44 typeset threads=$1 52 suffix="$suffix.$threads-threads.$filesystems-filesystems" 62 typeset threads=$4 68 log_note "Running with $threads $sync_str threads, $iosize ios" 81 # of the number of threads. 113 export FILESIZE=$((TOTAL_SIZE / threads)) 114 export NUMJOBS=$threads 173 for threads in $PERF_NTHREADS; do 181 $threads \ 309 typeset threads=$1 [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/common/ |
| H A D | pool.c | 37 ZSTD_pthread_t* threads; member 139 ctx->threads = (ZSTD_pthread_t*)ZSTD_malloc(numThreads * sizeof(ZSTD_pthread_t), customMem); in POOL_create_advanced() 143 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 147 if (ZSTD_pthread_create(&ctx->threads[i], NULL, &POOL_thread, ctx)) { in POOL_create_advanced() 172 ZSTD_pthread_join(ctx->threads[i], NULL); /* note : could fail */ in POOL_join() 183 ZSTD_free(ctx->threads, ctx->customMem); in POOL_free() 209 memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal() 210 ZSTD_free(ctx->threads, ctx->customMem); in POOL_resize_internal() 211 ctx->threads = threadPool; in POOL_resize_internal()
|
| /freebsd-14.2/sys/contrib/zstd/lib/common/ |
| H A D | pool.c | 37 ZSTD_pthread_t* threads; member 145 … ctx->threads = (ZSTD_pthread_t*)ZSTD_customMalloc(numThreads * sizeof(ZSTD_pthread_t), customMem); in POOL_create_advanced() 149 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 153 if (ZSTD_pthread_create(&ctx->threads[i], NULL, &POOL_thread, ctx)) { in POOL_create_advanced() 178 ZSTD_pthread_join(ctx->threads[i], NULL); /* note : could fail */ in POOL_join() 189 ZSTD_customFree(ctx->threads, ctx->customMem); in POOL_free() 217 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal() 218 ZSTD_customFree(ctx->threads, ctx->customMem); in POOL_resize_internal() 219 ctx->threads = threadPool; in POOL_resize_internal()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_stoptheworld_win.cpp | 94 const HANDLE threads = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0); in RunThread() local 95 CHECK(threads != INVALID_HANDLE_VALUE); in RunThread() 101 if (!Thread32First(threads, &thread_entry)) in RunThread() 136 } while (Thread32Next(threads, &thread_entry)); in RunThread() 138 CloseHandle(threads); in RunThread()
|
| /freebsd-14.2/tools/test/stress2/testcases/thr1/ |
| H A D | thr1.c | 62 pthread_t threads[NTHREADS]; in test() local 67 if ((r = pthread_create(&threads[i], NULL, thr_routine, 0)) != 0) in test() 71 if ((r = pthread_join(threads[i], NULL)) != 0) in test()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_thread.cpp | 101 void GetRunningThreadsLocked(InternalMmapVector<tid_t> *threads) { in GetRunningThreadsLocked() argument 103 [](ThreadContextBase *tctx, void *threads) { in GetRunningThreadsLocked() argument 105 reinterpret_cast<InternalMmapVector<tid_t> *>(threads)->push_back( in GetRunningThreadsLocked() 109 threads); in GetRunningThreadsLocked()
|