summaryrefslogtreecommitdiffstats
path: root/samples/bpf/test_maps.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* samples: bpf: relax test_maps checkAlexei Starovoitov2015-01-271-2/+2
| | | | | | | | | | | hash map is unordered, so get_next_key() iterator shouldn't rely on particular order of elements. So relax this test. Fixes: ffb65f27a155 ("bpf: add a testsuite for eBPF maps") Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* bpf: add a testsuite for eBPF mapsAlexei Starovoitov2014-11-181-0/+291
. 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>