summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPuranjay Mohan <puranjay@kernel.org>2026-04-28 02:23:00 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-05-12 01:25:24 +0300
commitdcf11479c2a8d3520953e8366f587ec2a36505a8 (patch)
treea5164d044805ec8b27a33ed78fcd13c127b2fc22 /include/linux
parent08158c111d7d87d88269d9f873a2fc54b87bcb99 (diff)
downloadlinux-dcf11479c2a8d3520953e8366f587ec2a36505a8.tar.xz
selftests/bpf: Add bpf-nop benchmark for timing overhead baseline
Add a minimal benchmark that measures the overhead of the batch-timing infrastructure itself. The BPF program runs an empty BENCH_BPF_LOOP body (~1.5-2 ns/op), establishing the floor cost that all timing-library benchmarks include. [root@virtme-ng tools/testing/selftests/bpf]# sudo ./bench -a -p8 bpf-nop Setting up benchmark 'bpf-nop'... Benchmark 'bpf-nop' started. bpf-nop: median 1.82 ns/op, stddev 0.01, p99 1.86 (1754 samples) Signed-off-by: Puranjay Mohan <puranjay@kernel.org> Link: https://lore.kernel.org/r/20260427232313.1582588-4-puranjay@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions