diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-05-08 23:10:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-12 06:23:55 +0200 |
commit | 64a8946b447e418b4283c3573ef397980cca0cd8 (patch) | |
tree | af67f72649e1e3ac18a74bdb425ad3f48f611875 /tools | |
parent | net: filter: make BPF conversion more readable (diff) | |
download | linux-64a8946b447e418b4283c3573ef397980cca0cd8.tar.xz linux-64a8946b447e418b4283c3573ef397980cca0cd8.zip |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/net/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index 750512ba2c88..c7493b8f9b0e 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -14,6 +14,12 @@ all: $(NET_PROGS) run_tests: all @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" - + @if /sbin/modprobe test_bpf ; then \ + /sbin/rmmod test_bpf; \ + echo "test_bpf: ok"; \ + else \ + echo "test_bpf: [FAIL]"; \ + exit 1; \ + fi clean: $(RM) $(NET_PROGS) |