Lines Matching refs:params

60 static struct bench_futex_parameters params;  variable
63 OPT_UINTEGER('t', "threads", &params.nthreads, "Specify amount of threads"),
64 OPT_UINTEGER('w', "nwakers", &params.nwakes, "Specify amount of waking threads"),
65 OPT_BOOLEAN( 's', "silent", &params.silent, "Silent mode: do not display data/details"),
66 OPT_BOOLEAN( 'S', "shared", &params.fshared, "Use shared futexes instead of private ones"),
67 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
106 pthread_barrier_init(&barrier, NULL, params.nwakes + 1); in wakeup_threads()
109 for (i = 0; i < params.nwakes; i++) { in wakeup_threads()
122 for (i = 0; i < params.nwakes; i++) in wakeup_threads()
155 threads_starting = params.nthreads; in block_threads()
162 for (i = 0; i < params.nthreads; i++) { in block_threads()
192 for (i = 0; i < params.nwakes; i++) { in print_run()
203 params.nthreads, waketime_avg / USEC_PER_MSEC, in print_run()
218 params.nthreads, in print_summary()
228 for (i = 0; i < params.nwakes; i++) { in do_run_stats()
262 if (params.mlockall) { in bench_futex_wake_parallel()
271 if (!params.nthreads) in bench_futex_wake_parallel()
272 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake_parallel()
275 if (params.nwakes > params.nthreads || in bench_futex_wake_parallel()
276 !params.nwakes) in bench_futex_wake_parallel()
277 params.nwakes = params.nthreads; in bench_futex_wake_parallel()
279 if (params.nthreads % params.nwakes) in bench_futex_wake_parallel()
285 nwakes = params.nthreads/params.nwakes; in bench_futex_wake_parallel()
287 blocked_worker = calloc(params.nthreads, sizeof(*blocked_worker)); in bench_futex_wake_parallel()
291 if (!params.fshared) in bench_futex_wake_parallel()
296 getpid(), params.nthreads, params.fshared ? "shared":"private", in bench_futex_wake_parallel()
297 &futex, params.nwakes, nwakes); in bench_futex_wake_parallel()
307 waking_worker = calloc(params.nwakes, sizeof(*waking_worker)); in bench_futex_wake_parallel()
326 for (i = 0; i < params.nthreads; i++) { in bench_futex_wake_parallel()
333 if (!params.silent) in bench_futex_wake_parallel()