/*
* Force a read (imply TLS fixup for dlopen) of TLS variables.
*/
-static
-void lttng_fixup_rb_client_tls(void)
+void RING_BUFFER_MODE_TEMPLATE_TLS_FIXUP(void)
{
asm volatile ("" : : "m" (URCU_TLS(private_ctx_stack)));
}
if (nesting < 0)
return -EPERM;
- private_ctx = &URCU_TLS(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;
{
DBG("LTT : ltt ring buffer client \"%s\" init\n",
"relay-" RING_BUFFER_MODE_TEMPLATE_STRING "-mmap");
- lttng_fixup_rb_client_tls();
lttng_transport_register(<tng_relay_transport);
}