diff options
| author | Alexei Starovoitov <ast@fb.com> | 2016-03-08 15:07:52 -0800 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:29 +0300 |
| commit | 3ed83931a2330494af929f5cf0d10bf8229766c7 (patch) | |
| tree | dbf3d5d20b3136919f899f4e710b7c41f2f6e9c2 /samples/bpf/fds_example.c | |
| parent | c14dbe71e5b625a7f356274f1700a1cfada1c025 (diff) | |
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 <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'samples/bpf/fds_example.c')
0 files changed, 0 insertions, 0 deletions
