#include "common/macros.h"
#include <pthread.h>
-#define TRACEPOINT_DEFINE
-#define TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define LTTNG_UST_TRACEPOINT_DEFINE
+#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
+#define LTTNG_UST_TP_IP_PARAM ip
#include "ust_pthread.h"
static __thread int thread_in_trace;
}
thread_in_trace = 1;
- tracepoint(lttng_ust_pthread, pthread_mutex_lock_req, mutex,
+ lttng_ust_tracepoint(lttng_ust_pthread, pthread_mutex_lock_req, mutex,
LTTNG_UST_CALLER_IP());
retval = mutex_lock(mutex);
- tracepoint(lttng_ust_pthread, pthread_mutex_lock_acq, mutex,
+ lttng_ust_tracepoint(lttng_ust_pthread, pthread_mutex_lock_acq, mutex,
retval, LTTNG_UST_CALLER_IP());
thread_in_trace = 0;
return retval;
thread_in_trace = 1;
retval = mutex_trylock(mutex);
- tracepoint(lttng_ust_pthread, pthread_mutex_trylock, mutex,
+ lttng_ust_tracepoint(lttng_ust_pthread, pthread_mutex_trylock, mutex,
retval, LTTNG_UST_CALLER_IP());
thread_in_trace = 0;
return retval;
thread_in_trace = 1;
retval = mutex_unlock(mutex);
- tracepoint(lttng_ust_pthread, pthread_mutex_unlock, mutex,
+ lttng_ust_tracepoint(lttng_ust_pthread, pthread_mutex_unlock, mutex,
retval, LTTNG_UST_CALLER_IP());
thread_in_trace = 0;
return retval;