From: Norbert Lange Date: Mon, 1 Aug 2022 14:37:00 +0000 (+0200) Subject: lttng_ust_init_thread: call urcu_register_thread X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e95eaadb72a1a97486f15cc128ff6ed2fcd0196;p=lttng-ust.git lttng_ust_init_thread: call urcu_register_thread Eagerly register the thread, and avoid taking mutex during the first tracepoint. Signed-off-by: Norbert Lange Acked-by: Mathieu Desnoyers Signed-off-by: Mathieu Desnoyers --- diff --git a/src/lib/lttng-ust/lttng-ust-comm.c b/src/lib/lttng-ust/lttng-ust-comm.c index 0a039fef..0fe2da46 100644 --- a/src/lib/lttng-ust/lttng-ust-comm.c +++ b/src/lib/lttng-ust/lttng-ust-comm.c @@ -447,6 +447,8 @@ void lttng_ust_init_thread(void) * this thread attempts to use them. */ lttng_ust_common_init_thread(LTTNG_UST_INIT_THREAD_MASK); + + lttng_ust_urcu_register_thread(); } int lttng_get_notify_socket(void *owner)