# endif
#endif /* #if LTTNG_UST_COMPAT_API(0) */
+#if LTTNG_UST_COMPAT_API(0)
+# if defined(TP_IP_PARAM) && !defined(LTTNG_UST_TP_IP_PARAM)
+# define LTTNG_UST_TP_IP_PARAM
+# endif
+#endif /* #if LTTNG_UST_COMPAT_API(0) */
+
#include LTTNG_UST_TRACEPOINT_INCLUDE
#include <lttng/ust-tracepoint-event.h>
* architecture for now by always using the NULL value for the ip
* context.
*/
-#undef _TP_IP_PARAM
-#ifdef TP_IP_PARAM
-#define _TP_IP_PARAM(x) (x)
+#undef LTTNG_UST__TP_IP_PARAM
+
+#ifdef LTTNG_UST_TP_IP_PARAM
+#define LTTNG_UST__TP_IP_PARAM(x) (x)
#else /* TP_IP_PARAM */
#if defined(LTTNG_UST_ARCH_PPC) && !defined(LTTNG_UST_ARCH_PPC64)
-#define _TP_IP_PARAM(x) NULL
+#define LTTNG_UST__TP_IP_PARAM(x) NULL
#else
-#define _TP_IP_PARAM(x) __builtin_return_address(0)
+#define LTTNG_UST__TP_IP_PARAM(x) __builtin_return_address(0)
#endif
#endif /* TP_IP_PARAM */
LTTNG_UST__TP_ARGS_DATA_VAR(_args)); \
lttng_ust__event_align = lttng_ust__event_get_align__##_provider##___##_name(LTTNG_UST__TP_ARGS_VAR(_args)); \
lttng_ust_ring_buffer_ctx_init(&__ctx, lttng_ust__event_recorder, __event_len, lttng_ust__event_align, \
- _TP_IP_PARAM(TP_IP_PARAM)); \
+ LTTNG_UST__TP_IP_PARAM(LTTNG_UST_TP_IP_PARAM)); \
__ret = __chan->ops->event_reserve(&__ctx); \
if (__ret < 0) \
return; \
#define LTTNG_UST_TRACEPOINT_DEFINE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM func_addr
+#define LTTNG_UST_TP_IP_PARAM func_addr
#include "lttng-ust-cyg-profile-fast.h"
void __cyg_profile_func_enter(void *this_fn, void *call_site)
#define LTTNG_UST_TRACEPOINT_DEFINE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM func_addr
+#define LTTNG_UST_TP_IP_PARAM func_addr
#include "lttng-ust-cyg-profile.h"
void __cyg_profile_func_enter(void *this_fn, void *call_site)
#define _LGPL_SOURCE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define LTTNG_UST_TP_IP_PARAM ip
#include "ust_dl.h"
#define LTTNG_UST_TRACEPOINT_DEFINE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define LTTNG_UST_TP_IP_PARAM ip
#include "ust_libc.h"
#define STATIC_CALLOC_LEN 4096
#define LTTNG_UST_TRACEPOINT_DEFINE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define LTTNG_UST_TP_IP_PARAM ip
#include "ust_pthread.h"
static __thread int thread_in_trace;
#endif /* _TRACEPOINT_LTTNG_UST_TRACEF_PROVIDER_H */
-#define TP_IP_PARAM ip /* IP context received as parameter */
+#define LTTNG_UST_TP_IP_PARAM ip /* IP context received as parameter */
#undef LTTNG_UST_TRACEPOINT_INCLUDE
#define LTTNG_UST_TRACEPOINT_INCLUDE "./tp/lttng-ust-tracef.h"
#endif /* _TRACEPOINT_LTTNG_UST_TRACEF_PROVIDER_H */
-#define TP_IP_PARAM ip /* IP context received as parameter */
+#define LTTNG_UST_TP_IP_PARAM ip /* IP context received as parameter */
#undef LTTNG_UST_TRACEPOINT_INCLUDE
#define LTTNG_UST_TRACEPOINT_INCLUDE "./tp/lttng-ust-tracelog.h"
#define _LGPL_SOURCE
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_IP_PARAM ip
+#define LTTNG_UST_TP_IP_PARAM ip
#include "ust_lib.h"