+ /*
+ * UST lock nests within dynamic loader lock.
+ *
+ * Hold this lock across handling of the entire module to
+ * protect memory allocation at early process start, due to
+ * interactions with libc-wrapper lttng malloc instrumentation.
+ */
+ if (ust_lock()) {
+ goto end;
+ }
+