From 8acb8bdfec7f1827ca762900e0fcbaa8f187742f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 30 Mar 2021 12:03:32 -0400 Subject: [PATCH] Fix: tls-compat with hidden ring buffer context There is a missing URCU_TLS() accessor in the refactoring of the ring buffer context, which fails the tls-compat build. Signed-off-by: Mathieu Desnoyers Change-Id: Ied620bf7dc3821bd3af87b500201130769b037df --- 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 01ad89da..fb7ba255 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -732,7 +732,7 @@ int lttng_event_reserve(struct lttng_ust_lib_ring_buffer_ctx *ctx) if (nesting < 0) return -EPERM; - private_ctx = &private_ctx_stack[nesting]; + private_ctx = &URCU_TLS(private_ctx_stack[nesting]); memset(private_ctx, 0, sizeof(*private_ctx)); private_ctx->pub = ctx; private_ctx->chan = lttng_chan->priv->rb_chan; -- 2.34.1