Fix: tls-compat with hidden ring buffer context
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Mar 2021 16:03:32 +0000 (12:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 30 Mar 2021 16:04:16 +0000 (12:04 -0400)
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 <mathieu.desnoyers@efficios.com>
Change-Id: Ied620bf7dc3821bd3af87b500201130769b037df

liblttng-ust/lttng-ring-buffer-client.h

index 01ad89daeaa8fca52ea0093a331c9c7c11eaa5af..fb7ba25521fce4eddb5519629218b738b651fd3a 100644 (file)
@@ -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;
This page took 0.025418 seconds and 4 git commands to generate.