Fix context order: stream before event
[lttng-modules.git] / ltt-ring-buffer-client.h
index 974a696f704465eaa6765f6befe2ba506321d817..30f0104fdc46728468f78ddb3c33b977178a87de 100644 (file)
@@ -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;
This page took 0.025726 seconds and 4 git commands to generate.