From: Alexei Starovoitov <ast@kernel.org>
To: <davem@davemloft.net>
Cc: <daniel@iogearbox.net>, <netdev@vger.kernel.org>, <kernel-team@fb.com>
Subject: [PATCH bpf-next 0/2] bpf: increase bpf test coverage
Date: Wed, 17 Jan 2018 16:52:01 -0800 [thread overview]
Message-ID: <20180118005203.1978645-1-ast@kernel.org> (raw)
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
next reply other threads:[~2018-01-18 0:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-18 0:52 Alexei Starovoitov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180118005203.1978645-1-ast@kernel.org \
--to=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.