aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/map_perf_test_user.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2016-03-08 23:07:52 +0000
committerDavid S. Miller <[email protected]>2016-03-09 04:22:02 +0000
commit9d8b612d88e81c2cf7dbc0d4a827da6ca0d848e0 (patch)
tree224ffcb5af7fa6d63fc1e25abd718e59667b14f8 /samples/bpf/map_perf_test_user.c
parentip_tunnel, bpf: ip_tunnel_info_opts_{get, set} depends on CONFIG_INET (diff)
downloadkernel-9d8b612d88e81c2cf7dbc0d4a827da6ca0d848e0.tar.gz
kernel-9d8b612d88e81c2cf7dbc0d4a827da6ca0d848e0.zip
samples/bpf: add bpf map stress test
this test calls bpf programs from different contexts: from inside of slub, from rcu, from pretty much everywhere, since it kprobes all spin_lock functions. It stresses the bpf hash and percpu map pre-allocation, deallocation logic and call_rcu mechanisms. User space part adding more stress by walking and deleting map elements. Note that due to nature bpf_load.c the earlier kprobe+bpf programs are already active while loader loads new programs, creates new kprobes and attaches them. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'samples/bpf/map_perf_test_user.c')
0 files changed, 0 insertions, 0 deletions