Home
last modified time | relevance | path

Searched refs:nthreads (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/tools/perf/bench/
Dfutex-requeue.c37 static unsigned int ncpus, threads_starting, nthreads = 0; variable
41 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
61 nthreads, in print_summary()
85 threads_starting = nthreads; in block_threads()
88 for (i = 0; i < nthreads; i++) { in block_threads()
125 if (!nthreads) in bench_futex_requeue()
126 nthreads = ncpus; in bench_futex_requeue()
128 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_requeue()
135 if (nrequeue > nthreads) in bench_futex_requeue()
136 nrequeue = nthreads; in bench_futex_requeue()
[all …]
Dfutex-wake.c38 static unsigned int ncpus, threads_starting, nthreads = 0; variable
42 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
80 nthreads, in print_summary()
91 threads_starting = nthreads; in block_threads()
94 for (i = 0; i < nthreads; i++) { in block_threads()
133 if (!nthreads) in bench_futex_wake()
134 nthreads = ncpus; in bench_futex_wake()
136 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_wake()
145 getpid(), nthreads, fshared ? "shared":"private", &futex1, nwakes); in bench_futex_wake()
172 while (nwoken != nthreads) in bench_futex_wake()
[all …]
Dfutex-lock-pi.c30 static unsigned int ncpus, nthreads = 0; variable
39 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
114 threads_starting = nthreads; in create_threads()
116 for (i = 0; i < nthreads; i++) { in create_threads()
155 if (!nthreads) in bench_futex_lock_pi()
156 nthreads = ncpus; in bench_futex_lock_pi()
158 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_lock_pi()
166 getpid(), nthreads, nsecs); in bench_futex_lock_pi()
173 threads_starting = nthreads; in bench_futex_lock_pi()
189 for (i = 0; i < nthreads; i++) { in bench_futex_lock_pi()
[all …]
Dfutex-hash.c24 static unsigned int nthreads = 0; variable
45 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
131 if (!nthreads) /* default to the number of CPUs */ in bench_futex_hash()
132 nthreads = ncpus; in bench_futex_hash()
134 worker = calloc(nthreads, sizeof(*worker)); in bench_futex_hash()
142 getpid(), nthreads, nfutexes, fshared ? "shared":"private", nsecs); in bench_futex_hash()
149 threads_starting = nthreads; in bench_futex_hash()
152 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
182 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
193 for (i = 0; i < nthreads; i++) { in bench_futex_hash()
/linux-4.4.14/tools/perf/util/
Dcounts.c5 struct perf_counts *perf_counts__new(int ncpus, int nthreads) in perf_counts__new() argument
12 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
42 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_counts() argument
44 evsel->counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_counts()
Dstat.c126 int ncpus, int nthreads) in perf_evsel__alloc_prev_raw_counts() argument
130 counts = perf_counts__new(ncpus, nthreads); in perf_evsel__alloc_prev_raw_counts()
146 int nthreads = thread_map__nr(evsel->threads); in perf_evsel__alloc_stats() local
149 perf_evsel__alloc_counts(evsel, ncpus, nthreads) < 0 || in perf_evsel__alloc_stats()
150 (alloc_raw && perf_evsel__alloc_prev_raw_counts(evsel, ncpus, nthreads) < 0)) in perf_evsel__alloc_stats()
286 int nthreads = thread_map__nr(counter->threads); in process_counter_maps() local
291 nthreads = 1; in process_counter_maps()
293 for (thread = 0; thread < nthreads; thread++) { in process_counter_maps()
Dcounts.h30 struct perf_counts *perf_counts__new(int ncpus, int nthreads);
34 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus, int nthreads);
Devsel.c905 static int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() argument
910 nthreads = 1; in perf_evsel__alloc_fd()
912 evsel->fd = xyarray__new(ncpus, nthreads, sizeof(int)); in perf_evsel__alloc_fd()
916 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__alloc_fd()
925 static int perf_evsel__run_ioctl(struct perf_evsel *evsel, int ncpus, int nthreads, in perf_evsel__run_ioctl() argument
931 nthreads = 1; in perf_evsel__run_ioctl()
934 for (thread = 0; thread < nthreads; thread++) { in perf_evsel__run_ioctl()
946 int perf_evsel__apply_filter(struct perf_evsel *evsel, int ncpus, int nthreads, in perf_evsel__apply_filter() argument
949 return perf_evsel__run_ioctl(evsel, ncpus, nthreads, in perf_evsel__apply_filter()
984 int perf_evsel__enable(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__enable() argument
[all …]
Devsel.h208 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
209 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
228 int perf_evsel__apply_filter(struct perf_evsel *evsel, int ncpus, int nthreads,
230 int perf_evsel__enable(struct perf_evsel *evsel, int ncpus, int nthreads);
238 void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads);
Dstat.h82 int ncpus, int nthreads);
Devlist.c1230 nthreads = thread_map__nr(evlist->threads); in perf_evlist__apply_filters() local
1240 err = perf_evsel__apply_filter(evsel, ncpus, nthreads, evsel->filter); in perf_evlist__apply_filters()
1431 int nthreads = thread_map__nr(evlist->threads); in perf_evlist__close() local
1436 perf_evsel__close(evsel, n, nthreads); in perf_evlist__close()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dhotplug-cpu.c249 int err = -ENOSPC, len, nthreads, i; in pseries_add_processor() local
259 nthreads = len / sizeof(u32); in pseries_add_processor()
260 for (i = 0; i < nthreads; i++) in pseries_add_processor()
284 cpumask_shift_left(tmp, tmp, nthreads); in pseries_add_processor()
289 nthreads); in pseries_add_processor()
314 int len, nthreads, i; in pseries_remove_processor() local
322 nthreads = len / sizeof(u32); in pseries_remove_processor()
325 for (i = 0; i < nthreads; i++) { in pseries_remove_processor()
Ddlpar.c347 int len, nthreads, i; in dlpar_online_cpu() local
355 nthreads = len / sizeof(u32); in dlpar_online_cpu()
358 for (i = 0; i < nthreads; i++) { in dlpar_online_cpu()
427 int len, nthreads, i; in dlpar_offline_cpu() local
435 nthreads = len / sizeof(u32); in dlpar_offline_cpu()
438 for (i = 0; i < nthreads; i++) { in dlpar_offline_cpu()
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpcd.c671 int nthreads; in ptlrpcd_init() local
822 nthreads = cfs_cpt_weight(cptable, cpt); in ptlrpcd_init()
823 if (ptlrpcd_per_cpt_max > 0 && ptlrpcd_per_cpt_max < nthreads) in ptlrpcd_init()
824 nthreads = ptlrpcd_per_cpt_max; in ptlrpcd_init()
825 if (nthreads < 2) in ptlrpcd_init()
826 nthreads = 2; in ptlrpcd_init()
829 groupsize = nthreads; in ptlrpcd_init()
830 } else if (nthreads <= ptlrpcd_partner_group_size) { in ptlrpcd_init()
831 groupsize = nthreads; in ptlrpcd_init()
834 if (nthreads % groupsize != 0) in ptlrpcd_init()
[all …]
/linux-4.4.14/fs/nfsd/
Dnfssvc.c442 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads() argument
449 nthreads[i] = nn->nfsd_serv->sv_pools[i].sp_nrthreads; in nfsd_get_nrthreads()
467 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads() argument
485 nthreads[i] = min(nthreads[i], NFSD_MAXSERVS); in nfsd_set_nrthreads()
486 tot += nthreads[i]; in nfsd_set_nrthreads()
491 int new = nthreads[i] * NFSD_MAXSERVS / tot; in nfsd_set_nrthreads()
492 tot -= (nthreads[i] - new); in nfsd_set_nrthreads()
493 nthreads[i] = new; in nfsd_set_nrthreads()
496 nthreads[i]--; in nfsd_set_nrthreads()
505 if (nthreads[0] == 0) in nfsd_set_nrthreads()
[all …]
Dnfsctl.c486 int *nthreads; in write_pool_threads() local
502 nthreads = kcalloc(npools, sizeof(int), GFP_KERNEL); in write_pool_threads()
504 if (nthreads == NULL) in write_pool_threads()
509 rv = get_int(&mesg, &nthreads[i]); in write_pool_threads()
515 if (nthreads[i] < 0) in write_pool_threads()
518 rv = nfsd_set_nrthreads(i, nthreads, net); in write_pool_threads()
523 rv = nfsd_get_nrthreads(npools, nthreads, net); in write_pool_threads()
530 snprintf(mesg, size, "%d%c", nthreads[i], (i == npools-1 ? '\n' : ' ')); in write_pool_threads()
537 kfree(nthreads); in write_pool_threads()
/linux-4.4.14/arch/powerpc/kernel/
Dsetup-common.c446 int nthreads = 1; in smp_setup_cpu_maps() local
461 nthreads); in smp_setup_cpu_maps()
472 nthreads = len / sizeof(int); in smp_setup_cpu_maps()
474 for (j = 0; j < nthreads && cpu < nr_cpu_ids; j++) { in smp_setup_cpu_maps()
495 nthreads = 1; in smp_setup_cpu_maps()
520 maxcpus *= nthreads; in smp_setup_cpu_maps()
546 cpu_init_thread_core_maps(nthreads); in smp_setup_cpu_maps()
Dprom.c305 int i, nthreads; in early_init_dt_scan_cpus() local
319 nthreads = len / sizeof(int); in early_init_dt_scan_cpus()
325 for (i = 0; i < nthreads; i++) { in early_init_dt_scan_cpus()
386 if (nthreads > 1) in early_init_dt_scan_cpus()
/linux-4.4.14/tools/perf/
Dbuiltin-stat.c194 int nthreads = thread_map__nr(evsel_list->threads); in read_counter() local
202 nthreads = 1; in read_counter()
204 for (thread = 0; thread < nthreads; thread++) { in read_counter()
253 nthreads = thread_map__nr(evsel_list->threads); in handle_initial_delay() local
257 perf_evsel__enable(counter, ncpus, nthreads); in handle_initial_delay()
635 int nthreads = thread_map__nr(counter->threads); in print_aggr_thread() local
640 for (thread = 0; thread < nthreads; thread++) { in print_aggr_thread()