diff options
| author | 2026-04-27 16:22:58 -0700 | |
|---|---|---|
| committer | 2026-05-11 15:25:24 -0700 | |
| commit | 2b6f0a1e4c9e0f618179c4a108249cc4a0442d11 (patch) | |
| tree | 39efe60a8063a51ec2f84bd8263abf76720bdc61 /scripts/Makefile.thinlto | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf 7.1-rc3 (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
