Lines Matching defs:params
44 static struct bench_futex_parameters params = {
53 OPT_UINTEGER('t', "threads", ¶ms.nthreads, "Specify amount of threads"),
54 OPT_UINTEGER('w', "nwakes", ¶ms.nwakes, "Specify amount of threads to wake at once"),
55 OPT_BOOLEAN( 's', "silent", ¶ms.silent, "Silent mode: do not display data/details"),
56 OPT_BOOLEAN( 'S', "shared", ¶ms.fshared, "Use shared futexes instead of private ones"),
57 OPT_BOOLEAN( 'm', "mlockall", ¶ms.mlockall, "Lock all current and future memory"),
93 params.nthreads,
104 threads_starting = params.nthreads;
111 for (i = 0; i < params.nthreads; i++) {
161 if (params.mlockall) {
166 if (!params.nthreads)
167 params.nthreads = perf_cpu_map__nr(cpu);
169 worker = calloc(params.nthreads, sizeof(*worker));
173 if (!params.fshared)
178 getpid(), params.nthreads, params.fshared ? "shared":"private",
179 &futex1, params.nwakes);
205 while (nwoken != params.nthreads)
207 params.nwakes, futex_flag);
214 if (!params.silent) {
216 j + 1, nwoken, params.nthreads,
220 for (i = 0; i < params.nthreads; i++) {