From: Mathieu Desnoyers Date: Thu, 28 Jul 2011 14:52:04 +0000 (-0400) Subject: Fix context order X-Git-Tag: v1.9.1~316 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1ea172a1367c416716fa046289d25694f53ce599;p=lttng-ust.git Fix context order Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/ltt-ring-buffer-client.h b/libust/ltt-ring-buffer-client.h index c7496bfd..4a9318c2 100644 --- a/libust/ltt-ring-buffer-client.h +++ b/libust/ltt-ring-buffer-client.h @@ -9,9 +9,9 @@ */ #include +#include #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;