From: Mathieu Desnoyers Date: Sun, 25 Sep 2011 03:25:26 +0000 (-0400) Subject: Add missing alignment after header write X-Git-Tag: v2.0-pre9~25 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=c595c36f753dde1bccbee455bbfeb8b31b7f41d1;p=lttng-modules.git Add missing alignment after header write Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-ring-buffer-client.h b/ltt-ring-buffer-client.h index dc6bbd0b..7ed86fbb 100644 --- a/ltt-ring-buffer-client.h +++ b/ltt-ring-buffer-client.h @@ -208,6 +208,7 @@ void ltt_write_event_header(const struct lib_ring_buffer_config *config, ctx_record(ctx, ltt_chan, ltt_chan->ctx); ctx_record(ctx, ltt_chan, event->ctx); + lib_ring_buffer_align_ctx(ctx, ctx->largest_align); return; @@ -271,6 +272,7 @@ void ltt_write_event_header_slow(const struct lib_ring_buffer_config *config, } ctx_record(ctx, ltt_chan, ltt_chan->ctx); ctx_record(ctx, ltt_chan, event->ctx); + lib_ring_buffer_align_ctx(ctx, ctx->largest_align); } static const struct lib_ring_buffer_config client_config;