tracepoint event instrumentation: use system headers
[lttng-modules.git] / instrumentation / events / lttng-module / printk.h
index 77fe081b36e835ff26ac6a92afc26bce3fbcecef..077fc45c0d614ba2f7ba70f8d0d40c8a4bebe01a 100644 (file)
@@ -4,7 +4,7 @@
 #if !defined(LTTNG_TRACE_PRINTK_H) || defined(TRACE_HEADER_MULTI_READ)
 #define LTTNG_TRACE_PRINTK_H
 
-#include "../../../probes/lttng-tracepoint-event.h"
+#include <probes/lttng-tracepoint-event.h>
 #include <linux/version.h>
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0))
@@ -24,7 +24,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(console,
 
 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
 
-LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
+LTTNG_TRACEPOINT_EVENT_MAP(console,
 
        printk_console,
 
@@ -33,8 +33,6 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
 
        TP_ARGS(log_buf, start, end, log_buf_len),
 
-       TP_CONDITION(start != end),
-
        TP_FIELDS(
                ctf_sequence_text(char, msg, log_buf + start,
                        size_t, end - start)
@@ -43,7 +41,7 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
 
 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */
 
-LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
+LTTNG_TRACEPOINT_EVENT_MAP(console,
 
        printk_console,
 
@@ -52,8 +50,6 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
 
        TP_ARGS(log_buf, start, end, log_buf_len),
 
-       TP_CONDITION(start != end),
-
        TP_FIELDS(
                /*
                 * printk buffer is gathered from two segments on older kernels.
@@ -76,4 +72,4 @@ LTTNG_TRACEPOINT_EVENT_CONDITION_MAP(console,
 #endif /* LTTNG_TRACE_PRINTK_H */
 
 /* This part must be outside protection */
-#include "../../../probes/define_trace.h"
+#include <probes/define_trace.h>
This page took 0.024612 seconds and 4 git commands to generate.