From: Mathieu Desnoyers Date: Thu, 10 Mar 2016 01:21:42 +0000 (-0500) Subject: Fix: event ctx get size should be after chan ctx X-Git-Tag: v2.8.0-rc1~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6053103ee897c2c78b8e0f773e14392b56a3ad8f;p=lttng-modules.git Fix: event ctx get size should be after chan ctx Match the record functions, and the CTF spec. This has no impact currently because event contexts are not implemented. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-ring-buffer-client.h b/lttng-ring-buffer-client.h index d57dda19..625d7b45 100644 --- a/lttng-ring-buffer-client.h +++ b/lttng-ring-buffer-client.h @@ -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;