All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: increase bpf test coverage
@ 2018-01-18  0:52 Alexei Starovoitov
  2018-01-18  0:52 ` [PATCH bpf-next 1/2] bpf: allow socket_filter programs to use bpf_prog_test_run Alexei Starovoitov
  2018-01-18  0:52 ` [PATCH bpf-next 2/2] selftests/bpf: make test_verifier run most programs Alexei Starovoitov
  0 siblings, 2 replies; 3+ messages in thread
From: Alexei Starovoitov @ 2018-01-18  0:52 UTC (permalink / raw)
  To: davem; +Cc: daniel, netdev, kernel-team

BPF verifier has 700+ tests used to check correctness of the verifier.
Beyond checking the verifier log tell kernel to run accepted programs as well
via bpf_prog_test_run() command. That improves quality of the tests
and increases bpf test coverage.

Alexei Starovoitov (2):
  bpf: allow socket_filter programs to use bpf_prog_test_run
  selftests/bpf: make test_verifier run most programs

 kernel/bpf/syscall.c                        |  2 ++
 net/core/filter.c                           |  1 +
 tools/testing/selftests/bpf/test_verifier.c | 50 ++++++++++++++++++++++++++++-
 3 files changed, 52 insertions(+), 1 deletion(-)

-- 
2.9.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-18  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-18  0:52 [PATCH bpf-next 0/2] bpf: increase bpf test coverage Alexei Starovoitov
2018-01-18  0:52 ` [PATCH bpf-next 1/2] bpf: allow socket_filter programs to use bpf_prog_test_run Alexei Starovoitov
2018-01-18  0:52 ` [PATCH bpf-next 2/2] selftests/bpf: make test_verifier run most programs Alexei Starovoitov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.