Searched refs:num_threads (Results 1 – 6 of 6) sorted by relevance
/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 …]
|
/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()
|
/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()
|
/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()
|
/tools/power/x86/turbostat/ |
D | turbostat.c | 6010 int num_threads = topo.threads_per_core * num_cores; in allocate_counters() local 6012 *t = calloc(num_threads, sizeof(struct thread_data)); in allocate_counters() 6016 for (i = 0; i < num_threads; i++) in allocate_counters()
|