# endif
#endif /* #if LTTNG_UST_COMPAT_API(0) */
+#if LTTNG_UST_COMPAT_API(0)
+# if defined(TP_SESSION_CHECK) && !defined(LTTNG_UST_TP_SESSION_CHECK)
+# define LTTNG_UST_TP_SESSION_CHECK
+# endif
+#endif /* #if LTTNG_UST_COMPAT_API(0) */
+
#include LTTNG_UST_TRACEPOINT_INCLUDE
#include <lttng/ust-tracepoint-event.h>
* 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 */
/*
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; \
#include "ust_lib.h" /* Only define. */
#define LTTNG_UST_TRACEPOINT_CREATE_PROBES
-#define TP_SESSION_CHECK
+#define LTTNG_UST_TP_SESSION_CHECK
#include "lttng-ust-statedump-provider.h" /* Define and create probes. */
struct dl_iterate_data {