Home
last modified time | relevance | path

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

12

/linux/tools/testing/radix-tree/
A 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(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/fs/xfs/
A 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()
A Dxfs_trace.h3775 TP_PROTO(struct xfs_mount *mp, unsigned int nr_threads, pid_t pid),
3776 TP_ARGS(mp, nr_threads, pid),
3779 __field(unsigned int, nr_threads)
3784 __entry->nr_threads = nr_threads;
3789 __entry->nr_threads, __entry->pid)
/linux/tools/testing/selftests/cgroup/
A Dtest_kmem.c98 int nr_threads = 2 * get_nprocs(); in alloc_kmem_smp() local
103 tinfo = calloc(nr_threads, sizeof(pthread_t)); in alloc_kmem_smp()
107 for (i = 0; i < nr_threads; i++) { in alloc_kmem_smp()
115 for (i = 0; i < nr_threads; i++) { in alloc_kmem_smp()
250 int nr_threads = 1000; in spawn_1000_threads() local
256 tinfo = calloc(nr_threads, sizeof(pthread_t)); in spawn_1000_threads()
260 for (i = 0; i < nr_threads; i++) { in spawn_1000_threads()
/linux/kernel/power/
A Dswap.c687 unsigned thr, run_threads, nr_threads; in save_image_lzo() local
698 nr_threads = num_online_cpus() - 1; in save_image_lzo()
699 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in save_image_lzo()
725 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
748 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
870 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo()
1188 nr_threads = num_online_cpus() - 1; in load_image_lzo()
1189 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in load_image_lzo()
1217 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
1240 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
[all …]
/linux/tools/perf/bench/
A Dsched-pipe.c83 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()
A Dnuma.c80 int nr_threads; member
902 for (t = 0; t < g->p.nr_threads; t++) { in count_process_nodes()
907 task_nr = process_nr*g->p.nr_threads + t; in count_process_nodes()
941 for (t = 0; t < g->p.nr_threads; t++) { in count_node_processes()
946 task_nr = p*g->p.nr_threads + t; in count_node_processes()
1333 task_nr = process_nr*g->p.nr_threads; in worker_process()
1347 for (t = 0; t < g->p.nr_threads; t++) { in worker_process()
1363 for (t = 0; t < g->p.nr_threads; t++) { in worker_process()
1462 BUG_ON(g->p.nr_threads <= 0); in init()
1678 for (t = 0; t < g->p.nr_threads; t++) { in __bench_numa()
[all …]
/linux/lib/
A Dtest_vmalloc.c26 __param(int, nr_threads, 0,
476 nr_threads = clamp(nr_threads, 1, (int) USHRT_MAX); in init_test_configurtion()
479 tdriver = kvcalloc(nr_threads, sizeof(*tdriver), GFP_KERNEL); in init_test_configurtion()
508 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
535 for (i = 0; i < nr_threads; i++) { in do_concurrent_test()
/linux/arch/s390/appldata/
A Dappldata_os.c65 u32 nr_threads; /* number of threads */ member
101 os_data->nr_threads = nr_threads; in appldata_get_os_data()
A Dappldata_base.c549 EXPORT_SYMBOL_GPL(nr_threads);
/linux/tools/lib/perf/
A Devlist.c298 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local
306 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
513 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_thread() local
515 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_thread()
538 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_cpu() local
549 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_cpu()
/linux/include/linux/sched/
A Dstat.h17 extern int nr_threads;
A Dsignal.h81 atomic_t nr_threads; member
96 int nr_threads; member
679 return task->signal->nr_threads; in get_nr_threads()
/linux/fs/proc/
A Dloadavg.c23 nr_running(), nr_threads, in loadavg_proc_show()
/linux/tools/tracing/latency/
A 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/init/
A Dinit_task.c19 .nr_threads = 1,
/linux/drivers/dma/
A Dimg-mdc-dma.c140 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/kernel/
A Dexit.c74 nr_threads--; in __unhash_process()
147 sig->nr_threads--; in __exit_signal()
370 if (atomic_dec_and_test(&core_state->nr_threads)) in coredump_task_exit()
A Dfork.c125 int nr_threads; /* The idle threads do not count.. */ variable
1646 sig->nr_threads = 1; in copy_signal()
2073 if (data_race(nr_threads >= max_threads)) in copy_process()
2387 current->signal->nr_threads++; in copy_process()
2397 nr_threads++; in copy_process()
A Dsys.c2571 info->procs = nr_threads; in do_sysinfo()
/linux/tools/perf/util/
A Devsel.c1657 static void evsel__remove_fd(struct evsel *pos, int nr_cpus, int nr_threads, int thread_idx) in evsel__remove_fd() argument
1660 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in evsel__remove_fd()
1666 int nr_threads, int thread_idx) in update_fds() argument
1670 if (cpu_idx >= nr_cpus || thread_idx >= nr_threads) in update_fds()
1676 evsel__remove_fd(pos, nr_cpus, nr_threads, thread_idx); in update_fds()
A Devlist.c519 int nr_threads = evlist__nr_threads(evlist, evsel); in evlist__enable_event_cpu() local
524 for (thread = 0; thread < nr_threads; thread++) { in evlist__enable_event_cpu()
/linux/fs/
A Dcoredump.c384 atomic_set(&core_state->nr_threads, nr); in zap_threads()
/linux/kernel/debug/kdb/
A Dkdb_main.c2485 val->procs = nr_threads-1; in kdb_sysinfo()
/linux/
A DSystem.map160356 ffff8000120ee7c8 B nr_threads

Completed in 227 milliseconds

12