/linux-5.19.10/tools/testing/selftests/sched/ |
D | cs_prctl_test.c | 66 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-5.19.10/tools/testing/selftests/rseq/ |
D | param_test.c | 419 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 …]
|
D | basic_percpu_ops_test.c | 111 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-5.19.10/drivers/acpi/acpica/ |
D | dbexec.c | 533 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 …]
|
D | aclocal.h | 1182 u32 num_threads; member
|
/linux-5.19.10/lib/ |
D | test_kmod.c | 83 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-5.19.10/kernel/ |
D | stop_machine.c | 174 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-5.19.10/tools/testing/radix-tree/ |
D | multiorder.c | 200 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-5.19.10/tools/testing/selftests/x86/ |
D | amx.c | 681 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-5.19.10/fs/proc/ |
D | array.c | 262 int num_threads = 0; in task_sig() local 277 num_threads = get_nr_threads(p); in task_sig() 285 seq_put_decimal_ull(m, "Threads:\t", num_threads); in task_sig() 463 int num_threads = 0; in do_task_stat() local 514 num_threads = get_nr_threads(task); in do_task_stat() 549 if (permitted && (!whole || num_threads < 2)) in do_task_stat() 588 seq_put_decimal_ll(m, " ", num_threads); in do_task_stat()
|
/linux-5.19.10/arch/powerpc/kvm/ |
D | book3s_hv.c | 2907 ++vcore->num_threads; in kvmppc_core_vcpu_create_hv() 3274 if (vc->num_threads < threads_per_vcore(vc->kvm)) { in kvmppc_vcore_preempt() 3322 cip->max_subcore_threads = vc->num_threads; in init_core_info() 3323 cip->total_threads = vc->num_threads; in init_core_info() 3324 cip->subcore_threads[0] = vc->num_threads; in init_core_info() 3363 int n_threads = vc->num_threads; in can_dynamic_split() 3381 cip->total_threads += vc->num_threads; in can_dynamic_split() 3382 cip->subcore_threads[sub] = vc->num_threads; in can_dynamic_split() 3397 if (cip->total_threads + pvc->num_threads > target_threads) in can_piggyback() 3649 ((vc->num_threads > threads_per_subcore) || !on_primary_thread())) { in kvmppc_run_core() [all …]
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 70 int num_threads; member
|
/linux-5.19.10/tools/power/x86/turbostat/ |
D | turbostat.c | 5902 int num_threads = topo.threads_per_core * num_cores; in allocate_counters() local 5904 *t = calloc(num_threads, sizeof(struct thread_data)); in allocate_counters() 5908 for (i = 0; i < num_threads; i++) in allocate_counters()
|
/linux-5.19.10/Documentation/filesystems/ |
D | proc.rst | 349 num_threads number of threads
|
/linux-5.19.10/drivers/gpu/drm/radeon/ |
D | cik.c | 4477 u32 num_threads[3]; member
|