/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
H 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()
|
/kernel/linux/linux-6.6/tools/testing/radix-tree/ |
H 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()
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_pwork.c | 56 * be called. @tag will be written into the kernel threads. @nr_threads is 65 unsigned int nr_threads) in xfs_pwork_init() 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() 60 xfs_pwork_init( struct xfs_mount *mp, struct xfs_pwork_ctl *pctl, xfs_pwork_work_fn work_fn, const char *tag, unsigned int nr_threads) xfs_pwork_init() argument
|
H A D | xfs_pwork.h | 55 unsigned int nr_threads);
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_pwork.c | 56 * be called. @tag will be written into the kernel threads. @nr_threads is 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()
|
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A 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()
|
H A D | numa.c | 80 int nr_threads; member 171 OPT_INTEGER('t', "nr_threads" , &p0.nr_threads, "number of threads per process"), 895 for (t = 0; t < g->p.nr_threads; t++) { in count_process_nodes() 900 task_nr = process_nr*g->p.nr_threads + t; in count_process_nodes() 931 for (t = 0; t < g->p.nr_threads; t++) { in count_node_processes() 936 task_nr = p*g->p.nr_threads + t; in count_node_processes() 1137 if (process_nr == g->p.nr_proc-1 && thread_nr == g->p.nr_threads-1) in worker_thread() 1180 val += do_work(process_data, g->p.bytes_process, thread_nr, g->p.nr_threads, l, val); in worker_thread() 1193 val += do_work(process_data, g->p.bytes_process_locked, thread_nr, g->p.nr_threads, in worker_thread() [all...] |
/kernel/linux/linux-6.6/tools/lib/perf/ |
H 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()
|
H A 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()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A 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()
|
H A 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, in worker_thread() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | test_kmem.c | 98 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() 244 int nr_threads = 1000; in spawn_1000_threads() local 250 tinfo = calloc(nr_threads, sizeof(pthread_t)); in spawn_1000_threads() 254 for (i = 0; i < nr_threads; i++) { in spawn_1000_threads()
|
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H 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()
|
/kernel/linux/linux-5.10/kernel/power/ |
H A D | swap.c | 687 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() 708 data = vmalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo() 714 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo() 728 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 751 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo() 770 pr_info("Using %u thread(s) for compression\n", nr_threads); in save_image_lzo() 779 for (thr = 0; thr < nr_threads; th in save_image_lzo() 1177 unsigned i, thr, run_threads, nr_threads; load_image_lzo() local [all...] |
/kernel/linux/linux-6.6/kernel/power/ |
H A 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; th in save_image_lzo() 1176 unsigned i, thr, run_threads, nr_threads; load_image_lzo() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/s390/appldata/ |
H 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()
|
/kernel/linux/linux-6.6/arch/s390/appldata/ |
H 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()
|
/kernel/linux/linux-6.6/lib/ |
H A 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()
|
/kernel/linux/linux-5.10/tools/lib/perf/ |
H A D | evlist.c | 292 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local 300 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd() 507 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_thread() local 509 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_thread() 532 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_cpu() local 543 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_cpu()
|
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | stat.h | 16 extern int nr_threads;
|
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | stat.h | 17 extern int nr_threads;
|
/kernel/linux/linux-6.6/tools/perf/ |
H A 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() 2207 int t, tt, err, ret = 0, nr_threads = rec->nr_threads; in record__start_threads() local 2227 for (t = 1; t < nr_threads; t++) { in record__start_threads() 2273 for (t = 1; t < rec->nr_threads; t++) in record__stop_threads() 2276 for (t = 0; t < rec->nr_threads; in record__stop_threads() 3559 record__free_thread_masks(struct record *rec, int nr_threads) record__free_thread_masks() argument 3570 record__alloc_thread_masks(struct record *rec, int nr_threads, int nr_bits) record__alloc_thread_masks() argument [all...] |
/kernel/linux/linux-6.6/tools/lib/perf/include/perf/ |
H A D | threadmap.h | 11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | loadavg.c | 23 nr_running(), nr_threads, in loadavg_proc_show()
|