/linux-6.6.21/tools/testing/selftests/sched/ ! |
D | cs_prctl_test.c | 67 int num_threads; member 134 static void create_threads(int num_threads, int thr_tids[]) in create_threads() argument 140 for (i = 0; i < num_threads; ++i) { in create_threads() 159 create_threads(ca->num_threads, ca->thr_tids); in child_func_process() 161 ret = write(ca->pfd[1], &ca->thr_tids, sizeof(int) * ca->num_threads); in child_func_process() 175 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument 181 proc[i].num_threads = num_threads; in create_processes() 193 ret = read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes() 211 for (j = 0; j < proc[i].num_threads; ++j) { in disp_processes() 235 int num_threads = 3; in main() local [all …]
|
/linux-6.6.21/tools/testing/selftests/rseq/ ! |
D | param_test.c | 479 const int num_threads = opt_threads; in test_percpu_spinlock() local 482 pthread_t test_threads[num_threads]; in test_percpu_spinlock() 484 struct spinlock_thread_test_data thread_data[num_threads]; in test_percpu_spinlock() 487 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock() 504 for (i = 0; i < num_threads; i++) { in test_percpu_spinlock() 517 assert(sum == (uint64_t)opt_reps * num_threads); in test_percpu_spinlock() 556 const int num_threads = opt_threads; in test_percpu_inc() local 559 pthread_t test_threads[num_threads]; in test_percpu_inc() 561 struct inc_thread_test_data thread_data[num_threads]; in test_percpu_inc() 564 for (i = 0; i < num_threads; i++) { in test_percpu_inc() [all …]
|
D | basic_percpu_ops_test.c | 137 const int num_threads = 200; in test_percpu_spinlock() local 140 pthread_t test_threads[num_threads]; in test_percpu_spinlock() 146 for (i = 0; i < num_threads; i++) in test_percpu_spinlock() 150 for (i = 0; i < num_threads; i++) in test_percpu_spinlock() 157 assert(sum == (uint64_t)data.reps * num_threads); in test_percpu_spinlock()
|
/linux-6.6.21/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 | 1199 u32 num_threads; member
|
/linux-6.6.21/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() 206 for (i = 1; i < num_threads; i++) in multiorder_iteration_race() 209 for (i = 0; i < num_threads; i++) in multiorder_iteration_race() 255 const int num_threads = sysconf(_SC_NPROCESSORS_ONLN) * 4; in load_race() local 256 pthread_t worker_thread[num_threads]; in load_race() 261 for (i = 1; i < num_threads; i++) in load_race() 264 for (i = 0; i < num_threads; i++) in load_race()
|
/linux-6.6.21/lib/ ! |
D | test_kmod.c | 72 unsigned int num_threads; member 176 if (test_dev->done == config->num_threads) { in kmod_test_done_check() 292 for (idx=0; idx < config->num_threads; idx++) { in tally_up_work() 349 for (i=0; i < config->num_threads; i++) { in test_dev_kmod_stop_tests() 384 for (idx=0; idx < config->num_threads; idx++) { in try_requests() 424 config->num_threads); in run_test_driver() 426 config->num_threads - 1); in run_test_driver() 441 config->num_threads); in run_test_fs_type() 443 config->num_threads - 1); in run_test_fs_type() 464 config->num_threads); in config_show() [all …]
|
/linux-6.6.21/include/linux/ ! |
D | cpu_smt.h | 17 extern void cpu_smt_set_num_threads(unsigned int num_threads, 26 static inline void cpu_smt_set_num_threads(unsigned int num_threads, in cpu_smt_set_num_threads() argument
|
/linux-6.6.21/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()
|
D | cpu.c | 619 void __init cpu_smt_set_num_threads(unsigned int num_threads, in cpu_smt_set_num_threads() argument 622 WARN_ON(!num_threads || (num_threads > max_threads)); in cpu_smt_set_num_threads() 637 else if (num_threads < cpu_smt_num_threads) in cpu_smt_set_num_threads() 638 cpu_smt_num_threads = num_threads; in cpu_smt_set_num_threads() 2929 int ctrlval, ret, num_threads, orig_threads; in __store_smt_control() local 2940 num_threads = cpu_smt_max_threads; in __store_smt_control() 2943 num_threads = 1; in __store_smt_control() 2946 num_threads = 1; in __store_smt_control() 2947 } else if (kstrtoint(buf, 10, &num_threads) == 0) { in __store_smt_control() 2948 if (num_threads == 1) in __store_smt_control() [all …]
|
/linux-6.6.21/tools/testing/selftests/x86/ ! |
D | amx.c | 688 unsigned int num_threads; member 793 ctxtswtest_config.num_threads); in test_context_switch() 796 finfo = malloc(sizeof(*finfo) * ctxtswtest_config.num_threads); in test_context_switch() 800 create_threads(ctxtswtest_config.num_threads, finfo); in test_context_switch() 815 for (i = 0; i < ctxtswtest_config.num_threads; i++) { in test_context_switch() 946 ctxtswtest_config.num_threads = 5; in main()
|
/linux-6.6.21/fs/proc/ ! |
D | array.c | 268 int num_threads = 0; in task_sig() local 283 num_threads = get_nr_threads(p); in task_sig() 291 seq_put_decimal_ull(m, "Threads:\t", num_threads); in task_sig() 476 int num_threads = 0; in do_task_stat() local 527 num_threads = get_nr_threads(task); in do_task_stat() 561 if (permitted && (!whole || num_threads < 2)) in do_task_stat() 603 seq_put_decimal_ll(m, " ", num_threads); in do_task_stat()
|
/linux-6.6.21/arch/powerpc/kernel/ ! |
D | smp.c | 1091 unsigned int cpu, num_threads; in smp_prepare_cpus() local 1160 num_threads = 1; in smp_prepare_cpus() 1162 num_threads = smt_enabled_at_boot; in smp_prepare_cpus() 1163 cpu_smt_set_num_threads(num_threads, threads_per_core); in smp_prepare_cpus()
|
/linux-6.6.21/arch/powerpc/kvm/ ! |
D | book3s_hv.c | 3018 ++vcore->num_threads; in kvmppc_core_vcpu_create_hv() 3385 if (vc->num_threads < threads_per_vcore(vc->kvm)) { in kvmppc_vcore_preempt() 3433 cip->max_subcore_threads = vc->num_threads; in init_core_info() 3434 cip->total_threads = vc->num_threads; in init_core_info() 3435 cip->subcore_threads[0] = vc->num_threads; in init_core_info() 3474 int n_threads = vc->num_threads; in can_dynamic_split() 3492 cip->total_threads += vc->num_threads; in can_dynamic_split() 3493 cip->subcore_threads[sub] = vc->num_threads; in can_dynamic_split() 3508 if (cip->total_threads + pvc->num_threads > target_threads) in can_piggyback() 3760 ((vc->num_threads > threads_per_subcore) || !on_primary_thread())) { in kvmppc_run_core() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ ! |
D | kvm_book3s.h | 70 int num_threads; member
|
/linux-6.6.21/tools/power/x86/turbostat/ ! |
D | turbostat.c | 6000 int num_threads = topo.threads_per_core * num_cores; in allocate_counters() local 6002 *t = calloc(num_threads, sizeof(struct thread_data)); in allocate_counters() 6006 for (i = 0; i < num_threads; i++) in allocate_counters()
|
/linux-6.6.21/Documentation/filesystems/ ! |
D | proc.rst | 353 num_threads number of threads
|
/linux-6.6.21/drivers/gpu/drm/radeon/ ! |
D | cik.c | 4477 u32 num_threads[3]; member
|