From 5c2ca473edb213ccc8644bc71716aeaa799fda8c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 9 Mar 2016 19:35:26 -0500 Subject: [PATCH] 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 --- liblttng-ust/lttng-ring-buffer-client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1