Fix: the clock plugin must be initiated before first use of the clock
authorAnders Wallin <wallinux@gmail.com>
Fri, 22 Jul 2016 13:56:59 +0000 (15:56 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Jul 2016 14:39:37 +0000 (10:39 -0400)
When building lttng inside the kernel the clock plugin must be initated
before the rest of the lttng code. Moved the module_init to
rootfs_initcall. The functionality will not change when built as a
module.

Signed-off-by: Anders Wallin <wallinux@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/clock-plugin/lttng-clock-plugin-test.c

index f16ea645543a32a3dfe9d420ec465e4262128a53..bf8193298602840dda91c0d23f48a80e6f1bab33 100644 (file)
@@ -67,7 +67,7 @@ int lttng_clock_plugin_init(void)
 {
        return lttng_clock_register_plugin(&ltc, THIS_MODULE);
 }
-module_init(lttng_clock_plugin_init);
+rootfs_initcall(lttng_clock_plugin_init);
 
 static __exit
 void lttng_clock_plugin_exit(void)
This page took 0.028815 seconds and 4 git commands to generate.