* 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>
}
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");