Re: [PATCH RFC 2/3] samples/bpf: Add define __EMITTING_BPF__ when building BPF

2017-06-19 Thread Andy Gospodarek
On Thu, Jun 15, 2017 at 03:35:42PM -0700, David Daney wrote: > ... this allows gating of inline assembly code that causes llvm to > fail when emitting BPF. I floated essentially the same patch in Feb without much luck: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-March/492758.html

Re: [PATCH RFC 2/3] samples/bpf: Add define __EMITTING_BPF__ when building BPF

2017-06-16 Thread David Miller
From: Daniel Borkmann Date: Fri, 16 Jun 2017 12:24:06 +0200 > On 06/16/2017 12:35 AM, David Daney wrote: >> ... this allows gating of inline assembly code that causes llvm to >> fail when emitting BPF. >> >> Signed-off-by: David Daney > > I don't have a better idea at the moment, perhaps there

Re: [PATCH RFC 2/3] samples/bpf: Add define __EMITTING_BPF__ when building BPF

2017-06-16 Thread Daniel Borkmann
On 06/16/2017 12:35 AM, David Daney wrote: ... this allows gating of inline assembly code that causes llvm to fail when emitting BPF. Signed-off-by: David Daney I don't have a better idea at the moment, perhaps there could be a clang rewrite plugin that would ignore all inline assembly code s

[PATCH RFC 2/3] samples/bpf: Add define __EMITTING_BPF__ when building BPF

2017-06-15 Thread David Daney
... this allows gating of inline assembly code that causes llvm to fail when emitting BPF. Signed-off-by: David Daney --- samples/bpf/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index a0561dc762fe..4979e6b56662