[Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
In RFC style, rather than relying on the implicit assumptions of a particular C ABI. I have also confirmed, using the Python gdb extension technique in [0], that the struct offsets (in a Linux binary at least) are the same as described here. I took the opportunity to also confirm that x86_32, x86

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Andrew Cooper
On 25/02/15 12:16, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as described here. > > I

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:16 +, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as descr

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:23 +, Andrew Cooper wrote: > On 25/02/15 12:16, Ian Campbell wrote: > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offsets (in a Linux binary at least) are the same > > as described here. [...] > > [] > > http://stackove

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Jürgen Groß
On 02/25/2015 01:16 PM, Ian Campbell wrote: In RFC style, rather than relying on the implicit assumptions of a particular C ABI. I have also confirmed, using the Python gdb extension technique in [0], that the struct offsets (in a Linux binary at least) are the same as described here. I took th

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:48 +0100, Jürgen Groß wrote: > On 02/25/2015 01:16 PM, Ian Campbell wrote: > > In RFC style, rather than relying on the implicit assumptions of a > > particular C ABI. > > > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offset

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Andrew Cooper
On 25/02/15 12:16, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as described here. > > I

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Wei Liu
On Wed, Feb 25, 2015 at 12:16:50PM +, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > a

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:59 +, Andrew Cooper wrote: > On 25/02/15 12:16, Ian Campbell wrote: > > In RFC style, rather than relying on the implicit assumptions of a > > particular C ABI. > > > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offsets (