X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fprintk.h;h=16949c4d83da54c25cebc73c01fb655c387da558;hb=3bc29f0a41b3c803245b845db2e1909042e72e9c;hp=9ac55c72fdc3b6f7363842a69dd8490a8ef4f534;hpb=7ca580f8aca4f8c2b9e0066ad52ebfc226b3d645;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/printk.h b/instrumentation/events/lttng-module/printk.h index 9ac55c72..16949c4d 100644 --- a/instrumentation/events/lttng-module/printk.h +++ b/instrumentation/events/lttng-module/printk.h @@ -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 +#include "../../../probes/lttng-tracepoint-event.h" #include #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"