Lines Matching refs:params

44 static struct bench_futex_parameters params = {  variable
54 OPT_INTEGER( 'b', "buckets", &params.nbuckets, "Specify amount of hash buckets"),
55 OPT_UINTEGER('t', "threads", &params.nthreads, "Specify amount of threads"),
56 OPT_UINTEGER('w', "nwakes", &params.nwakes, "Specify amount of threads to wake at once"),
57 OPT_BOOLEAN( 's', "silent", &params.silent, "Silent mode: do not display data/details"),
58 OPT_BOOLEAN( 'S', "shared", &params.fshared, "Use shared futexes instead of private ones"),
59 OPT_BOOLEAN( 'm', "mlockall", &params.mlockall, "Lock all current and future memory"),
95 params.nthreads, in print_summary()
98 futex_print_nbuckets(&params); in print_summary()
107 threads_starting = params.nthreads; in block_threads()
114 for (i = 0; i < params.nthreads; i++) { in block_threads()
164 if (params.mlockall) { in bench_futex_wake()
169 if (!params.nthreads) in bench_futex_wake()
170 params.nthreads = perf_cpu_map__nr(cpu); in bench_futex_wake()
172 worker = calloc(params.nthreads, sizeof(*worker)); in bench_futex_wake()
176 if (!params.fshared) in bench_futex_wake()
181 getpid(), params.nthreads, params.fshared ? "shared":"private", in bench_futex_wake()
182 &futex1, params.nwakes); in bench_futex_wake()
208 while (nwoken != params.nthreads) in bench_futex_wake()
210 params.nwakes, futex_flag); in bench_futex_wake()
217 if (!params.silent) { in bench_futex_wake()
219 j + 1, nwoken, params.nthreads, in bench_futex_wake()
223 for (i = 0; i < params.nthreads; i++) { in bench_futex_wake()