]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a219a7a2916c74e8e2ae1a3f94d3bc061f72226
tree055058bbf98518f31a3aebf6f1ac425f70b1f71a
parent2b3cd37ce100e0822e0285d1905eabe7a8bccef0
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]