Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648643

Re: [PATCH] RFC: arm: eBPF JIT compiler

From Shubham Bansal <illusionist.neo@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] RFC: arm: eBPF JIT compiler
Date 2017-05-23 23:00 +0200
Message-ID <tKp4m-7w-19@gated-at.bofh.it> (permalink)
References <tKmSS-6YY-21@gated-at.bofh.it> <tKoUG-8uq-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Andrew,

I think I forgot to compile it for ARMv5. Let me send the patch again
in few minutes.

I appreciate the help.
Best,
Shubham Bansal


On Wed, May 24, 2017 at 2:16 AM, Andrew Lunn <andrew@lunn.ch> wrote:
> 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.
>
> make mvebu_v5_defconfig
>
> make -s -j 16
> arch/arm/net/bpf_jit_32.c: In function emit_rev16:
> arch/arm/net/bpf_jit_32.c:1019:7: error: implicit declaration of function ARM_MOV_S [-Werror=implicit-function-declaration]
>   emit(ARM_MOV_S(tmp2[0], rn, SRTYPE_LSR, 8), ctx);
>        ^~~~~~~~~
> arch/arm/net/bpf_jit_32.c: In function emit_rev32:
> arch/arm/net/bpf_jit_32.c:1037:36: error: macro "ARM_MOV_I" passed 3 arguments, but takes just 2
>   emit(ARM_MOV_I(tmp2[1], rn, 0xff00), ctx);
>                                     ^
> arch/arm/net/bpf_jit_32.c:1037:7: error: ARM_MOV_I undeclared (first use in this function)
>   emit(ARM_MOV_I(tmp2[1], rn, 0xff00), ctx);
>        ^~~~~~~~~
> arch/arm/net/bpf_jit_32.c:1037:7: note: each undeclared identifier is reported only once for each function it appears in
> arch/arm/net/bpf_jit_32.c:1039:41: error: macro "ARM_MOV_I" passed 3 arguments, but takes just 2
>   emit(ARM_MOV_I(tmp2[0], tmp2[0], 0xff00), ctx);
>                                          ^
> arch/arm/net/bpf_jit_32.c: In function build_insn:
> arch/arm/net/bpf_jit_32.c:1393:30: error: macro "ARM_AND_R" requires 3 arguments, but only 2 given
>     emit(ARM_AND_R(rt, tmp2[1]), ctx);
>                               ^
> arch/arm/net/bpf_jit_32.c:1393:9: error: ARM_AND_R undeclared (first use in this function)
>     emit(ARM_AND_R(rt, tmp2[1]), ctx);
>
>     Andrew

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] RFC: arm: eBPF JIT compiler Andrew Lunn <andrew@lunn.ch> - 2017-05-23 22:50 +0200
  Re: [PATCH] RFC: arm: eBPF JIT compiler Shubham Bansal <illusionist.neo@gmail.com> - 2017-05-23 23:00 +0200
    Re: [PATCH] RFC: arm: eBPF JIT compiler Andrew Lunn <andrew@lunn.ch> - 2017-05-24 01:30 +0200
  Re: [PATCH] RFC: arm: eBPF JIT compiler Shubham Bansal <illusionist.neo@gmail.com> - 2017-05-23 23:20 +0200

csiph-web