X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-ftrace.c;h=f2190370cdcdc9e2124ee4daa82520fb600c9880;hb=e3de3ddef85fe03b67578e124d6af84d51198bb6;hp=3ec000ae576e8b5adde12b6bb27fc4b408f033fc;hpb=5a9479dcba0b43d326569fa0bd48318222d23fcb;p=lttng-modules.git diff --git a/probes/lttng-ftrace.c b/probes/lttng-ftrace.c index 3ec000ae..f2190370 100644 --- a/probes/lttng-ftrace.c +++ b/probes/lttng-ftrace.c @@ -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 #include #include @@ -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");