Home
last modified time | relevance | path

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

12

/openbmc/qemu/include/hw/i386/
H A Dtopology.h149 unsigned nr_threads = topo_info->threads_per_core; in x86_topo_ids_from_idx() local
152 nr_cores * nr_threads); in x86_topo_ids_from_idx()
154 nr_threads) % nr_dies; in x86_topo_ids_from_idx()
155 topo_ids->module_id = cpu_index / (nr_cores * nr_threads) % in x86_topo_ids_from_idx()
157 topo_ids->core_id = cpu_index / nr_threads % nr_cores; in x86_topo_ids_from_idx()
158 topo_ids->smt_id = cpu_index % nr_threads; in x86_topo_ids_from_idx()
/openbmc/linux/tools/testing/radix-tree/
H 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(*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()
/openbmc/linux/fs/xfs/
H 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()
/openbmc/linux/tools/lib/perf/
H A Dthreadmap.c45 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 Devlist.c328 int nr_threads = perf_thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local
336 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
552 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_thread() local
558 __func__, nr_cpus, nr_threads); in mmap_per_thread()
561 for (thread = 0; thread < nr_threads; thread++, idx++) { in mmap_per_thread()
594 int nr_threads = perf_thread_map__nr(evlist->threads); in mmap_per_cpu() local
599 pr_debug("%s: nr cpu values %d nr threads %d\n", __func__, nr_cpus, nr_threads); in mmap_per_cpu()
605 for (thread = 0; thread < nr_threads; thread++) { in mmap_per_cpu()
/openbmc/qemu/hw/ppc/
H A Dpnv_core.c196 int nr_threads = CPU_CORE(pc)->nr_threads; in pnv_core_power10_xscom_read() local
203 for (i = 0; i < nr_threads; i++) { in pnv_core_power10_xscom_read()
218 for (i = 0; i < nr_threads; i++) { in pnv_core_power10_xscom_read()
238 int nr_threads = CPU_CORE(pc)->nr_threads; in pnv_core_power10_xscom_write() local
244 for (i = 0; i < nr_threads; i++) { in pnv_core_power10_xscom_write()
348 for (i = 0; i < cc->nr_threads; i++) { in pnv_core_reset()
366 pc->threads = g_new(PowerPCCPU *, cc->nr_threads); in pnv_core_realize()
367 for (i = 0; i < cc->nr_threads; i++) { in pnv_core_realize()
375 if (cc->nr_threads > 1) { in pnv_core_realize()
389 for (j = 0; j < cc->nr_threads; j++) { in pnv_core_realize()
[all …]
H A Dspapr_cpu_core.c215 for (i = 0; i < cc->nr_threads; i++) { in spapr_cpu_core_reset()
243 for (i = 0; i < cc->nr_threads; i++) { in spapr_cpu_core_unrealize()
347 sc->threads = g_new0(PowerPCCPU *, cc->nr_threads); in spapr_cpu_core_realize()
348 for (i = 0; i < cc->nr_threads; i++) { in spapr_cpu_core_realize()
353 if (cpu && cc->nr_threads > 1) { in spapr_cpu_core_realize()
H A Dpnv.c140 int smt_threads = CPU_CORE(pc)->nr_threads; in pnv_dt_core()
268 uint32_t nr_threads) in pnv_dt_icp() argument
283 irange[1] = cpu_to_be32(nr_threads); in pnv_dt_icp()
285 rsize = sizeof(uint64_t) * 2 * nr_threads; in pnv_dt_icp()
287 for (i = 0; i < nr_threads; i++) { in pnv_dt_icp()
356 pnv_dt_icp(chip, fdt, pnv_core->hwid, CPU_CORE(pnv_core)->nr_threads); in pnv_chip_power8_dt_populate()
1496 for (j = 0; j < CPU_CORE(pnv_core)->nr_threads; j++) { in pnv_chip_icp_realize()
2385 chip->nr_threads, &error_fatal); in pnv_chip_core_realize()
2431 DEFINE_PROP_UINT32("nr-threads", PnvChip, nr_threads, 1),
2470 for (j = 0; j < cc->nr_threads; j++) { in pnv_chip_find_cpu()
[all …]
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dtest_kmem.c102 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()
/openbmc/linux/tools/perf/bench/
H 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()
H A Dnuma.c81 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 …]
/openbmc/linux/kernel/power/
H A Dswap.c689 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 …]
/openbmc/qemu/hw/cpu/
H A Dcore.c48 int64_t value = core->nr_threads; in core_prop_get_nr_threads()
63 core->nr_threads = value; in core_prop_set_nr_threads()
76 core->nr_threads = current_machine->smp.threads; in cpu_core_instance_init()
/openbmc/linux/tools/testing/selftests/bpf/benchs/
H A Drun_bench_bpf_hashmap_full_update.sh8 nr_threads=`expr $(cat /proc/cpuinfo | grep "processor"| wc -l) - 1`
9 summary=$($RUN_BENCH -p $nr_threads bpf-hashmap-full-update)
/openbmc/linux/lib/
H A Dtest_vmalloc.c26 __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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtask_local_storage.c174 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()
/openbmc/linux/arch/s390/appldata/
H A Dappldata_os.c65 u32 nr_threads; /* number of threads */ member
101 os_data->nr_threads = nr_threads; in appldata_get_os_data()
/openbmc/linux/tools/perf/
H A Dbuiltin-record.c178 int nr_threads; member
1109 for (t = 0; t < rec->nr_threads; t++) { in record__free_thread_data()
1188 rec->thread_data = zalloc(rec->nr_threads * sizeof(*(rec->thread_data))); in record__alloc_thread_data()
1195 for (t = 0; t < rec->nr_threads; t++) in record__alloc_thread_data()
1198 for (t = 0; t < rec->nr_threads; t++) { in record__alloc_thread_data()
2209 int t, tt, err, ret = 0, nr_threads = rec->nr_threads; in record__start_threads() local
2229 for (t = 1; t < nr_threads; t++) { in record__start_threads()
2275 for (t = 1; t < rec->nr_threads; t++) in record__stop_threads()
2278 for (t = 0; t < rec->nr_threads; t++) { in record__stop_threads()
2302 for (t = 0; t < rec->nr_threads; t++) in record__waking()
[all …]
/openbmc/qemu/include/hw/cpu/
H A Dcore.h25 int nr_threads; member
/openbmc/linux/include/linux/sched/
H A Dstat.h17 extern int nr_threads;
H A Dsignal.h81 atomic_t nr_threads; member
96 int nr_threads; member
704 return task->signal->nr_threads; in get_nr_threads()
/openbmc/linux/fs/proc/
H A Dloadavg.c24 nr_running(), nr_threads, in loadavg_proc_show()
/openbmc/linux/tools/lib/perf/include/perf/
H A Dthreadmap.h11 LIBPERF_API struct perf_thread_map *perf_thread_map__new_array(int nr_threads, pid_t *array);
/openbmc/linux/tools/tracing/latency/
H 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()
/openbmc/qemu/include/hw/ppc/
H A Dpnv_chip.h34 uint32_t nr_threads; member

12