/freebsd/crypto/openssl/Configurations/ |
H A D | 10-main.conf | 245 cflags => add(threads("-pthread")), 247 ex_libs => add(threads("-pthread")), 268 cflags => add_before("-m64", threads("-pthread")), 270 ex_libs => add(threads("-pthread")), 298 cppflags => add(threads("-D_REENTRANT")), 301 lflags => add(threads("-mt")), 302 ex_libs => add(threads("-lpthread")), 318 cflags => add(threads("-pthread")), 320 ex_libs => add(threads("-pthread")), 356 cppflags => add(threads("-D_REENTRANT")), [all …]
|
/freebsd/sys/amd64/vmm/ |
H A D | x86.c | 85 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 140 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 152 width = MIN(0xF, log2(threads * cores)); in x86_emulate_cpuid() 153 logical_cpus = MIN(0xFF, threads * cores - 1); in x86_emulate_cpuid() 238 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() 242 logical_cpus = threads; in x86_emulate_cpuid() 247 logical_cpus = threads; in x86_emulate_cpuid() 252 logical_cpus = threads * cores; in x86_emulate_cpuid() 257 logical_cpus = sockets * threads * cores; in x86_emulate_cpuid() 286 vm_get_topology(vm, &sockets, &cores, &threads, in x86_emulate_cpuid() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libpthread_dbg/ |
H A D | t_threads.c | 78 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 90 (pthread_create(&threads[i], NULL, busyFunction1, NULL)); in ATF_TC_BODY() 139 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 153 (pthread_create(&threads[i], NULL, busyFunction2, NULL)); in ATF_TC_BODY() 209 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 223 (pthread_create(&threads[i], NULL, busyFunction3, NULL)); in ATF_TC_BODY() 282 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local 295 (pthread_create(&threads[i], NULL, busyFunction4, NULL)); in ATF_TC_BODY() 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 [all …]
|
/freebsd/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/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/contrib/libder/tests/ |
H A D | fuzz_parallel.c | 78 pthread_t *threads; in LLVMFuzzerTestOneInput() local 92 threads = malloc(sizeof(*threads) * frame->frame_threads); in LLVMFuzzerTestOneInput() 93 if (threads == NULL) in LLVMFuzzerTestOneInput() 100 if (pthread_create(&threads[nthreads], NULL, thread_main, in LLVMFuzzerTestOneInput() 106 pthread_join(threads[i], NULL); in LLVMFuzzerTestOneInput() 108 free(threads); in LLVMFuzzerTestOneInput()
|
/freebsd/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 | 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 | 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 | 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/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/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/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() 139 // its threads. in ParseProcess() 157 // Add cpus as fake threads in ParseKernel() 163 parsed_process->threads.push_back(thread_sp); in ParseKernel() 190 // its threads. in ParseKernel() 249 "threads": [ in GetSchema() 250 // A list of known threads for the given process. When context switch in GetSchema() 251 // data is provided, LLDB will automatically create threads fo in GetSchema() 371 std::vector<ThreadPostMortemTraceSP> threads; CreateTraceIntelPTInstance() local [all...] |
/freebsd/sbin/nvmecontrol/ |
H A D | perftest.c | 53 uint32_t threads; member 62 .threads = 0, 76 OPT("threads", 'n', arg_uint32, opt, threads, 160 if (opt.threads <= 0 || opt.threads > 128) { in perftest() 161 fprintf(stderr, "Bad number of threads %d\n", opt.threads); in perftest() 164 io_test.num_threads = opt.threads; in perftest()
|
/freebsd/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" 72 verify_threads_per_fs $threads $threads_per_fs 81 # of the number of threads. 84 populate_perf_filesystems $((threads / threads_per_fs)) 113 export FILESIZE=$((TOTAL_SIZE / threads)) 114 export NUMJOBS=$threads 130 typeset suffix=$(get_suffix $threads $sync $iosize) [all …]
|
/freebsd/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/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/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/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/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()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/ |
H A D | Options.td | 58 def threads: Separate<["--", "-"], "num-threads">, 59 MetaVarName<"<threads>">, 60 HelpText<"Number of available threads for multi-threaded execution. " 64 Alias<threads>, 65 HelpText<"Alias for --num-threads">;
|
/freebsd/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()
|