Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 248) sorted by relevance

12345678910

/freebsd-13.1/tools/tools/crypto/
H A Dcryptorun.sh17 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 Dx86.c99 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 Dt_getenv_thread.c150 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 Dt_threads.c78 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 Dstream_encoder_mt.c146 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 Doutqueue.c24 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 DTraceIntelPTSessionFileParser.cpp48 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 Dperftest.c56 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 Darchive_write_add_filter_zstd.c53 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 Darchive_write_add_filter_xz.c103 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 Dpool.c37 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 Dperf.shlib45 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 DSBThreadCollection.cpp38 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 Dsanitizer_stoptheworld_mac.cpp57 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 Devent_iocp.c190 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 Devent_iocp.c190 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 Dunit_test.c238 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 Dthreadsappend.c87 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 DInstrumentationRuntimeMainThreadChecker.cpp246 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 Dumtx_op_test.c73 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 Dcmd_pmc_filter.cc201 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 Dacx_pthread.m49 # 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 Dacx_pthread.m49 # 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 DInstrumentationRuntimeUBSan.cpp304 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 Dresolv_test.c256 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()

12345678910