From: Michael Jeanson Date: Fri, 12 Feb 2016 21:31:44 +0000 (-0500) Subject: Drop optional control modules load and unload X-Git-Tag: v2.8.0-rc1~67 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=51c62b8c142906933436ec987ddd451430983b79;p=lttng-tools.git Drop optional control modules load and unload The optionnal control modules are loaded and unloaded through modules dependencies by modprobe or libkmod. Trying to load them manually leads to spurious log messages and slows down the sessiond startup. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 2c527dced..81ce8105a 100644 --- a/src/bin/lttng-sessiond/modprobe.c +++ b/src/bin/lttng-sessiond/modprobe.c @@ -33,8 +33,6 @@ /* LTTng kernel tracer mandatory core modules list */ struct kern_modules_param kern_modules_control_core[] = { - { "lttng-tracer" }, /* MUST be loaded first so keep at top */ - { "lttng-lib-ring-buffer" }, { "lttng-ring-buffer-client-discard" }, { "lttng-ring-buffer-client-overwrite" }, { "lttng-ring-buffer-metadata-client" }, @@ -43,14 +41,6 @@ struct kern_modules_param kern_modules_control_core[] = { { "lttng-ring-buffer-metadata-mmap-client" }, }; -/* LTTng kernel tracer optional base modules list */ -struct kern_modules_param kern_modules_control_opt[] = { - { "lttng-types" }, - { "lttng-ftrace" }, - { "lttng-kprobes" }, - { "lttng-kretprobes" }, -}; - /* LTTng kernel tracer probe modules list */ struct kern_modules_param kern_modules_probes_default[] = { { "lttng-probe-asoc" }, @@ -134,9 +124,6 @@ static void modprobe_remove_lttng(const struct kern_modules_param *modules, */ void modprobe_remove_lttng_control(void) { - modprobe_remove_lttng(kern_modules_control_opt, - ARRAY_SIZE(kern_modules_control_opt), - LTTNG_MOD_OPTIONAL); modprobe_remove_lttng(kern_modules_control_core, ARRAY_SIZE(kern_modules_control_core), LTTNG_MOD_REQUIRED); @@ -303,11 +290,6 @@ int modprobe_lttng_control(void) ret = modprobe_lttng(kern_modules_control_core, ARRAY_SIZE(kern_modules_control_core), LTTNG_MOD_REQUIRED); - if (ret != 0) - return ret; - ret = modprobe_lttng(kern_modules_control_opt, - ARRAY_SIZE(kern_modules_control_opt), - LTTNG_MOD_OPTIONAL); return ret; }