public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Shubham Bansal <illusionist.neo@gmail.com>
Cc: linux@armlinux.org.uk, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] RFC: arm: eBPF JIT compiler
Date: Tue, 23 May 2017 22:34:55 +0200	[thread overview]
Message-ID: <20170523203455.GF24807@lunn.ch> (raw)
In-Reply-To: <1495564433-9750-1-git-send-email-illusionist.neo@gmail.com>

On Wed, May 24, 2017 at 12:03:53AM +0530, Shubham Bansal wrote:
> The JIT compiler emits ARM 32 bit instructions. Currently, It supports
> eBPF only. Classic BPF is supported because of the conversion by BPF
> core.
> 
> JIT is enabled with
> 
> 	echo 1 > /proc/sys/net/core/bpf_jit_enable
> 
> Constant Blinding can be enabled along with JIT using
> 
> 	echo 1 > /proc/sys/net/core/bpf_jit_enable
> 	echo 2 > /proc/sys/net/core/bpf_jit_harden
> 
> See Documentation/networking/filter.txt for more information.
> Tested on ARMv7 with CONFIG_FRAME_POINTER enabled.
> 
> Results:
> 
> 1. Interpreter:
> 
> 	[   93.551176] test_bpf: Summary: 314 PASSED, 0 FAILED, [0/306 JIT'ed]
> 
> 2. JIT enabled:
> 
> 	[   92.913931] test_bpf: Summary: 314 PASSED, 0 FAILED, [278/306 JIT'ed]
> 
> 3. JIT + blinding enabled:
> 
> 	[  109.414506] test_bpf: Summary: 314 PASSED, 0 FAILED, [278/306 JIT'ed]

Hi Shubham

Is there a HOWTO or a README somewhere about running the tests? I have
a few ARMv5 platforms i can run tests on.

  Thanks
	Andrew

  parent reply	other threads:[~2017-05-23 20:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-23 18:33 [PATCH] RFC: arm: eBPF JIT compiler Shubham Bansal
2017-05-23 19:00 ` Russell King - ARM Linux
2017-05-23 19:13   ` Shubham Bansal
2017-05-23 20:34 ` Andrew Lunn [this message]
2017-05-23 20:46 ` Andrew Lunn
2017-05-23 20:54   ` Shubham Bansal
2017-05-23 23:25     ` Andrew Lunn
2017-05-24 20:31       ` Shubham Bansal
2017-05-25 16:12         ` Shubham Bansal
2017-05-25 17:00         ` Andrew Lunn
2017-05-25 17:22           ` Andrew Lunn
     [not found]             ` <CAHgaXd+CVrDEA=E2=23Qp6wk50=dBnFS6TiCtvphTBMjUywrGg@mail.gmail.com>
2017-05-25 18:28               ` Andrew Lunn
2017-05-25 18:35                 ` Shubham Bansal
2017-05-25 18:48                   ` Andrew Lunn
2017-05-25 19:09                     ` Shubham Bansal
2017-05-25 19:44                       ` Florian Fainelli
2017-05-25 20:08                         ` Shubham Bansal
2017-05-25 20:59                           ` Kees Cook
2017-05-25 21:12                           ` Florian Fainelli
2017-05-25 22:10                         ` Russell King - ARM Linux
2017-05-23 21:17   ` Shubham Bansal

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=20170523203455.GF24807@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=illusionist.neo@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    /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