#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. */
#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);
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;
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();