Hi, the test clock plugin should be initiated before all the other lttng modules when build inside the kernel . Move the module_init to e.g rootfs_initcall.
Anders Wallin
From 8a155c627701118247500eb80403f09b19504df0 Mon Sep 17 00:00:00 2001 Message-Id: <8a155c627701118247500eb80403f09b19504df0.1468955791.git.anders.wal...@windriver.com> From: Anders Wallin <[email protected]> Date: Tue, 19 Jul 2016 21:08:20 +0200 Subject: [PATCH 1/1] The clock plugin must be initiated before first use of the clock When building lttng inside the kernel the clock plugin must be initated before the rest of the lttng code is initiated. Moved the init to rootfs_initcall. Signed-off-by: Anders Wallin <[email protected]> --- tests/clock-plugin/lttng-clock-plugin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/clock-plugin/lttng-clock-plugin-test.c b/tests/clock-plugin/lttng-clock-plugin-test.c index f16ea64..bf81932 100644 --- a/tests/clock-plugin/lttng-clock-plugin-test.c +++ b/tests/clock-plugin/lttng-clock-plugin-test.c @@ -67,7 +67,7 @@ int lttng_clock_plugin_init(void) { return lttng_clock_register_plugin(<c, THIS_MODULE); } -module_init(lttng_clock_plugin_init); +rootfs_initcall(lttng_clock_plugin_init); static __exit void lttng_clock_plugin_exit(void) -- 2.9.1
_______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
