X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=instrumentation%2Fevents%2Flttng-module%2Fprintk.h;h=fd7cccc3769a9627092e536eede966600be7e1d3;hb=9bbf98da13bbaf289ac5787a80325d2e1dd81d0d;hp=9ac55c72fdc3b6f7363842a69dd8490a8ef4f534;hpb=68ed2ee005d0883cf09466d8dc2b3509acde249a;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/printk.h b/instrumentation/events/lttng-module/printk.h index 9ac55c72..fd7cccc3 100644 --- a/instrumentation/events/lttng-module/printk.h +++ b/instrumentation/events/lttng-module/printk.h @@ -1,15 +1,18 @@ #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_MAP(console, + + printk_console, + TP_PROTO(const char *text, size_t len), TP_ARGS(text, len), @@ -27,7 +30,10 @@ TRACE_EVENT(console, #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) -TRACE_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), @@ -48,7 +54,10 @@ TRACE_EVENT_CONDITION(console, #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ -TRACE_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), @@ -77,7 +86,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"