diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-05-08 17:10:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-12 00:23:55 -0400 |
commit | 64a8946b447e418b4283c3573ef397980cca0cd8 (patch) | |
tree | af67f72649e1e3ac18a74bdb425ad3f48f611875 /lib/Kconfig.debug | |
parent | 9739eef13c926645fbf88bcb77e66442fa75d688 (diff) |
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 'lib/Kconfig.debug')
-rw-r--r-- | lib/Kconfig.debug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 819ac51202c0..423ca319a5f8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1620,6 +1620,19 @@ config TEST_USER_COPY | |||
1620 | 1620 | ||
1621 | If unsure, say N. | 1621 | If unsure, say N. |
1622 | 1622 | ||
1623 | config TEST_BPF | ||
1624 | tristate "Test BPF filter functionality" | ||
1625 | default n | ||
1626 | depends on m | ||
1627 | help | ||
1628 | This builds the "test_bpf" module that runs various test vectors | ||
1629 | against the BPF interpreter or BPF JIT compiler depending on the | ||
1630 | current setting. This is in particular useful for BPF JIT compiler | ||
1631 | development, but also to run regression tests against changes in | ||
1632 | the interpreter code. | ||
1633 | |||
1634 | If unsure, say N. | ||
1635 | |||
1623 | source "samples/Kconfig" | 1636 | source "samples/Kconfig" |
1624 | 1637 | ||
1625 | source "lib/Kconfig.kgdb" | 1638 | source "lib/Kconfig.kgdb" |