| /Linux-v5.4/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(pthread_t *)); 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-v5.4/fs/xfs/ |
| D | xfs_pwork.c | 65 unsigned int nr_threads) in xfs_pwork_init() argument 69 nr_threads = xfs_globals.pwork_threads; in xfs_pwork_init() 71 trace_xfs_pwork_init(mp, nr_threads, current->pid); in xfs_pwork_init() 73 pctl->wq = alloc_workqueue("%s-%d", WQ_FREEZABLE, nr_threads, tag, in xfs_pwork_init()
|
| D | xfs_pwork.h | 55 unsigned int nr_threads);
|
| D | xfs_iwalk.c | 601 unsigned int nr_threads; in xfs_iwalk_threaded() local 607 nr_threads = xfs_pwork_guess_datadev_parallelism(mp); in xfs_iwalk_threaded() 609 nr_threads); in xfs_iwalk_threaded()
|
| D | xfs_trace.h | 3566 TP_PROTO(struct xfs_mount *mp, unsigned int nr_threads, pid_t pid), 3567 TP_ARGS(mp, nr_threads, pid), 3570 __field(unsigned int, nr_threads) 3575 __entry->nr_threads = nr_threads; 3580 __entry->nr_threads, __entry->pid)
|
| /Linux-v5.4/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 | 80 int nr_threads; member 170 OPT_INTEGER('t', "nr_threads" , &p0.nr_threads, "number of threads per process"), 881 for (t = 0; t < g->p.nr_threads; t++) { in count_process_nodes() 886 task_nr = process_nr*g->p.nr_threads + t; in count_process_nodes() 917 for (t = 0; t < g->p.nr_threads; t++) { in count_node_processes() 922 task_nr = p*g->p.nr_threads + t; in count_node_processes() 1123 if (process_nr == g->p.nr_proc-1 && thread_nr == g->p.nr_threads-1) in worker_thread() 1163 val += do_work(process_data, g->p.bytes_process, thread_nr, g->p.nr_threads, l, val); in worker_thread() 1176 val += do_work(process_data, g->p.bytes_process_locked, thread_nr, g->p.nr_threads, l, val); in worker_thread() 1300 task_nr = process_nr*g->p.nr_threads; in worker_process() [all …]
|
| /Linux-v5.4/kernel/power/ |
| D | swap.c | 678 unsigned thr, run_threads, nr_threads; in save_image_lzo() local 689 nr_threads = num_online_cpus() - 1; in save_image_lzo() 690 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in save_image_lzo() 699 data = vmalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo() 705 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo() 719 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 742 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 761 pr_info("Using %u thread(s) for compression\n", nr_threads); in save_image_lzo() 770 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 863 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo() [all …]
|
| /Linux-v5.4/arch/s390/appldata/ |
| D | appldata_os.c | 69 u32 nr_threads; /* number of threads */ member 105 os_data->nr_threads = nr_threads; in appldata_get_os_data()
|
| D | appldata_base.c | 550 EXPORT_SYMBOL_GPL(nr_threads);
|
| /Linux-v5.4/include/linux/sched/ |
| D | stat.h | 16 extern int nr_threads;
|
| D | signal.h | 83 int nr_threads; member 626 return task->signal->nr_threads; in get_nr_threads()
|
| /Linux-v5.4/fs/proc/ |
| D | loadavg.c | 23 nr_running(), nr_threads, in loadavg_proc_show()
|
| /Linux-v5.4/tools/perf/lib/ |
| D | evlist.c | 249 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local 257 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
|
| /Linux-v5.4/tools/perf/util/ |
| D | evlist.c | 359 int nr_threads = perf_evlist__nr_threads(evlist, evsel); in perf_evlist__enable_event_cpu() local 364 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__enable_event_cpu() 716 int nr_threads = perf_thread_map__nr(evlist->core.threads); in evlist__mmap_per_cpu() local 726 for (thread = 0; thread < nr_threads; thread++) { in evlist__mmap_per_cpu() 744 int nr_threads = perf_thread_map__nr(evlist->core.threads); in evlist__mmap_per_thread() local 747 for (thread = 0; thread < nr_threads; thread++) { in evlist__mmap_per_thread()
|
| D | evsel.c | 1450 int nr_cpus, int nr_threads, in perf_evsel__remove_fd() argument 1454 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in perf_evsel__remove_fd() 1460 int nr_threads, int thread_idx) in update_fds() argument 1464 if (cpu_idx >= nr_cpus || thread_idx >= nr_threads) in update_fds() 1470 perf_evsel__remove_fd(pos, nr_cpus, nr_threads, thread_idx); in update_fds()
|
| /Linux-v5.4/init/ |
| D | init_task.c | 19 .nr_threads = 1,
|
| /Linux-v5.4/drivers/dma/ |
| D | img-mdc-dma.c | 140 unsigned int nr_threads; member 924 mdma->nr_threads = in mdc_dma_probe() 1010 mdma->nr_channels, mdma->nr_threads); in mdc_dma_probe()
|
| /Linux-v5.4/include/linux/ |
| D | mm_types.h | 364 atomic_t nr_threads; member
|
| /Linux-v5.4/kernel/ |
| D | exit.c | 74 nr_threads--; in __unhash_process() 156 sig->nr_threads--; in __exit_signal() 464 if (atomic_dec_and_test(&core_state->nr_threads)) in exit_mm()
|
| D | fork.c | 124 int nr_threads; /* The idle threads do not count.. */ variable 1559 sig->nr_threads = 1; in copy_signal() 1894 if (nr_threads >= max_threads) in copy_process() 2208 current->signal->nr_threads++; in copy_process() 2218 nr_threads++; in copy_process()
|
| D | sys.c | 2526 info->procs = nr_threads; in do_sysinfo()
|
| /Linux-v5.4/fs/ |
| D | coredump.c | 432 atomic_set(&core_state->nr_threads, nr); in zap_threads()
|
| /Linux-v5.4/kernel/debug/kdb/ |
| D | kdb_main.c | 2501 val->procs = nr_threads-1; in kdb_sysinfo()
|