]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 28 Jan 2013 16:24:20 +0000 (16:24 +0000)
commit7cebfcc2f9267c2e2b96359cef620f17d6134cb5
tree5b63da8b30f9804f19f8897210d6fc083f6eb5ce
parent6449e291799baf4532995c5b9dd29dd8d7bb5cfc
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