lttng_ust_init_thread: call urcu_register_thread
authorNorbert Lange <nolange79@gmail.com>
Mon, 1 Aug 2022 14:37:00 +0000 (16:37 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Aug 2022 15:12:11 +0000 (11:12 -0400)
Eagerly register the thread, and avoid taking mutex during the
first tracepoint.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ust/lttng-ust-comm.c

index 0a039feffdb7f8d64085da19118b0fea3a886e42..0fe2da466ad1cce241b0b82efd864e651223341e 100644 (file)
@@ -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)
This page took 0.026076 seconds and 4 git commands to generate.