Fix context order
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 28 Jul 2011 14:52:04 +0000 (10:52 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 28 Jul 2011 14:52:04 +0000 (10:52 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/ltt-ring-buffer-client.h

index c7496bfdc21e24d9aae8137c61d2e3db4542fe97..4a9318c2b1bfc1d710524ad3dca4bc78ec54ba91 100644 (file)
@@ -9,9 +9,9 @@
  */
 
 #include <stdint.h>
+#include <ust/lttng-events.h>
 #include "ust/bitfield.h"
 #include "ust/clock.h"
-#include "ltt-events.h"
 #include "ltt-tracer.h"
 #include "../libringbuffer/frontend_types.h"
 
@@ -196,8 +196,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;
 
@@ -259,8 +259,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.024006 seconds and 4 git commands to generate.