Fix: event ctx get size should be after chan ctx
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Mar 2016 01:21:42 +0000 (20:21 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Mar 2016 01:21:42 +0000 (20:21 -0500)
Match the record functions, and the CTF spec. This has no impact
currently because event contexts are not implemented.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-ring-buffer-client.h

index d57dda192019a6f8bf78c825ff12bf7fddd01197..625d7b4526ce81853ee1514b95ed1e13b9193fe7 100644 (file)
@@ -170,8 +170,8 @@ size_t record_header_size(const struct lib_ring_buffer_config *config,
                padding = 0;
                WARN_ON_ONCE(1);
        }
-       offset += ctx_get_size(offset, event->ctx);
        offset += ctx_get_size(offset, lttng_chan->ctx);
+       offset += ctx_get_size(offset, event->ctx);
 
        *pre_header_padding = padding;
        return offset - orig_offset;
This page took 0.027389 seconds and 4 git commands to generate.