net: filter: BPF testsuite
authorAlexei Starovoitov <ast@plumgrid.com>
Thu, 8 May 2014 21:10:52 +0000 (14:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2014 04:23:55 +0000 (00:23 -0400)
commit64a8946b447e418b4283c3573ef397980cca0cd8
treeaf67f72649e1e3ac18a74bdb425ad3f48f611875
parent9739eef13c926645fbf88bcb77e66442fa75d688
net: filter: BPF testsuite

The testsuite covers classic and internal BPF instructions.
It is particularly useful for JIT compiler developers.
Adds to "net" selftest target.

The testsuite can be used as a set of micro-benchmarks.
It measures execution time of each BPF program in nsec.

This patch adds core framework.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/Kconfig.debug
lib/Makefile
lib/test_bpf.c [new file with mode: 0644]
tools/testing/selftests/net/Makefile