diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-05-23 12:43:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-23 16:48:05 -0400 |
commit | 04caa489301c5e01ac4e5d1c13abcecb2041300b (patch) | |
tree | aa82a3fa65f99a44bf97bf78776c6a904c1a73dd /Documentation/networking | |
parent | b1fcd35cf53553a0a3ef949b05106d921446abc3 (diff) |
net: filter: doc: add section for BPF test suite
Mention the recently added test suite in the documentation file.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/filter.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/networking/filter.txt b/Documentation/networking/filter.txt index 748fd385535d..dc7dcc8c8184 100644 --- a/Documentation/networking/filter.txt +++ b/Documentation/networking/filter.txt | |||
@@ -833,6 +833,20 @@ loops and other CFG validation; second step starts from the first insn and | |||
833 | descends all possible paths. It simulates execution of every insn and observes | 833 | descends all possible paths. It simulates execution of every insn and observes |
834 | the state change of registers and stack. | 834 | the state change of registers and stack. |
835 | 835 | ||
836 | Testing | ||
837 | ------- | ||
838 | |||
839 | Next to the BPF toolchain, the kernel also ships a test module that contains | ||
840 | various test cases for classic and internal BPF that can be executed against | ||
841 | the BPF interpreter and JIT compiler. It can be found in lib/test_bpf.c and | ||
842 | enabled via Kconfig: | ||
843 | |||
844 | CONFIG_TEST_BPF=m | ||
845 | |||
846 | After the module has been built and installed, the test suite can be executed | ||
847 | via insmod or modprobe against 'test_bpf' module. Results of the test cases | ||
848 | including timings in nsec can be found in the kernel log (dmesg). | ||
849 | |||
836 | Misc | 850 | Misc |
837 | ---- | 851 | ---- |
838 | 852 | ||