diff options
| author | Feng Zhou <[email protected]> | 2022-06-10 02:33:08 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-06-11 21:25:35 +0000 |
| commit | 89eda98428ce10f8df110d60aa934aa5c5170686 (patch) | |
| tree | 8974d99ea9ec8751d0ff50f257b5e5206e740208 /tools/bpf/bpftool/prog.c | |
| parent | bpf: avoid grabbing spin_locks of all cpus when no free elems (diff) | |
| download | kernel-89eda98428ce10f8df110d60aa934aa5c5170686.tar.gz kernel-89eda98428ce10f8df110d60aa934aa5c5170686.zip | |
selftest/bpf/benchs: Add bpf_map benchmark
Add benchmark for hash_map to reproduce the worst case
that non-stop update when map's free is zero.
Just like this:
./run_bench_bpf_hashmap_full_update.sh
Setting up benchmark 'bpf-hashmap-ful-update'...
Benchmark 'bpf-hashmap-ful-update' started.
1:hash_map_full_perf 555830 events per sec
...
Signed-off-by: Feng Zhou <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
