* session this event belongs to. Ensures that we write state dump data only
* into the started session, not into all sessions.
*/
-#undef _TP_SESSION_CHECK
-#ifdef TP_SESSION_CHECK
-#define _TP_SESSION_CHECK(session, csession) (session == csession)
+#undef LTTNG_UST__TP_SESSION_CHECK
+#ifdef LTTNG_UST_TP_SESSION_CHECK
+#define LTTNG_UST__TP_SESSION_CHECK(session, csession) (session == csession)
#else /* TP_SESSION_CHECK */
-#define _TP_SESSION_CHECK(session, csession) 1
+#define LTTNG_UST__TP_SESSION_CHECK(session, csession) 1
#endif /* TP_SESSION_CHECK */
/*
* 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 */
struct lttng_ust_channel_buffer *__chan = lttng_ust__event_recorder->chan; \
struct lttng_ust_channel_common *__chan_common = __chan->parent; \
\
- if (!_TP_SESSION_CHECK(session, __chan_common->session)) \
+ if (!LTTNG_UST__TP_SESSION_CHECK(session, __chan_common->session)) \
return; \
if (caa_unlikely(!CMM_ACCESS_ONCE(__chan_common->session->active))) \
return; \
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; \