From: Mathieu Desnoyers Date: Tue, 30 Mar 2021 16:03:32 +0000 (-0400) Subject: Fix: tls-compat with hidden ring buffer context X-Git-Tag: v2.13.0-rc1~176 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8acb8bdfec7f1827ca762900e0fcbaa8f187742f;p=lttng-ust.git 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 --- 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;