From: Alexei Starovoitov <ast@plumgrid.com>
To: Daniel Borkmann <daniel@iogearbox.net>, davem@davemloft.net
Cc: netdev@vger.kernel.org, Nicolas Schichan <nschichan@freebox.fr>
Subject: Re: [PATCH net-next] test_bpf: add tests related to BPF_MAXINSNS
Date: Wed, 13 May 2015 13:36:29 -0700 [thread overview]
Message-ID: <5553B5CD.6050106@plumgrid.com> (raw)
In-Reply-To: <f35ca0ee7ba9a7a934dc6131a32fafa941d8dcad.1431515140.git.daniel@iogearbox.net>
On 5/13/15 4:12 AM, Daniel Borkmann wrote:
> Couple of torture test cases related to the bug fixed in 0b59d8806a31
> ("ARM: net: delegate filter to kernel interpreter when imm_offset()
> return value can't fit into 12bits.").
>
> I've added a helper to allocate and fill the insn space. Output on
> x86_64 from my laptop:
>
> test_bpf: #233 BPF_MAXINSNS: Maximum possible literals jited:0 7 PASS
> test_bpf: #234 BPF_MAXINSNS: Single literal jited:0 8 PASS
> test_bpf: #235 BPF_MAXINSNS: Run/add until end jited:0 11553 PASS
> test_bpf: #236 BPF_MAXINSNS: Too many instructions PASS
> test_bpf: #237 BPF_MAXINSNS: Very long jump jited:0 9 PASS
> test_bpf: #238 BPF_MAXINSNS: Ctx heavy transformations jited:0 20329 20398 PASS
> test_bpf: #239 BPF_MAXINSNS: Call heavy transformations jited:0 32178 32475 PASS
> test_bpf: #240 BPF_MAXINSNS: Jump heavy test jited:0 10518 PASS
>
> test_bpf: #233 BPF_MAXINSNS: Maximum possible literals jited:1 4 PASS
> test_bpf: #234 BPF_MAXINSNS: Single literal jited:1 4 PASS
> test_bpf: #235 BPF_MAXINSNS: Run/add until end jited:1 1625 PASS
> test_bpf: #236 BPF_MAXINSNS: Too many instructions PASS
> test_bpf: #237 BPF_MAXINSNS: Very long jump jited:1 8 PASS
> test_bpf: #238 BPF_MAXINSNS: Ctx heavy transformations jited:1 3301 3174 PASS
> test_bpf: #239 BPF_MAXINSNS: Call heavy transformations jited:1 24107 23491 PASS
> test_bpf: #240 BPF_MAXINSNS: Jump heavy test jited:1 8651 PASS
>
> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
> Cc: Alexei Starovoitov <ast@plumgrid.com>
> Cc: Nicolas Schichan <nschichan@freebox.fr>
Nice tests!
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
next prev parent reply other threads:[~2015-05-13 20:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 11:12 [PATCH net-next] test_bpf: add tests related to BPF_MAXINSNS Daniel Borkmann
2015-05-13 20:36 ` Alexei Starovoitov [this message]
2015-05-15 2:34 ` David Miller
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=5553B5CD.6050106@plumgrid.com \
--to=ast@plumgrid.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nschichan@freebox.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).