Lines Matching +full:wakeup +full:- +full:latency +full:- +full:us
1 // SPDX-License-Identifier: GPL-2.0
5 * futex-requeue: Block a bunch of threads on futex1 and requeue them
8 * This program is particularly useful to measure the latency of nthread
9 * requeues without waking up any tasks (in the non-pi case) -- thus
19 #include <subcmd/parse-options.h>
58 OPT_BOOLEAN( 'p', "pi", ¶ms.pi, "Use PI-aware variants of FUTEX_CMP_REQUEUE"),
74 printf("Requeued %d of %d threads in %.4f ms (+-%.2f%%)\n", in print_summary()
86 threads_starting--; in workerfn()
134 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads()
178 params.nthreads = cpu->nr; in bench_futex_requeue()
227 * For the regular non-pi case, do not wakeup any tasks in bench_futex_requeue()
228 * blocked on futex1, allowing us to really measure in bench_futex_requeue()
263 nrequeued -= wakeups; in bench_futex_requeue()
277 warnx("couldn't wakeup all tasks (%d/%d)", in bench_futex_requeue()