/linux-6.6.21/tools/testing/radix-tree/ |
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-6.6.21/fs/xfs/ |
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-6.6.21/tools/lib/perf/ |
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()
|
D | evlist.c | 322 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local 330 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 546 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_thread() local 552 __func__, nr_cpus, nr_threads); in mmap_per_thread() 555 for (thread = 0; thread < nr_threads; thread++, idx++) { in mmap_per_thread() 588 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_cpu() local 593 pr_debug("%s: nr cpu values %d nr threads %d\n", __func__, nr_cpus, nr_threads); in mmap_per_cpu() 599 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_cpu()
|
/linux-6.6.21/tools/testing/selftests/cgroup/ |
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-6.6.21/tools/perf/bench/ |
D | sched-pipe.c | 83 int nr_threads = 2; in bench_sched_pipe() local 101 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe() 118 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe() 125 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
|
D | numa.c | 81 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.6.21/kernel/power/ |
D | swap.c | 689 unsigned thr, run_threads, nr_threads; in save_image_lzo() local 700 nr_threads = num_online_cpus() - 1; in save_image_lzo() 701 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in save_image_lzo() 710 data = vzalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo() 727 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 750 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 769 pr_info("Using %u thread(s) for compression\n", nr_threads); in save_image_lzo() 778 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 872 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo() 1176 unsigned i, thr, run_threads, nr_threads; in load_image_lzo() local [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/benchs/ |
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-6.6.21/lib/ |
D | test_vmalloc.c | 26 __param(int, nr_threads, 0, 511 nr_threads = clamp(nr_threads, 1, (int) USHRT_MAX); in init_test_configurtion() 514 tdriver = kvcalloc(nr_threads, sizeof(*tdriver), GFP_KERNEL); in init_test_configurtion() 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.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | task_local_storage.c | 174 const int nr_threads = 32; in test_nodeadlock() local 175 pthread_t tids[nr_threads]; in test_nodeadlock() 206 for (i = 0; i < nr_threads; i++) { in test_nodeadlock() 220 waitall(tids, nr_threads); in test_nodeadlock()
|
/linux-6.6.21/arch/s390/appldata/ |
D | appldata_os.c | 65 u32 nr_threads; /* number of threads */ member 101 os_data->nr_threads = nr_threads; in appldata_get_os_data()
|
D | appldata_base.c | 426 EXPORT_SYMBOL_GPL(nr_threads);
|
/linux-6.6.21/include/linux/sched/ |
D | stat.h | 17 extern int nr_threads;
|
D | signal.h | 81 atomic_t nr_threads; member 96 int nr_threads; member 704 return task->signal->nr_threads; in get_nr_threads()
|
/linux-6.6.21/tools/perf/ |
D | builtin-record.c | 178 int nr_threads; member 1078 for (t = 0; t < rec->nr_threads; t++) { in record__free_thread_data() 1157 rec->thread_data = zalloc(rec->nr_threads * sizeof(*(rec->thread_data))); in record__alloc_thread_data() 1164 for (t = 0; t < rec->nr_threads; t++) in record__alloc_thread_data() 1167 for (t = 0; t < rec->nr_threads; t++) { in record__alloc_thread_data() 2233 int t, tt, err, ret = 0, nr_threads = rec->nr_threads; in record__start_threads() local 2253 for (t = 1; t < nr_threads; t++) { in record__start_threads() 2299 for (t = 1; t < rec->nr_threads; t++) in record__stop_threads() 2302 for (t = 0; t < rec->nr_threads; t++) { in record__stop_threads() 2326 for (t = 0; t < rec->nr_threads; t++) in record__waking() [all …]
|
/linux-6.6.21/fs/proc/ |
D | loadavg.c | 24 nr_running(), nr_threads, in loadavg_proc_show()
|
/linux-6.6.21/tools/lib/perf/include/perf/ |
D | threadmap.h | 11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
|
/linux-6.6.21/tools/tracing/latency/ |
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-6.6.21/init/ |
D | init_task.c | 19 .nr_threads = 1,
|
/linux-6.6.21/drivers/dma/ |
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-6.6.21/kernel/ |
D | exit.c | 125 nr_threads--; in __unhash_process() 198 sig->nr_threads--; in __exit_signal() 429 if (atomic_dec_and_test(&core_state->nr_threads)) in coredump_task_exit()
|
D | fork.c | 128 int nr_threads; /* The idle threads do not count.. */ variable 1860 sig->nr_threads = 1; in copy_signal() 2379 if (data_race(nr_threads >= max_threads)) in copy_process() 2702 current->signal->nr_threads++; in copy_process() 2713 nr_threads++; in copy_process()
|
/linux-6.6.21/tools/lib/perf/Documentation/ |
D | libperf.txt | 65 struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
|
/linux-6.6.21/tools/perf/util/ |
D | evsel.c | 1681 static void evsel__remove_fd(struct evsel *pos, int nr_cpus, int nr_threads, int thread_idx) in evsel__remove_fd() argument 1684 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in evsel__remove_fd() 1690 int nr_threads, int thread_idx) in update_fds() argument 1694 if (cpu_map_idx >= nr_cpus || thread_idx >= nr_threads) in update_fds() 1700 evsel__remove_fd(pos, nr_cpus, nr_threads, thread_idx); in update_fds()
|