Add missing alignment after header write
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Sep 2011 03:25:26 +0000 (23:25 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Sep 2011 03:25:26 +0000 (23:25 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-ring-buffer-client.h

index dc6bbd0bb51480a78141ba7bb82be8b89e0fcd3e..7ed86fbb5280a2c275ca89c24b9b4ec66257e5df 100644 (file)
@@ -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;
This page took 0.026088 seconds and 4 git commands to generate.