#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0))
-LTTNG_TRACEPOINT_EVENT(console,
+LTTNG_TRACEPOINT_EVENT_MAP(console,
+
+ printk_console,
+
TP_PROTO(const char *text, size_t len),
TP_ARGS(text, len),
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
-LTTNG_TRACEPOINT_EVENT_CONDITION(console,
+LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
+
+ printk_console,
+
TP_PROTO(const char *log_buf, unsigned start, unsigned end,
unsigned log_buf_len),
#else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */
-LTTNG_TRACEPOINT_EVENT_CONDITION(console,
+LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
+
+ printk_console,
+
TP_PROTO(const char *log_buf, unsigned start, unsigned end,
unsigned log_buf_len),