Rename LTTng instrumentation macros
[lttng-modules.git] / instrumentation / events / lttng-module / printk.h
index 9ac55c72fdc3b6f7363842a69dd8490a8ef4f534..16949c4d83da54c25cebc73c01fb655c387da558 100644 (file)
@@ -1,15 +1,15 @@
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM printk
 
-#if !defined(_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)
-#define _TRACE_PRINTK_H
+#if !defined(LTTNG_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)
+#define LTTNG_TRACE_PRINTK_H
 
-#include <linux/tracepoint.h>
+#include "../../../probes/lttng-tracepoint-event.h"
 #include <linux/version.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0))
 
-TRACE_EVENT(console,
+LTTNG_TRACEPOINT_EVENT(console,
        TP_PROTO(const char *text, size_t len),
 
        TP_ARGS(text, len),
@@ -27,7 +27,7 @@ TRACE_EVENT(console,
 
 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
 
-TRACE_EVENT_CONDITION(console,
+LTTNG_TRACEPOINT_EVENT_CONDITION(console,
        TP_PROTO(const char *log_buf, unsigned start, unsigned end,
                 unsigned log_buf_len),
 
@@ -48,7 +48,7 @@ TRACE_EVENT_CONDITION(console,
 
 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */
 
-TRACE_EVENT_CONDITION(console,
+LTTNG_TRACEPOINT_EVENT_CONDITION(console,
        TP_PROTO(const char *log_buf, unsigned start, unsigned end,
                 unsigned log_buf_len),
 
@@ -77,7 +77,7 @@ TRACE_EVENT_CONDITION(console,
 
 #endif
 
-#endif /* _TRACE_PRINTK_H */
+#endif /* LTTNG_TRACE_PRINTK_H */
 
 /* This part must be outside protection */
 #include "../../../probes/define_trace.h"
This page took 0.028382 seconds and 4 git commands to generate.