Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Alexei Starovoitov via iovisor-dev
On Tue, Mar 07, 2017 at 10:13:13PM +0100, Jesper Dangaard Brouer wrote: > On Tue, 7 Mar 2017 21:54:42 +0100 > Jesper Dangaard Brouer wrote: > > > > I also suggest to replace it with 'llvm-objdump -h file.o' > > > since it prints the same info as 'readelf -SW' > > > but less verbose. > > > > Go

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Jesper Dangaard Brouer via iovisor-dev
On Tue, 7 Mar 2017 21:54:42 +0100 Jesper Dangaard Brouer wrote: > > I also suggest to replace it with 'llvm-objdump -h file.o' > > since it prints the same info as 'readelf -SW' > > but less verbose. > > Good idea to instead describe use of: > 'llvm-objdump -h file.o' Fixed: https://github

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Jesper Dangaard Brouer via iovisor-dev
On Tue, 7 Mar 2017 07:57:00 -0800 Alexei Starovoitov via iovisor-dev wrote: > On Tue, Mar 7, 2017 at 3:07 AM, Jesper Dangaard Brouer > wrote: > > On Mon, 6 Mar 2017 16:14:06 -0800 > > Alexei Starovoitov via iovisor-dev wrote: > > > >> On Mon, Mar 6, 2017 at 10:29 AM, Jesper Dangaard Brouer >

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Alexei Starovoitov via iovisor-dev
On Tue, Mar 7, 2017 at 3:07 AM, Jesper Dangaard Brouer wrote: > On Mon, 6 Mar 2017 16:14:06 -0800 > Alexei Starovoitov via iovisor-dev wrote: > >> On Mon, Mar 6, 2017 at 10:29 AM, Jesper Dangaard Brouer >> wrote: >> > On Mon, 6 Mar 2017 09:11:46 -0800 >> > Alexei Starovoitov via iovisor-dev wro

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Jesper Dangaard Brouer via iovisor-dev
On Tue, 7 Mar 2017 12:07:40 +0100 Jesper Dangaard Brouer via iovisor-dev wrote: > On Mon, 6 Mar 2017 16:14:06 -0800 > Alexei Starovoitov via iovisor-dev wrote: > > > On Mon, Mar 6, 2017 at 10:29 AM, Jesper Dangaard Brouer > > wrote: > > > On Mon, 6 Mar 2017 09:11:46 -0800 > > > Alexei Starov

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Jesper Dangaard Brouer via iovisor-dev
On Tue, 07 Mar 2017 12:40:03 +0100 Daniel Borkmann wrote: > On 03/07/2017 12:07 PM, Jesper Dangaard Brouer via iovisor-dev wrote: > > On Mon, 6 Mar 2017 16:14:06 -0800 > > Alexei Starovoitov via iovisor-dev wrote: > [...] > >> that's practically impossible to know in advance, since hardening a

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Daniel Borkmann via iovisor-dev
On 03/07/2017 12:07 PM, Jesper Dangaard Brouer via iovisor-dev wrote: On Mon, 6 Mar 2017 16:14:06 -0800 Alexei Starovoitov via iovisor-dev wrote: [...] that's practically impossible to know in advance, since hardening and start address randomization will play a role. Or use sysctl net.core.bpf

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-07 Thread Jesper Dangaard Brouer via iovisor-dev
On Mon, 6 Mar 2017 16:14:06 -0800 Alexei Starovoitov via iovisor-dev wrote: > On Mon, Mar 6, 2017 at 10:29 AM, Jesper Dangaard Brouer > wrote: > > On Mon, 6 Mar 2017 09:11:46 -0800 > > Alexei Starovoitov via iovisor-dev wrote: > > > >> On Mon, Mar 6, 2017 at 3:53 AM, Jesper Dangaard Brouer >

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread Alexei Starovoitov via iovisor-dev
On Mon, Mar 6, 2017 at 10:29 AM, Jesper Dangaard Brouer wrote: > On Mon, 6 Mar 2017 09:11:46 -0800 > Alexei Starovoitov via iovisor-dev wrote: > >> On Mon, Mar 6, 2017 at 3:53 AM, Jesper Dangaard Brouer >> wrote: >> > Hi All, >> > >> > I've added a section to my eBPF documentation, about how to

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread Jesper Dangaard Brouer via iovisor-dev
On Mon, 6 Mar 2017 09:11:46 -0800 Alexei Starovoitov via iovisor-dev wrote: > On Mon, Mar 6, 2017 at 3:53 AM, Jesper Dangaard Brouer > wrote: > > Hi All, > > > > I've added a section to my eBPF documentation, about how to read the > > eBPF generated ELF binary, and deduct the size of the compile

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread Alexei Starovoitov via iovisor-dev
On Mon, Mar 6, 2017 at 3:53 AM, Jesper Dangaard Brouer wrote: > Hi All, > > I've added a section to my eBPF documentation, about how to read the > eBPF generated ELF binary, and deduct the size of the compiled program > (mostly for kernel/samples/bpf). > > https://prototype-kernel.readthedocs.io/e

Re: [iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread William Tu via iovisor-dev
On Mon, Mar 6, 2017 at 7:07 AM, Jesper Dangaard Brouer via iovisor-dev wrote: > (repost with subscribed email) > Hi All, > > I've added a section to my eBPF documentation, about how to read the > eBPF generated ELF binary, and deduct the size of the compiled program > (mostly for kernel/samples/bp

[iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread Jesper Dangaard Brouer via iovisor-dev
(repost with subscribed email) Hi All, I've added a section to my eBPF documentation, about how to read the eBPF generated ELF binary, and deduct the size of the compiled program (mostly for kernel/samples/bpf). https://prototype-kernel.readthedocs.io/en/latest/bpf/troubleshooting.html#elf-binary

[iovisor-dev] Describing howto read the eBPF generated ELF binary

2017-03-06 Thread Jesper Dangaard Brouer via iovisor-dev
Hi All, I've added a section to my eBPF documentation, about how to read the eBPF generated ELF binary, and deduct the size of the compiled program (mostly for kernel/samples/bpf). https://prototype-kernel.readthedocs.io/en/latest/bpf/troubleshooting.html#elf-binary https://github.com/netoptimize