Home
last modified time | relevance | path

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

/kernel/dma/
Dmap_benchmark.c35 __u32 threads; /* how many threads will do map/unmap in parallel */ member
125 int threads = map->bparam.threads; in do_map_benchmark() local
132 tsk = kmalloc_array(threads, sizeof(*tsk), GFP_KERNEL); in do_map_benchmark()
138 for (i = 0; i < threads; i++) { in do_map_benchmark()
158 for (i = 0; i < threads; i++) { in do_map_benchmark()
166 for (i = 0; i < threads; i++) { in do_map_benchmark()
196 for (i = 0; i < threads; i++) in do_map_benchmark()
216 if (map->bparam.threads == 0 || in map_benchmark_ioctl()
217 map->bparam.threads > DMA_MAP_MAX_THREADS) { in map_benchmark_ioctl()
/kernel/kcsan/
Dkcsan_test.c41 static struct task_struct **threads; /* Lists of threads. */ variable
1131 if (WARN_ON(threads)) in test_init()
1143 threads = kcalloc(nthreads + 1, sizeof(struct task_struct *), GFP_KERNEL); in test_init()
1144 if (WARN_ON(!threads)) in test_init()
1147 threads[nthreads] = NULL; in test_init()
1149 if (torture_create_kthread(access_thread, NULL, threads[i])) in test_init()
1158 kfree(threads); in test_init()
1159 threads = NULL; in test_init()
1176 if (threads) { in test_exit()
1177 for (stop_thread = threads; *stop_thread; stop_thread++) in test_exit()
[all …]
/kernel/
Dfork.c828 u64 threads; in set_max_threads() local
836 threads = MAX_THREADS; in set_max_threads()
838 threads = div64_u64((u64) nr_pages * (u64) PAGE_SIZE, in set_max_threads()
841 if (threads > max_threads_suggested) in set_max_threads()
842 threads = max_threads_suggested; in set_max_threads()
844 max_threads = clamp_t(u64, threads, MIN_THREADS, MAX_THREADS); in set_max_threads()
3272 int threads = max_threads; in sysctl_max_threads() local
3277 t.data = &threads; in sysctl_max_threads()
3285 max_threads = threads; in sysctl_max_threads()
/kernel/trace/
DKconfig340 This tracer, when enabled will create one or more kernel threads,
389 NMI, IRQs, SoftIRQs, and threads is increased anytime the tool
412 to find sources of wakeup latencies of real-time threads.
430 IRQs and other threads. It also enables the capture of the
935 to each of the threads, where the IPI handler will also write