]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
test_bpf: add module parameters to filter the tests to run.
authorNicolas Schichan <nschichan@freebox.fr>
Tue, 4 Aug 2015 13:19:10 +0000 (15:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 05:02:32 +0000 (22:02 -0700)
commitd2648d4e268cee60c9c917a04c3fbc4e8c3bbc7e
tree8bd31cb5ad1d77d9d80f488b261417d8a836b63d
parent2cf1ad759307f4ef2a27a59f3071e357ec487841
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>
lib/test_bpf.c