Lines Matching refs:params

60 static struct bench_futex_parameters params = {  variable
65 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
66 OPT_UINTEGER('t', "threads", &params.nthreads, "Specify amount of threads"),
67 OPT_UINTEGER('w', "nwakers", &params.nwakes, "Specify amount of waking threads"),
68 OPT_BOOLEAN( 's', "silent", &params.silent, "Silent mode: do not display data/details"),
69 OPT_BOOLEAN( 'S', "shared", &params.fshared, "Use shared futexes instead of private ones"),
70 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
109 pthread_barrier_init(&barrier, NULL, params.nwakes + 1); in wakeup_threads()
112 for (i = 0; i < params.nwakes; i++) { in wakeup_threads()
125 for (i = 0; i < params.nwakes; i++) in wakeup_threads()
158 threads_starting = params.nthreads; in block_threads()
165 for (i = 0; i < params.nthreads; i++) { in block_threads()
195 for (i = 0; i < params.nwakes; i++) { in print_run()
206 params.nthreads, waketime_avg / USEC_PER_MSEC, in print_run()
221 params.nthreads, in print_summary()
224 futex_print_nbuckets(&params); in print_summary()
232 for (i = 0; i < params.nwakes; i++) { in do_run_stats()
266 if (params.mlockall) { in bench_futex_wake_parallel()
275 if (!params.nthreads) in bench_futex_wake_parallel()
276 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake_parallel()
279 if (params.nwakes > params.nthreads || in bench_futex_wake_parallel()
280 !params.nwakes) in bench_futex_wake_parallel()
281 params.nwakes = params.nthreads; in bench_futex_wake_parallel()
283 if (params.nthreads % params.nwakes) in bench_futex_wake_parallel()
289 nwakes = params.nthreads/params.nwakes; in bench_futex_wake_parallel()
291 blocked_worker = calloc(params.nthreads, sizeof(*blocked_worker)); in bench_futex_wake_parallel()
295 if (!params.fshared) in bench_futex_wake_parallel()
298 futex_set_nbuckets_param(&params); in bench_futex_wake_parallel()
302 getpid(), params.nthreads, params.fshared ? "shared":"private", in bench_futex_wake_parallel()
303 &futex, params.nwakes, nwakes); in bench_futex_wake_parallel()
313 waking_worker = calloc(params.nwakes, sizeof(*waking_worker)); in bench_futex_wake_parallel()
332 for (i = 0; i < params.nthreads; i++) { in bench_futex_wake_parallel()
339 if (!params.silent) in bench_futex_wake_parallel()