Cleanup: tracepoint event: use different prefixes for provider and event descriptors
[lttng-ust.git] / src / lib / lttng-ust / lttng-ust-statedump.c
index 3c286c86bbd32f70839438d2bb33a15e29471e2a..64294706703b6c0ae6e475120c1ce68da181791c 100644 (file)
@@ -24,6 +24,9 @@
 #include "common/getenv.h"
 #include "lib/lttng-ust/events.h"
 
+#define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION
+#define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION
+
 #define LTTNG_UST_TRACEPOINT_DEFINE
 #include "ust_lib.h"                           /* Only define. */
 
@@ -60,7 +63,7 @@ struct lttng_ust_dl_node {
 
 #define UST_DL_STATE_HASH_BITS 8
 #define UST_DL_STATE_TABLE_SIZE        (1 << UST_DL_STATE_HASH_BITS)
-struct cds_hlist_head dl_state_table[UST_DL_STATE_TABLE_SIZE];
+static struct cds_hlist_head dl_state_table[UST_DL_STATE_TABLE_SIZE];
 
 typedef void (*tracepoint_cb)(struct lttng_ust_session *session, void *priv);
 
@@ -551,10 +554,10 @@ void lttng_ust_dl_update(void *ip)
                return;
 
        /*
-        * Fixup lttng-ust TLS when called from dlopen/dlclose
-        * instrumentation.
+        * Force the allocation of lttng-ust TLS variables when called from
+        * dlopen/dlclose instrumentation.
         */
-       lttng_ust_fixup_tls();
+       lttng_ust_alloc_tls();
 
        data.exec_found = 0;
        data.first = true;
@@ -630,7 +633,7 @@ void lttng_ust_statedump_init(void)
 {
        lttng_ust__tracepoints__init();
        lttng_ust__tracepoints__ptrs_init();
-       __lttng_ust_events_init__lttng_ust_statedump();
+       lttng_ust__events_init__lttng_ust_statedump();
        lttng_ust_dl_update(LTTNG_UST_CALLER_IP());
 }
 
@@ -652,7 +655,7 @@ void ust_dl_state_destroy(void)
 
 void lttng_ust_statedump_destroy(void)
 {
-       __lttng_ust_events_exit__lttng_ust_statedump();
+       lttng_ust__events_exit__lttng_ust_statedump();
        lttng_ust__tracepoints__ptrs_destroy();
        lttng_ust__tracepoints__destroy();
        ust_dl_state_destroy();
This page took 0.026311 seconds and 4 git commands to generate.