projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: namespace asoc and kmem instrumentation
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
lttng.h
diff --git
a/instrumentation/events/lttng-module/lttng.h
b/instrumentation/events/lttng-module/lttng.h
index c2ddf8d1d391cfaa24c69b0e350fa4f79a82e0bf..d2f20a067c8944dcff33d1f1ab2150a136ed7e2a 100644
(file)
--- a/
instrumentation/events/lttng-module/lttng.h
+++ b/
instrumentation/events/lttng-module/lttng.h
@@
-1,24
+1,20
@@
#undef TRACE_SYSTEM
#define TRACE_SYSTEM lttng
#undef TRACE_SYSTEM
#define TRACE_SYSTEM lttng
-#if !defined(_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ)
-#define _TRACE_LTTNG_H
+#if !defined(
LTTNG
_TRACE_LTTNG_H) || defined(TRACE_HEADER_MULTI_READ)
+#define
LTTNG
_TRACE_LTTNG_H
-#include
<linux/tracepoint.h>
+#include
"../../../probes/lttng-tracepoint-event.h"
-
TRACE
_EVENT(lttng_logger,
+
LTTNG_TRACEPOINT
_EVENT(lttng_logger,
TP_PROTO(const char __user *text, size_t len),
TP_ARGS(text, len),
TP_PROTO(const char __user *text, size_t len),
TP_ARGS(text, len),
- TP_STRUCT__entry(
- __dynamic_array_text(char, msg, len)
- ),
- TP_fast_assign(
- tp_memcpy_dyn_from_user(msg, text)
- ),
- TP_printk("")
+ TP_FIELDS(
+ ctf_user_sequence_text(char, msg, text, size_t, len)
+ )
)
)
-#endif /* _TRACE_LTTNG_H */
+#endif /*
LTTNG
_TRACE_LTTNG_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.022983 seconds
and
4
git commands to generate.