Initialize liblttng-ust-common in dependent libraries
[lttng-ust.git] / src / lib / lttng-ust-tracepoint / tracepoint.c
index 03e1e0bba807a27219de30a364ff7f3af911f81a..b84604d19ee6028c5b491448fd2ac7b2633742be 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <lttng/tracepoint.h>
 #include <lttng/ust-abi.h>     /* for LTTNG_UST_ABI_SYM_NAME_LEN */
+#include <lttng/ust-common.h>
 
 #include "common/logging.h"
 #include "common/macros.h"
@@ -130,6 +131,10 @@ struct callsite_entry {
        bool tp_entry_callsite_ref; /* Has a tp_entry took a ref on this callsite */
 };
 
+lttng_ust_static_assert(LTTNG_UST_TRACEPOINT_NAME_LEN_MAX == LTTNG_UST_ABI_SYM_NAME_LEN,
+               "Tracepoint name max length mismatch between UST ABI and tracepoint API",
+               Tracepoint_name_max_length_mismatch);
+
 /* coverity[+alloc] */
 static void *allocate_probes(int count)
 {
@@ -959,6 +964,7 @@ void lttng_ust_tp_init(void)
        if (uatomic_xchg(&initialized, 1) == 1)
                return;
        lttng_ust_logging_init();
+       lttng_ust_common_ctor();
        check_weak_hidden();
 }
 
This page took 0.026591 seconds and 4 git commands to generate.