Lines Matching defs:thread_params
23 } thread_params = {
30 OPT_UINTEGER('b', "breakpoints", &thread_params.nbreakpoints,
32 OPT_UINTEGER('p', "parallelism", &thread_params.nparallel, "Specify amount of parallelism"),
33 OPT_UINTEGER('t', "threads", &thread_params.nthreads, "Specify amount of threads"),
91 threads = calloc(thread_params.nthreads, sizeof(threads[0]));
97 for (i = 0; i < thread_params.nthreads; i++) {
102 futex_wake(&done, thread_params.nthreads, 0);
103 for (i = 0; i < thread_params.nthreads; i++)
124 breakpoints = calloc(thread_params.nbreakpoints, sizeof(breakpoints[0]));
125 parallel = calloc(thread_params.nparallel, sizeof(parallel[0]));
129 for (i = 0; i < thread_params.nbreakpoints; i++) {
141 for (i = 0; i < thread_params.nparallel; i++) {
145 for (i = 0; i < thread_params.nparallel; i++)
149 for (i = 0; i < thread_params.nbreakpoints; i++)
156 bench_repeat, thread_params.nbreakpoints, thread_params.nparallel);
161 (double)result_usec / bench_repeat / thread_params.nthreads);
164 thread_params.nthreads * thread_params.nparallel);