projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename LTTng instrumentation macros
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
printk.h
diff --git
a/instrumentation/events/lttng-module/printk.h
b/instrumentation/events/lttng-module/printk.h
index 9ac55c72fdc3b6f7363842a69dd8490a8ef4f534..16949c4d83da54c25cebc73c01fb655c387da558 100644
(file)
--- 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
#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))
#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),
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))
#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),
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)) */
#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),
TP_PROTO(const char *log_buf, unsigned start, unsigned end,
unsigned log_buf_len),
@@
-77,7
+77,7
@@
TRACE_EVENT_CONDITION(console,
#endif
#endif
-#endif /* _TRACE_PRINTK_H */
+#endif /*
LTTNG
_TRACE_PRINTK_H */
/* This part must be outside protection */
#include "../../../probes/define_trace.h"
/* This part must be outside protection */
#include "../../../probes/define_trace.h"
This page took
0.030158 seconds
and
4
git commands to generate.