]> git.baikalelectronics.ru Git - kernel.git/commit
trace/ring_buffer: handle 64bit aligned structs
authorJames Hogan <james.hogan@imgtec.com>
Wed, 30 May 2012 11:11:19 +0000 (12:11 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:09:16 +0000 (20:09 +0000)
commit96d2fdbcabcaae8da3d5365f53fa8ea2dd1874bc
treec8e4852f2470f6068880d4509d2d3a510104c9c6
parente2401612112efa2bc87076026c63a248c5f03644
trace/ring_buffer: handle 64bit aligned structs

Some 32 bit architectures require 64 bit values to be aligned (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_ACCESS instead of !CONFIG_64BIT ||
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS to decide alignment, and align
buffer_data_page::data accordingly.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org> (previous version subtly different)
kernel/trace/ring_buffer.c