• James Hogan's avatar
    trace/ring_buffer: handle 64bit aligned structs · 649508f6
    James Hogan authored
    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: default avatarJames 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)
    649508f6
ring_buffer.c 114 KB