From: Mathieu Desnoyers Date: Thu, 10 Mar 2016 00:35:26 +0000 (-0500) Subject: Fix: event ctx get size should be after chan ctx X-Git-Tag: v2.8.0-rc1~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5c2ca473edb213ccc8644bc71716aeaa799fda8c;p=lttng-ust.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/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 9e22b93e..97e1f440 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -157,8 +157,8 @@ size_t record_header_size(const struct lttng_ust_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;