LTTng ftrace support module should be unloadable
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2011 04:17:21 +0000 (00:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2011 04:17:21 +0000 (00:17 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/lttng-ftrace.c

index 3ec000ae576e8b5adde12b6bb27fc4b408f033fc..f2190370cdcdc9e2124ee4daa82520fb600c9880 100644 (file)
@@ -7,6 +7,12 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
+/*
+ * Ftrace function tracer does not seem to provide synchronization between probe
+ * teardown and callback execution. Therefore, we make this module permanently
+ * loaded (unloadable).
+ */
+
 #include <linux/module.h>
 #include <linux/ftrace.h>
 #include <linux/slab.h>
@@ -135,6 +141,13 @@ void lttng_ftrace_unregister(struct ltt_event *event)
 }
 EXPORT_SYMBOL_GPL(lttng_ftrace_unregister);
 
+/* This module is permanent. */
+int lttng_ftrace_init(void)
+{
+       return 0;
+}
+module_init(lttng_ftrace_init)
+
 MODULE_LICENSE("GPL and additional rights");
 MODULE_AUTHOR("Mathieu Desnoyers");
 MODULE_DESCRIPTION("Linux Trace Toolkit Ftrace Support");
This page took 0.027851 seconds and 4 git commands to generate.