Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/sched/
Dcs_prctl_test.c66 int num_threads; member
133 static void create_threads(int num_threads, int thr_tids[]) in create_threads() argument
139 for (i = 0; i < num_threads; ++i) { in create_threads()
157 create_threads(ca->num_threads, ca->thr_tids); in child_func_process()
159 write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); in child_func_process()
169 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
175 proc[i].num_threads = num_threads; in create_processes()
187 read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
202 for (j = 0; j < proc[i].num_threads; ++j) { in disp_processes()
226 int num_threads = 3; in main() local
[all …]
/linux-6.1.9/tools/testing/selftests/rseq/
Dparam_test.c419 const int num_threads = opt_threads; in test_percpu_spinlock() local
422 pthread_t test_threads[num_threads]; in test_percpu_spinlock()
424 struct spinlock_thread_test_data thread_data[num_threads]; in test_percpu_spinlock()
427 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock()
444 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock()
457 assert(sum == (uint64_t)opt_reps * num_threads); in test_percpu_spinlock()
495 const int num_threads = opt_threads; in test_percpu_inc() local
498 pthread_t test_threads[num_threads]; in test_percpu_inc()
500 struct inc_thread_test_data thread_data[num_threads]; in test_percpu_inc()
503 for (i = 0; i < num_threads; i++) { in test_percpu_inc()
[all …]
Dbasic_percpu_ops_test.c111 const int num_threads = 200; in test_percpu_spinlock() local
114 pthread_t test_threads[num_threads]; in test_percpu_spinlock()
120 for (i = 0; i < num_threads; i++) in test_percpu_spinlock()
124 for (i = 0; i < num_threads; i++) in test_percpu_spinlock()
131 assert(sum == (uint64_t)data.reps * num_threads); in test_percpu_spinlock()
/linux-6.1.9/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
/linux-6.1.9/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 …]
/linux-6.1.9/kernel/
Dstop_machine.c174 unsigned int num_threads; member
185 atomic_set(&msdata->thread_ack, msdata->num_threads); in set_state()
343 .num_threads = 2, in stop_two_cpus()
592 .num_threads = num_online_cpus(), in stop_machine_cpuslocked()
607 WARN_ON_ONCE(msdata.num_threads != 1); in stop_machine_cpuslocked()
642 .num_threads = cpumask_weight(smt_mask), in stop_core_cpuslocked()
687 msdata.num_threads = num_active_cpus() + 1; /* +1 for local */ in stop_machine_from_inactive_cpu()
/linux-6.1.9/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()
/linux-6.1.9/tools/testing/selftests/x86/
Damx.c681 unsigned int num_threads; member
786 ctxtswtest_config.num_threads); in test_context_switch()
789 finfo = malloc(sizeof(*finfo) * ctxtswtest_config.num_threads); in test_context_switch()
793 create_threads(ctxtswtest_config.num_threads, finfo); in test_context_switch()
808 for (i = 0; i < ctxtswtest_config.num_threads; i++) { in test_context_switch()
846 ctxtswtest_config.num_threads = 5; in main()
/linux-6.1.9/fs/proc/
Darray.c265 int num_threads = 0; in task_sig() local
280 num_threads = get_nr_threads(p); in task_sig()
288 seq_put_decimal_ull(m, "Threads:\t", num_threads); in task_sig()
466 int num_threads = 0; in do_task_stat() local
517 num_threads = get_nr_threads(task); in do_task_stat()
552 if (permitted && (!whole || num_threads < 2)) in do_task_stat()
591 seq_put_decimal_ll(m, " ", num_threads); in do_task_stat()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv.c2990 ++vcore->num_threads; in kvmppc_core_vcpu_create_hv()
3357 if (vc->num_threads < threads_per_vcore(vc->kvm)) { in kvmppc_vcore_preempt()
3405 cip->max_subcore_threads = vc->num_threads; in init_core_info()
3406 cip->total_threads = vc->num_threads; in init_core_info()
3407 cip->subcore_threads[0] = vc->num_threads; in init_core_info()
3446 int n_threads = vc->num_threads; in can_dynamic_split()
3464 cip->total_threads += vc->num_threads; in can_dynamic_split()
3465 cip->subcore_threads[sub] = vc->num_threads; in can_dynamic_split()
3480 if (cip->total_threads + pvc->num_threads > target_threads) in can_piggyback()
3732 ((vc->num_threads > threads_per_subcore) || !on_primary_thread())) { in kvmppc_run_core()
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dkvm_book3s.h70 int num_threads; member
/linux-6.1.9/tools/power/x86/turbostat/
Dturbostat.c5999 int num_threads = topo.threads_per_core * num_cores; in allocate_counters() local
6001 *t = calloc(num_threads, sizeof(struct thread_data)); in allocate_counters()
6005 for (i = 0; i < num_threads; i++) in allocate_counters()
/linux-6.1.9/Documentation/filesystems/
Dproc.rst349 num_threads number of threads
/linux-6.1.9/drivers/gpu/drm/radeon/
Dcik.c4477 u32 num_threads[3]; member