Message ID | 20220801143700.160380-2-norbert.lange@andritz.com |
---|---|
State | New |
Headers | show |
Series | [v2,1/2] lttng_ust_init_thread: initialise cached context values | expand |
----- On Aug 1, 2022, at 10:37 AM, Norbert Lange nolange79 at gmail.com wrote: > From: Norbert Lange <nolange79 at gmail.com> > > Eagerly register the thread, and avoid taking mutex during the > first tracepoint. Merged, thanks! Mathieu > > Signed-off-by: Norbert Lange <nolange79 at gmail.com> > Acked-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com> > --- > src/lib/lttng-ust/lttng-ust-comm.c | 2 ++ > 1 file changed, 2 insertions(+) > > 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) > -- > 2.35.1
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)