summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2026-04-28 02:22:58 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-05-12 01:25:24 +0300
commit2b6f0a1e4c9e0f618179c4a108249cc4a0442d11 (patch)
tree39efe60a8063a51ec2f84bd8263abf76720bdc61 /include/linux/timerqueue.h
parent7e033543a2ab4c72319201298ed458e3bbddd82f (diff)
downloadlinux-2b6f0a1e4c9e0f618179c4a108249cc4a0442d11.tar.xz
selftests/bpf: Add bench_force_done() for early benchmark completion
The bench framework waits for duration_sec to elapse before collecting results. Benchmarks that know exactly how many samples they need can call bench_force_done() to signal completion early, avoiding wasted wall-clock time. Also refactor collect_measurements() to reuse bench_force_done() instead of open-coding the same mutex/cond_signal sequence. Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Link: https://lore.kernel.org/r/20260427232313.1582588-2-puranjay@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions