projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix block_rq_complete TP on Ubuntu kernel
[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 690b5df727dd337be38183a00561ef1af5756dee..c2ddf8d1d391cfaa24c69b0e350fa4f79a82e0bf 100644
(file)
--- a/
instrumentation/events/lttng-module/lttng.h
+++ b/
instrumentation/events/lttng-module/lttng.h
@@
-6,24
+6,19
@@
#include <linux/tracepoint.h>
#include <linux/tracepoint.h>
-TRACE_EVENT(lttng_metadata,
-
- TP_PROTO(const char *str),
-
- TP_ARGS(str),
-
+TRACE_EVENT(lttng_logger,
+ TP_PROTO(const char __user *text, size_t len),
+ TP_ARGS(text, len),
TP_STRUCT__entry(
TP_STRUCT__entry(
- __
string( string, str
)
+ __
dynamic_array_text(char, msg, len
)
),
),
-
TP_fast_assign(
TP_fast_assign(
- tp_
strcpy(string, str
)
+ tp_
memcpy_dyn_from_user(msg, text
)
),
),
-
TP_printk("")
)
TP_printk("")
)
-#endif /*
_TRACE_LTTNG_H */
+#endif /* _TRACE_LTTNG_H */
/* This part must be outside protection */
/* This part must be outside protection */
-#include "define_trace.h"
+#include "
../../../probes/
define_trace.h"
This page took
0.024395 seconds
and
4
git commands to generate.