Searched refs:nthreads (Results 1 – 3 of 3) sorted by relevance
/kernel/ |
D | scftorture.c | 53 torture_param(int, nthreads, -1, "# threads, defaults to -1 for all CPUs."); 161 for (i = 0; i < nthreads; i++) { in scf_torture_stats_print() 501 …verbose, holdoff, longwait, nthreads, onoff_holdoff, onoff_interval, shutdown, stat_interval, stut… in scftorture_print_module_parms() 516 if (nthreads && scf_stats_p) in scf_torture_cleanup() 517 for (i = 0; i < nthreads; i++) in scf_torture_cleanup() 623 if (nthreads < 0) in scf_torture_init() 624 nthreads = num_online_cpus(); in scf_torture_init() 625 scf_stats_p = kcalloc(nthreads, sizeof(scf_stats_p[0]), GFP_KERNEL); in scf_torture_init() 632 VERBOSE_SCFTORTOUT("Starting %d smp_call_function() threads", nthreads); in scf_torture_init() 634 atomic_set(&n_started, nthreads); in scf_torture_init() [all …]
|
/kernel/locking/ |
D | test-ww_mutex.c | 315 static int __test_cycle(unsigned int nthreads) in __test_cycle() argument 318 unsigned int n, last = nthreads - 1; in __test_cycle() 321 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle() 325 for (n = 0; n < nthreads; n++) { in __test_cycle() 344 for (n = 0; n < nthreads; n++) in __test_cycle() 350 for (n = 0; n < nthreads; n++) { in __test_cycle() 357 n, nthreads, cycle->result); in __test_cycle() 362 for (n = 0; n < nthreads; n++) in __test_cycle() 560 static int stress(int nlocks, int nthreads, unsigned int flags) in stress() argument 570 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress() [all …]
|
/kernel/kcsan/ |
D | kcsan_test.c | 1375 long nthreads = (long)prev; in nthreads_gen_params() local 1377 if (nthreads < 0 || nthreads >= 32) in nthreads_gen_params() 1378 nthreads = 0; /* stop */ in nthreads_gen_params() 1379 else if (!nthreads) in nthreads_gen_params() 1380 nthreads = 2; /* initial value */ in nthreads_gen_params() 1381 else if (nthreads < 5) in nthreads_gen_params() 1382 nthreads++; in nthreads_gen_params() 1383 else if (nthreads == 5) in nthreads_gen_params() 1384 nthreads = 8; in nthreads_gen_params() 1386 nthreads *= 2; in nthreads_gen_params() [all …]
|