Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/rseq/
Dparam_test.c398 const int num_threads = opt_threads; in test_percpu_spinlock() local
401 pthread_t test_threads[num_threads]; in test_percpu_spinlock()
403 struct spinlock_thread_test_data thread_data[num_threads]; in test_percpu_spinlock()
406 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock()
423 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock()
436 assert(sum == (uint64_t)opt_reps * num_threads); in test_percpu_spinlock()
474 const int num_threads = opt_threads; in test_percpu_inc() local
477 pthread_t test_threads[num_threads]; in test_percpu_inc()
479 struct inc_thread_test_data thread_data[num_threads]; in test_percpu_inc()
482 for (i = 0; i < num_threads; i++) { in test_percpu_inc()
[all …]
Dbasic_percpu_ops_test.c112 const int num_threads = 200; in test_percpu_spinlock() local
115 pthread_t test_threads[num_threads]; in test_percpu_spinlock()
121 for (i = 0; i < num_threads; i++) in test_percpu_spinlock()
125 for (i = 0; i < num_threads; i++) in test_percpu_spinlock()
132 assert(sum == (uint64_t)data.reps * num_threads); in test_percpu_spinlock()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Ddbexec.c533 if (info->threads && (info->num_created < info->num_threads)) { in acpi_db_method_thread()
581 if (info->num_completed == info->num_threads) { in acpi_db_method_thread()
724 u32 num_threads; in acpi_db_create_execution_threads() local
734 num_threads = strtoul(num_threads_arg, NULL, 0); in acpi_db_create_execution_threads()
737 if (!num_threads || !num_loops) { in acpi_db_create_execution_threads()
739 num_threads, num_loops); in acpi_db_create_execution_threads()
784 acpi_gbl_db_method_info.num_threads = num_threads; in acpi_db_create_execution_threads()
785 size = sizeof(acpi_thread_id) * acpi_gbl_db_method_info.num_threads; in acpi_db_create_execution_threads()
823 acpi_db_uint32_to_hex_string(num_threads, in acpi_db_create_execution_threads()
845 num_threads, num_loops); in acpi_db_create_execution_threads()
[all …]
Daclocal.h1182 u32 num_threads; member
/kernel/linux/linux-5.10/lib/
Dtest_kmod.c83 unsigned int num_threads; member
187 if (test_dev->done == config->num_threads) { in kmod_test_done_check()
303 for (idx=0; idx < config->num_threads; idx++) { in tally_up_work()
360 for (i=0; i < config->num_threads; i++) { in test_dev_kmod_stop_tests()
395 for (idx=0; idx < config->num_threads; idx++) { in try_requests()
435 config->num_threads); in run_test_driver()
437 config->num_threads - 1); in run_test_driver()
452 config->num_threads); in run_test_fs_type()
454 config->num_threads - 1); in run_test_fs_type()
475 config->num_threads); in config_show()
[all …]
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dmultiorder.c200 const int num_threads = sysconf(_SC_NPROCESSORS_ONLN); in multiorder_iteration_race() local
201 pthread_t worker_thread[num_threads]; in multiorder_iteration_race()
205 for (i = 1; i < num_threads; i++) in multiorder_iteration_race()
208 for (i = 0; i < num_threads; i++) in multiorder_iteration_race()
/kernel/linux/linux-5.10/kernel/
Dstop_machine.c158 unsigned int num_threads; member
169 atomic_set(&msdata->thread_ack, msdata->num_threads); in set_state()
327 .num_threads = 2, in stop_two_cpus()
576 .num_threads = num_online_cpus(), in stop_machine_cpuslocked()
591 WARN_ON_ONCE(msdata.num_threads != 1); in stop_machine_cpuslocked()
650 msdata.num_threads = num_active_cpus() + 1; /* +1 for local */ in stop_machine_from_inactive_cpu()
/kernel/linux/linux-5.10/fs/proc/
Darray.c269 int num_threads = 0; in task_sig() local
284 num_threads = get_nr_threads(p); in task_sig()
292 seq_put_decimal_ull(m, "Threads:\t", num_threads); in task_sig()
442 int num_threads = 0; in do_task_stat() local
492 num_threads = get_nr_threads(task); in do_task_stat()
524 if (permitted && (!whole || num_threads < 2)) in do_task_stat()
562 seq_put_decimal_ll(m, " ", num_threads); in do_task_stat()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv.c2423 ++vcore->num_threads; in kvmppc_core_vcpu_create_hv()
2760 if (vc->num_threads < threads_per_vcore(vc->kvm)) { in kvmppc_vcore_preempt()
2806 cip->max_subcore_threads = vc->num_threads; in init_core_info()
2807 cip->total_threads = vc->num_threads; in init_core_info()
2808 cip->subcore_threads[0] = vc->num_threads; in init_core_info()
2847 int n_threads = vc->num_threads; in can_dynamic_split()
2870 cip->total_threads += vc->num_threads; in can_dynamic_split()
2871 cip->subcore_threads[sub] = vc->num_threads; in can_dynamic_split()
2886 if (cip->total_threads + pvc->num_threads > target_threads) in can_piggyback()
3141 ((vc->num_threads > threads_per_subcore) || !on_primary_thread())) || in kvmppc_run_core()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dkvm_book3s.h70 int num_threads; member
/kernel/linux/linux-5.10/tools/power/x86/turbostat/
Dturbostat.c5503 int num_threads = topo.threads_per_core * num_cores; in allocate_counters() local
5505 *t = calloc(num_threads, sizeof(struct thread_data)); in allocate_counters()
5509 for (i = 0; i < num_threads; i++) in allocate_counters()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dproc.rst347 num_threads number of threads
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dcik.c4487 u32 num_threads[3]; member