Re: [PATCH v2 04/44] trace/ring_buffer: handle 64bit aligned structs

2012-12-10 Thread James Hogan
On 08/12/12 01:24, Steven Rostedt wrote: > On Wed, 2012-12-05 at 16:08 +, James Hogan wrote: >> Some 32 bit architectures have 64 bit struct alignment (for example >> Meta which has 64 bit read/write instructions). These require 8 byte >> alignment of event data too, so use CONFIG_HAVE_64BIT_AL

Re: [PATCH v2 04/44] trace/ring_buffer: handle 64bit aligned structs

2012-12-07 Thread Steven Rostedt
On Wed, 2012-12-05 at 16:08 +, James Hogan wrote: > Some 32 bit architectures have 64 bit struct alignment (for example > Meta which has 64 bit read/write instructions). These require 8 byte > alignment of event data too, so use CONFIG_HAVE_64BIT_ALIGNED_STRUCT > instead of CONFIG_64BIT to deci

[PATCH v2 04/44] trace/ring_buffer: handle 64bit aligned structs

2012-12-05 Thread James Hogan
Some 32 bit architectures have 64 bit struct alignment (for example Meta which has 64 bit read/write instructions). These require 8 byte alignment of event data too, so use CONFIG_HAVE_64BIT_ALIGNED_STRUCT instead of CONFIG_64BIT to decide alignment, and align buffer_data_page::data accordingly. S