| /linux/tools/testing/radix-tree/ |
| A D | regression1.c | 171 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/fs/xfs/ |
| A D | xfs_pwork.c | 66 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/tools/lib/perf/ |
| A D | threadmap.c | 45 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()
|
| A D | evlist.c | 328 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/tools/testing/selftests/cgroup/ |
| A D | test_kmem.c | 102 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/kernel/power/ |
| A D | swap.c | 704 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() 744 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image() 774 for (thr = 0; thr < nr_threads; thr++) { 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() 1224 nr_threads = num_online_cpus() - 1; in load_compressed_image() 1225 nr_threads = clamp_val(nr_threads, 1, CMP_THREADS); in load_compressed_image() 1253 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image() [all …]
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| A D | run_bench_bpf_hashmap_full_update.sh | 8 nr_threads=`expr $(cat /proc/cpuinfo | grep "processor"| wc -l) - 1` 9 summary=$($RUN_BENCH -p $nr_threads bpf-hashmap-full-update)
|
| /linux/lib/ |
| A D | test_vmalloc.c | 26 __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/tools/testing/selftests/bpf/prog_tests/ |
| A D | task_local_storage.c | 168 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/tools/perf/bench/ |
| A D | sched-pipe.c | 204 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()
|
| A D | numa.c | 81 int nr_threads; member 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() 1367 task_nr = process_nr*g->p.nr_threads; in worker_process() 1381 for (t = 0; t < g->p.nr_threads; t++) { in worker_process() 1397 for (t = 0; t < g->p.nr_threads; t++) { in worker_process() 1506 BUG_ON(g->p.nr_threads <= 0); in init() 1722 for (t = 0; t < g->p.nr_threads; t++) { in __bench_numa() [all …]
|
| /linux/fs/bcachefs/ |
| A D | tests.c | 762 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/tools/testing/selftests/net/tcp_ao/lib/ |
| A D | setup.c | 175 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/arch/s390/appldata/ |
| A D | appldata_os.c | 65 u32 nr_threads; /* number of threads */ member 101 os_data->nr_threads = nr_threads; in appldata_get_os_data()
|
| A D | appldata_base.c | 424 EXPORT_SYMBOL_GPL(nr_threads);
|
| /linux/tools/testing/selftests/kvm/aarch64/ |
| A D | vgic_lpi_stress.c | 374 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/include/linux/sched/ |
| A D | stat.h | 17 extern int nr_threads;
|
| A D | signal.h | 82 atomic_t nr_threads; member 97 int nr_threads; member 698 return task->signal->nr_threads; in get_nr_threads()
|
| /linux/tools/perf/ |
| A D | builtin-record.c | 179 int nr_threads; member 1243 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() 3612 for (t = 0; t < nr_threads; t++) in record__free_thread_masks() 3628 for (t = 0; t < nr_threads; t++) { in record__alloc_thread_masks() 3652 rec->nr_threads = nr_cpus; in record__init_thread_cpu_masks() 3768 rec->nr_threads = t; in record__init_thread_masks_spec() 3770 if (!rec->nr_threads) in record__init_thread_masks_spec() 3932 rec->nr_threads = 1; in record__init_thread_default_masks() [all …]
|
| /linux/fs/proc/ |
| A D | loadavg.c | 24 nr_running(), nr_threads, in loadavg_proc_show()
|
| /linux/tools/lib/perf/include/perf/ |
| A D | threadmap.h | 11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
|
| /linux/tools/tracing/latency/ |
| A D | latency-collector.c | 77 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/init/ |
| A D | init_task.c | 21 .nr_threads = 1,
|
| /linux/drivers/dma/ |
| A D | img-mdc-dma.c | 139 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/kernel/ |
| A D | fork.c | 137 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()
|