From: Mathieu Desnoyers Date: Thu, 28 Jul 2011 14:50:15 +0000 (-0400) Subject: Fix context order: stream before event X-Git-Tag: v2.0-pre3~2 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=da4e23320ee3bed6a19fe29c8a0b8b78387be7f3;p=lttng-modules.git Fix context order: stream before event Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-ring-buffer-client.h b/ltt-ring-buffer-client.h index 974a696f..30f0104f 100644 --- a/ltt-ring-buffer-client.h +++ b/ltt-ring-buffer-client.h @@ -198,8 +198,8 @@ void ltt_write_event_header(const struct lib_ring_buffer_config *config, WARN_ON_ONCE(1); } - ctx_record(ctx, ltt_chan, event->ctx); ctx_record(ctx, ltt_chan, ltt_chan->ctx); + ctx_record(ctx, ltt_chan, event->ctx); return; @@ -261,8 +261,8 @@ void ltt_write_event_header_slow(const struct lib_ring_buffer_config *config, default: WARN_ON_ONCE(1); } - ctx_record(ctx, ltt_chan, event->ctx); ctx_record(ctx, ltt_chan, ltt_chan->ctx); + ctx_record(ctx, ltt_chan, event->ctx); } static const struct lib_ring_buffer_config client_config;