From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033918AbdEWU5S (ORCPT ); Tue, 23 May 2017 16:57:18 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:42094 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032673AbdEWUfC (ORCPT ); Tue, 23 May 2017 16:35:02 -0400 Date: Tue, 23 May 2017 22:34:55 +0200 From: Andrew Lunn To: Shubham Bansal Cc: linux@armlinux.org.uk, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] RFC: arm: eBPF JIT compiler Message-ID: <20170523203455.GF24807@lunn.ch> References: <1495564433-9750-1-git-send-email-illusionist.neo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1495564433-9750-1-git-send-email-illusionist.neo@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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