| /freebsd-13.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-13.1/sys/amd64/vmm/ |
| H A D | x86.c | 99 uint16_t cores, maxcpus, sockets, threads; in x86_emulate_cpuid() local 258 logical_cpus = threads; in x86_emulate_cpuid() 263 logical_cpus = threads; in x86_emulate_cpuid() 268 logical_cpus = threads * cores; in x86_emulate_cpuid() 298 threads = MIN(0xFF, threads - 1); in x86_emulate_cpuid() 299 regs[1] = (threads << 8) | in x86_emulate_cpuid() 300 (vcpu_id >> log2(threads + 1)); in x86_emulate_cpuid() 397 logical_cpus = threads * cores; in x86_emulate_cpuid() 418 logical_cpus = threads; in x86_emulate_cpuid() 496 logical_cpus = threads; in x86_emulate_cpuid() [all …]
|
| /freebsd-13.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-13.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-13.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-13.1/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTSessionFileParser.cpp | 48 std::vector<ThreadPostMortemTraceSP> threads; in CreateTraceIntelPTInstance() local 50 threads.insert(threads.end(), parsed_process.threads.begin(), in CreateTraceIntelPTInstance() 51 parsed_process.threads.end()); in CreateTraceIntelPTInstance() 53 TraceSP trace_instance(new TraceIntelPT(cpu_info, threads)); in CreateTraceIntelPTInstance()
|
| /freebsd-13.1/sbin/nvmecontrol/ |
| H A D | perftest.c | 56 uint32_t threads; member 65 .threads = 0, 79 OPT("threads", 'n', arg_uint32, opt, threads, 163 if (opt.threads <= 0 || opt.threads > 128) { in perftest() 164 fprintf(stderr, "Bad number of threads %d\n", opt.threads); in perftest() 167 io_test.num_threads = opt.threads; in perftest()
|
| /freebsd-13.1/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_zstd.c | 53 int threads; member 111 data->threads = 0; in archive_write_add_filter_zstd() 210 int threads = atoi(value); in archive_compressor_zstd_options() local 217 if (threads < minimum) { in archive_compressor_zstd_options() 221 data->threads = threads; in archive_compressor_zstd_options() 271 ZSTD_CCtx_setParameter(data->cstream, ZSTD_c_nbWorkers, data->threads); in archive_compressor_zstd_open() 387 if (data->threads != 0) { in archive_compressor_zstd_open() 390 archive_string_sprintf(&as2, " --threads=%d", data->threads); in archive_compressor_zstd_open()
|
| 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() 394 data->threads = (int)strtoul(value, &endptr, 10); in archive_compressor_xz_options() 396 data->threads = 1; in archive_compressor_xz_options() 399 if (data->threads == 0) { in archive_compressor_xz_options() 401 data->threads = lzma_cputhreads(); in archive_compressor_xz_options() 403 data->threads = 1; in archive_compressor_xz_options()
|
| /freebsd-13.1/sys/contrib/zstd/lib/common/ |
| H A D | pool.c | 37 ZSTD_pthread_t* threads; member 143 … ctx->threads = (ZSTD_pthread_t*)ZSTD_customMalloc(numThreads * sizeof(ZSTD_pthread_t), customMem); in POOL_create_advanced() 147 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 151 if (ZSTD_pthread_create(&ctx->threads[i], NULL, &POOL_thread, ctx)) { in POOL_create_advanced() 176 ZSTD_pthread_join(ctx->threads[i], NULL); /* note : could fail */ in POOL_join() 187 ZSTD_customFree(ctx->threads, ctx->customMem); in POOL_free() 215 ZSTD_memcpy(threadPool, ctx->threads, ctx->threadCapacity * sizeof(*threadPool)); in POOL_resize_internal() 216 ZSTD_customFree(ctx->threads, ctx->customMem); in POOL_resize_internal() 217 ctx->threads = threadPool; in POOL_resize_internal()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/perf/ |
| H A D | perf.shlib | 45 typeset threads=$1 53 suffix="$suffix.$threads-threads.$filesystems-filesystems" 63 typeset threads=$4 69 log_note "Running with $threads $sync_str threads, $iosize ios" 82 # of the number of threads. 114 export FILESIZE=$((TOTAL_SIZE / threads)) 115 export NUMJOBS=$threads 174 for threads in $PERF_NTHREADS; do 182 $threads \ 310 typeset threads=$1 [all …]
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/API/ |
| H A D | SBThreadCollection.cpp | 38 SBThreadCollection::SBThreadCollection(const ThreadCollectionSP &threads) in SBThreadCollection() argument 39 : m_opaque_sp(threads) {} in SBThreadCollection() 43 void SBThreadCollection::SetOpaque(const lldb::ThreadCollectionSP &threads) { in SetOpaque() argument 44 m_opaque_sp = threads; in SetOpaque()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_stoptheworld_mac.cpp | 57 thread_array_t threads; in RunThread() local 59 kern_return_t err = task_threads(mach_task_self(), &threads, &num_threads); in RunThread() 67 if (threads[i] == thread_self) continue; in RunThread() 69 thread_suspend(threads[i]); in RunThread() 70 suspended_threads_list.Append(threads[i]); in RunThread()
|
| /freebsd-13.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-13.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-13.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-13.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-13.1/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/ |
| H A D | InstrumentationRuntimeMainThreadChecker.cpp | 246 ThreadCollectionSP threads; in GetBacktracesFromExtendedStopInfo() local 247 threads = std::make_shared<ThreadCollection>(); in GetBacktracesFromExtendedStopInfo() 253 return threads; in GetBacktracesFromExtendedStopInfo() 263 return threads; in GetBacktracesFromExtendedStopInfo() 278 threads->AddThread(new_thread_sp); in GetBacktracesFromExtendedStopInfo() 280 return threads; in GetBacktracesFromExtendedStopInfo()
|
| /freebsd-13.1/lib/libthr/tests/ |
| H A D | umtx_op_test.c | 73 pthread_t threads[THREAD_COUNT]; in ATF_TC_BODY() local 78 pthread_create(&threads[i], NULL, batching_threadfunc, in ATF_TC_BODY() 99 ATF_REQUIRE_EQ(0, pthread_join(threads[i], NULL)); in ATF_TC_BODY()
|
| /freebsd-13.1/usr.sbin/pmc/ |
| H A D | cmd_pmc_filter.cc | 201 char *events, char *processes, char *threads, bool exclusive, bool json, int infd, in pmc_filter_handler() argument 222 if (threads) in pmc_filter_handler() 223 parse_names(threads, threadlist, &threadcount); in pmc_filter_handler() 304 char *lwps, *pids, *events, *processes, *threads; in cmd_pmc_filter() local 311 threads = processes = lwps = pids = events = NULL; in cmd_pmc_filter() 332 threads = strdup(optarg); in cmd_pmc_filter() 361 processes, threads, exclusive, json, prelogfd, postlogfd); in cmd_pmc_filter()
|
| /freebsd-13.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-13.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-13.1/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/UBSan/ |
| H A D | InstrumentationRuntimeUBSan.cpp | 304 ThreadCollectionSP threads; in GetBacktracesFromExtendedStopInfo() local 305 threads = std::make_shared<ThreadCollection>(); in GetBacktracesFromExtendedStopInfo() 311 return threads; in GetBacktracesFromExtendedStopInfo() 321 return threads; in GetBacktracesFromExtendedStopInfo() 338 threads->AddThread(new_thread_sp); in GetBacktracesFromExtendedStopInfo() 340 return threads; in GetBacktracesFromExtendedStopInfo()
|
| /freebsd-13.1/lib/libc/tests/resolv/ |
| H A D | resolv_test.c | 256 pthread_t *threads; in run_tests() local 275 threads = calloc(nthreads, sizeof(pthread_t)); in run_tests() 276 ATF_REQUIRE(threads != NULL); in run_tests() 279 threads[i] = run(nhosts, method, i); in run_tests() 285 remaining = (uintptr_t)pthread_join(threads[i], NULL); in run_tests() 299 free(threads); in run_tests()
|