Lines Matching +full:waking +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0
27 #include <subcmd/parse-options.h>
47 /* all threads will block on the same futex -- hash bucket chaos ;) */
63 OPT_UINTEGER('w', "nwakers", ¶ms.nwakes, "Specify amount of waking threads"),
72 "perf bench futex wake-parallel <options>",
85 waker->nwoken = futex_wake(&futex, nwakes, futex_flag); in waking_workerfn()
86 if (waker->nwoken != nwakes) in waking_workerfn()
88 waker->nwoken, nwakes); in waking_workerfn()
91 timersub(&end, &start, &waker->runtime); in waking_workerfn()
108 * Thread creation order will impact per-thread latency in wakeup_threads()
129 threads_starting--; in blocked_workerfn()
155 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads()
183 printf("[Run %d]: Avg per-thread latency (waking %d/%d threads) " in print_run()
184 "in %.4f ms (+-%.2f%%)\n", run_num + 1, wakeup_avg, in print_run()
198 printf("Avg per-thread latency (waking %d/%d threads) in %.4f ms (+-%.2f%%)\n", in print_summary()
255 params.nthreads = cpu->nr; in bench_futex_wake_parallel()
278 "futex %p), %d threads waking up %d at a time.\n\n", in bench_futex_wake_parallel()
307 /* Ok, all threads are patiently blocked, start waking folks up */ in bench_futex_wake_parallel()