From: Mathieu Desnoyers Date: Sun, 25 Sep 2011 03:27:13 +0000 (-0400) Subject: Add missing alignment after header write X-Git-Tag: v1.9.1~190 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d3b2c3e0d7796049377556af9b1e59366e5f182c;p=lttng-ust.git Add missing alignment after header write Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/ltt-ring-buffer-client.h b/libust/ltt-ring-buffer-client.h index 5f5c3158..270cb1e9 100644 --- a/libust/ltt-ring-buffer-client.h +++ b/libust/ltt-ring-buffer-client.h @@ -198,6 +198,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; @@ -261,6 +262,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;