Re: Error with printk and bpf_trace_printk

2017-06-01 Thread Adel Fuchs
or somehow > related to XDP (xdp-newb...@vger.kernel.org). > > See my answer inlined below: > > On Sun, 28 May 2017 17:48:20 +0300 Adel Fuchs wrote: > >> I have a working eBPF program, and I'm trying to add outputs to it. >> I'm not able to use both printk an

Re: running an eBPF program

2017-05-31 Thread Adel Fuchs
OK. Found it. Thanks! it works! On Thu, Jun 1, 2017 at 9:43 AM, Adel Fuchs wrote: > Hi, > Thanks for your reply. Where do I need to add this workaround? > > Thanks, > Adel > > On Mon, May 29, 2017 at 8:31 AM, Y Song wrote: >> On Sun, May 28, 2017 at 12:38 AM, Adel F

Re: running an eBPF program

2017-05-31 Thread Adel Fuchs
Hi, Thanks for your reply. Where do I need to add this workaround? Thanks, Adel On Mon, May 29, 2017 at 8:31 AM, Y Song wrote: > On Sun, May 28, 2017 at 12:38 AM, Adel Fuchs wrote: >> Hi, >> Is there any way to run this eBPF program without that patch? >> Alternatively, is

Error with printk and bpf_trace_printk

2017-05-28 Thread Adel Fuchs
Hi, I have a working eBPF program, and I'm trying to add outputs to it. I'm not able to use both printk and bpf_trace_printk functions. I get this error: ELF contains non-map related relo data in entry 0 pointing to section 8! Compiler bug?! Prog section 'ingress' rejected: Invalid argument (22)

Fwd: running an eBPF program

2017-05-28 Thread Adel Fuchs
Hi, Is there any way to run this eBPF program without that patch? Alternatively, is there any other eBPF sample that does run properly? I need to run a program that filters packets according to IP address or port. Thanks, Adel On Sun, May 28, 2017 at 8:08 AM, Y Song wrote: > On Sat, May 27, 2017

running an eBPF program

2017-05-26 Thread Adel Fuchs
Hi I'm trying to run this eBPF program: https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git/tree/examples/bpf and I get this error: :~/iproute2/examples/bpf$sudo tc filter add dev enx00e11100329b parent 1: bpf obj bpf.o exp /tmp/bpf-uds flowid 1:1 action bpf obj bpf.o sec