diff options
author | Nicolas Schichan <nschichan@freebox.fr> | 2015-08-04 15:19:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-06 22:02:32 -0700 |
commit | d2648d4e268cee60c9c917a04c3fbc4e8c3bbc7e (patch) | |
tree | 8bd31cb5ad1d77d9d80f488b261417d8a836b63d /lib/net_utils.c | |
parent | 2cf1ad759307f4ef2a27a59f3071e357ec487841 (diff) | |
download | op-kernel-dev-d2648d4e268cee60c9c917a04c3fbc4e8c3bbc7e.zip op-kernel-dev-d2648d4e268cee60c9c917a04c3fbc4e8c3bbc7e.tar.gz |
test_bpf: add module parameters to filter the tests to run.
When developping on the interpreter or a particular JIT, it can be
interesting to restrict the tests list to a specific test or a
particular range of tests.
This patch adds the following module parameters to the test_bpf module:
* test_name=<string>: only the specified named test will be run.
* test_id=<number>: only the test with the specified id will be run
(see the output of test_bpf without parameters to get the test id).
* test_range=<number>,<number>: only the tests within IDs in the
specified id range are run (see the output of test_bpf without
parameters to get the test ids).
Any invalid range, test id or test name will result in -EINVAL being
returned and no tests being run.
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions