Re: [PATCH net-next 1/3] samples/bpf: add bpf map stress test

From: David Miller
Date: Tue Mar 08 2016 - 23:22:26 EST


From: Alexei Starovoitov <ast@xxxxxx>
Date: Tue, 8 Mar 2016 15:07:52 -0800

> 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@xxxxxxxxxx>

Applied.