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

index 5f5c31588356f7f78631112eb4e34d004c576c9a..270cb1e9f1a77c2f4073e728225ffc35aa5ed696 100644 (file)
@@ -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;
This page took 0.025188 seconds and 4 git commands to generate.