Fix: load state dump even if work-around lookup fails
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Feb 2014 17:30:04 +0000 (12:30 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Feb 2014 17:31:01 +0000 (12:31 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-statedump-impl.c
wrapper/tracepoint.h

index 7dd4f56e936ca0ea4a4bfe73d7b937c4e35437f4..b7921df4a643a99b6790cdf887a2f05240201aa9 100755 (executable)
@@ -427,7 +427,14 @@ EXPORT_SYMBOL_GPL(lttng_statedump_start);
 static
 int __init lttng_statedump_init(void)
 {
-       return wrapper_lttng_fixup_sig(THIS_MODULE);
+       /*
+        * Allow module to load even if the fixup cannot be done. This
+        * will allow seemless transition when the underlying issue fix
+        * is merged into the Linux kernel, and when tracepoint.c
+        * "tracepoint_module_notify" is turned into a static function.
+        */
+       (void) wrapper_lttng_fixup_sig(THIS_MODULE);
+       return 0;
 }
 
 module_init(lttng_statedump_init);
index 60b36856e724e9b04125e6ef0970ed17939c4a63..5f429db7585ddb7c7edecf1abd359cb09bc15918 100644 (file)
@@ -59,7 +59,7 @@ int wrapper_tracepoint_module_notify(struct notifier_block *nb,
        if (tracepoint_module_notify_sym) {
                return tracepoint_module_notify_sym(nb, val, mod);
        } else {
-               printk(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed.\n");
+               printk(KERN_WARNING "LTTng: tracepoint_module_notify symbol lookup failed. It probably means you kernel don't need this work-around. Please consider upgrading LTTng modules to make this warning go away.\n");
                return -ENOSYS;
        }
 }
This page took 0.026681 seconds and 4 git commands to generate.