#include <urcu/compiler.h>
#include <urcu/tls-compat.h>
#include <urcu/arch.h>
-#include <lttng/align.h>
#include <ust-helper.h>
+#include "ust-compat.h"
#define TRACEPOINT_DEFINE
#define TRACEPOINT_CREATE_PROBES
*/
static int ust_malloc_lock;
-static __attribute__((unused))
+static
+void ust_malloc_spin_lock(pthread_mutex_t *lock)
+ __attribute__((unused));
+static
void ust_malloc_spin_lock(pthread_mutex_t *lock)
{
/*
caa_cpu_relax();
}
-static __attribute__((unused))
+static
+void ust_malloc_spin_unlock(pthread_mutex_t *lock)
+ __attribute__((unused));
+static
void ust_malloc_spin_unlock(pthread_mutex_t *lock)
{
/*
}
__attribute__((constructor))
-void lttng_ust_malloc_wrapper_init(void)
+void lttng_ust_libc_wrapper_malloc_init(void)
{
/* Initialization already done */
if (cur_alloc.calloc) {