Home
last modified time | relevance | path

Searched refs:nr_threads (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.12.1/tools/testing/radix-tree/
Dregression1.c171 int nr_threads; in regression1_test() local
177 nr_threads = 2; in regression1_test()
178 pthread_barrier_init(&worker_barrier, NULL, nr_threads); in regression1_test()
180 threads = malloc(nr_threads * sizeof(*threads)); in regression1_test()
182 for (i = 0; i < nr_threads; i++) { in regression1_test()
190 for (i = 0; i < nr_threads; i++) { in regression1_test()
/linux-6.12.1/fs/xfs/
Dxfs_pwork.c66 unsigned int nr_threads = 0; in xfs_pwork_init() local
70 nr_threads = xfs_globals.pwork_threads; in xfs_pwork_init()
72 trace_xfs_pwork_init(mp, nr_threads, current->pid); in xfs_pwork_init()
75 WQ_UNBOUND | WQ_SYSFS | WQ_FREEZABLE, nr_threads, tag, in xfs_pwork_init()
/linux-6.12.1/tools/lib/perf/
Dthreadmap.c45 struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array) in perf_thread_map__new_array() argument
47 struct perf_thread_map *threads = thread_map__alloc(nr_threads); in perf_thread_map__new_array()
53 for (i = 0; i < nr_threads; i++) in perf_thread_map__new_array()
56 threads->nr = nr_threads; in perf_thread_map__new_array()
Devlist.c328 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local
336 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
552 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_thread() local
558 __func__, nr_cpus, nr_threads); in mmap_per_thread()
561 for (thread = 0; thread < nr_threads; thread++, idx++) { in mmap_per_thread()
594 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_cpu() local
599 pr_debug("%s: nr cpu values %d nr threads %d\n", __func__, nr_cpus, nr_threads); in mmap_per_cpu()
605 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_cpu()
/linux-6.12.1/tools/testing/selftests/cgroup/
Dtest_kmem.c102 int nr_threads = 2 * get_nprocs(); in alloc_kmem_smp() local
107 tinfo = calloc(nr_threads, sizeof(pthread_t)); in alloc_kmem_smp()
111 for (i = 0; i < nr_threads; i++) { in alloc_kmem_smp()
119 for (i = 0; i < nr_threads; i++) { in alloc_kmem_smp()
247 int nr_threads = 1000; in spawn_1000_threads() local
253 tinfo = calloc(nr_threads, sizeof(pthread_t)); in spawn_1000_threads()
257 for (i = 0; i < nr_threads; i++) { in spawn_1000_threads()
/linux-6.12.1/kernel/power/
Dswap.c704 unsigned thr, run_threads, nr_threads; in save_compressed_image() local
717 nr_threads = num_online_cpus() - 1; in save_compressed_image()
718 nr_threads = clamp_val(nr_threads, 1, CMP_THREADS); in save_compressed_image()
727 data = vzalloc(array_size(nr_threads, sizeof(*data))); in save_compressed_image()
744 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
774 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
793 pr_info("Using %u thread(s) for %s compression\n", nr_threads, hib_comp_algo); in save_compressed_image()
802 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
899 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
1210 unsigned i, thr, run_threads, nr_threads; in load_compressed_image() local
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Drun_bench_bpf_hashmap_full_update.sh8 nr_threads=`expr $(cat /proc/cpuinfo | grep "processor"| wc -l) - 1`
9 summary=$($RUN_BENCH -p $nr_threads bpf-hashmap-full-update)
/linux-6.12.1/lib/
Dtest_vmalloc.c26 __param(int, nr_threads, 0,
511 nr_threads = clamp(nr_threads, 1, (int) USHRT_MAX); in init_test_configuration()
514 tdriver = kvcalloc(nr_threads, sizeof(*tdriver), GFP_KERNEL); in init_test_configuration()
543 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
570 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtask_local_storage.c168 const int nr_threads = 32; in test_nodeadlock() local
169 pthread_t tids[nr_threads]; in test_nodeadlock()
200 for (i = 0; i < nr_threads; i++) { in test_nodeadlock()
214 waitall(tids, nr_threads); in test_nodeadlock()
/linux-6.12.1/tools/perf/bench/
Dsched-pipe.c204 int nr_threads = 2; in bench_sched_pipe() local
222 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
237 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
244 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
Dnuma.c81 int nr_threads; member
171 OPT_INTEGER('t', "nr_threads" , &p0.nr_threads, "number of threads per process"),
935 for (t = 0; t < g->p.nr_threads; t++) { in count_process_nodes()
940 task_nr = process_nr*g->p.nr_threads + t; in count_process_nodes()
974 for (t = 0; t < g->p.nr_threads; t++) { in count_node_processes()
979 task_nr = p*g->p.nr_threads + t; in count_node_processes()
1186 if (process_nr == g->p.nr_proc-1 && thread_nr == g->p.nr_threads-1) in worker_thread()
1229 val += do_work(process_data, g->p.bytes_process, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1242 val += do_work(process_data, g->p.bytes_process_locked, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1367 task_nr = process_nr*g->p.nr_threads; in worker_process()
[all …]
/linux-6.12.1/fs/bcachefs/
Dtests.c762 unsigned nr_threads; member
788 ret = j->fn(j->c, div64_u64(j->nr, j->nr_threads)); in btree_perf_test_thread()
803 u64 nr, unsigned nr_threads) in bch2_btree_perf_test() argument
805 struct test_job j = { .c = c, .nr = nr, .nr_threads = nr_threads }; in bch2_btree_perf_test()
812 if (nr == 0 || nr_threads == 0) { in bch2_btree_perf_test()
817 atomic_set(&j.ready, nr_threads); in bch2_btree_perf_test()
820 atomic_set(&j.done, nr_threads); in bch2_btree_perf_test()
862 if (nr_threads == 1) in bch2_btree_perf_test()
865 for (i = 0; i < nr_threads; i++) in bch2_btree_perf_test()
878 name_buf, nr_buf.buf, nr_threads, in bch2_btree_perf_test()
[all …]
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dsetup.c175 static unsigned int nr_threads = 1; variable
189 if (stage_threads[q] == nr_threads) { in synchronize_threads()
194 while (stage_threads[q] < nr_threads) in synchronize_threads()
269 nr_threads++; in __test_init()
/linux-6.12.1/arch/s390/appldata/
Dappldata_os.c65 u32 nr_threads; /* number of threads */ member
101 os_data->nr_threads = nr_threads; in appldata_get_os_data()
Dappldata_base.c424 EXPORT_SYMBOL_GPL(nr_threads);
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvgic_lpi_stress.c374 u32 nr_threads; in main() local
398 nr_threads = test_data.nr_cpus + test_data.nr_devices; in main()
399 if (nr_threads > get_nprocs()) in main()
401 nr_threads, get_nprocs()); in main()
/linux-6.12.1/tools/perf/
Dbuiltin-record.c179 int nr_threads; member
1157 for (t = 0; t < rec->nr_threads; t++) { in record__free_thread_data()
1236 rec->thread_data = zalloc(rec->nr_threads * sizeof(*(rec->thread_data))); in record__alloc_thread_data()
1243 for (t = 0; t < rec->nr_threads; t++) in record__alloc_thread_data()
1246 for (t = 0; t < rec->nr_threads; t++) { in record__alloc_thread_data()
2258 int t, tt, err, ret = 0, nr_threads = rec->nr_threads; in record__start_threads() local
2278 for (t = 1; t < nr_threads; t++) { in record__start_threads()
2324 for (t = 1; t < rec->nr_threads; t++) in record__stop_threads()
2327 for (t = 0; t < rec->nr_threads; t++) { in record__stop_threads()
2351 for (t = 0; t < rec->nr_threads; t++) in record__waking()
[all …]
/linux-6.12.1/include/linux/sched/
Dstat.h17 extern int nr_threads;
Dsignal.h82 atomic_t nr_threads; member
97 int nr_threads; member
698 return task->signal->nr_threads; in get_nr_threads()
/linux-6.12.1/fs/proc/
Dloadavg.c24 nr_running(), nr_threads, in loadavg_proc_show()
/linux-6.12.1/tools/lib/perf/include/perf/
Dthreadmap.h11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
/linux-6.12.1/tools/tracing/latency/
Dlatency-collector.c77 static unsigned int nr_threads = DEFAULT_NR_PRINTER_THREADS; variable
1642 if (nr_threads > MAX_THREADS) { in start_printthread()
1645 nr_threads, MAX_THREADS); in start_printthread()
1646 nr_threads = MAX_THREADS; in start_printthread()
1648 for (i = 0; i < nr_threads; i++) { in start_printthread()
1931 nr_threads = value; in scan_arguments()
2040 policy_name(sched_policy), sched_pri, nr_threads); in show_params()
/linux-6.12.1/init/
Dinit_task.c21 .nr_threads = 1,
/linux-6.12.1/drivers/dma/
Dimg-mdc-dma.c139 unsigned int nr_threads; member
921 mdma->nr_threads = in mdc_dma_probe()
1007 mdma->nr_channels, mdma->nr_threads); in mdc_dma_probe()
/linux-6.12.1/kernel/
Dfork.c137 int nr_threads; /* The idle threads do not count.. */ variable
1847 sig->nr_threads = 1; in copy_signal()
2256 if (data_race(nr_threads >= max_threads)) in copy_process()
2578 current->signal->nr_threads++; in copy_process()
2587 nr_threads++; in copy_process()

12