bpf: add a testsuite for eBPF maps
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 14 Nov 2014 01:36:48 +0000 (17:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Nov 2014 18:43:59 +0000 (13:43 -0500)
commitffb65f27a15583379567b6a59a9758163b7f5750
tree055058bbf98518f31a3aebf6f1ac425f70b1f71a
parenta1854d6ac0008518bfc45e791172ad250999c2a2
bpf: add a testsuite for eBPF maps

. check error conditions and sanity of hash and array map APIs
. check large maps (that kernel gracefully switches to vmalloc from kmalloc)
. check multi-process parallel access and stress test

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/Makefile
samples/bpf/libbpf.c
samples/bpf/libbpf.h
samples/bpf/test_maps.c [new file with mode: 0644]