#include "modprobe.h"
#include "kern-modules.h"
-/* MUST be loaded first */
+/* LTTng kernel tracer base modules list */
const struct kern_modules_param kern_modules_control[] = {
- { "lttng-tracer", 1 },
-};
-
-/* LTTng kernel tracer modules list */
-const struct kern_modules_param kern_modules_list[] = {
- { "lttng-ftrace", 0 },
- { "lttng-kprobes", 0 },
- { "lttng-kretprobes", 0 },
+ { "lttng-tracer", 1 }, /* MUST be loaded first so keep at top */
{ "lttng-lib-ring-buffer", 1 },
{ "lttng-ring-buffer-client-discard", 1 },
{ "lttng-ring-buffer-client-overwrite", 1 },
{ "lttng-ring-buffer-client-mmap-overwrite", 1 },
{ "lttng-ring-buffer-metadata-mmap-client", 1 },
{ "lttng-types", 0 },
+ { "lttng-ftrace", 0 },
+ { "lttng-kprobes", 0 },
+ { "lttng-kretprobes", 0 },
+};
+
+/* LTTng kernel tracer probe modules list */
+const struct kern_modules_param kern_modules_probes[] = {
{ "lttng-probe-asoc", 0 },
{ "lttng-probe-block", 0 },
{ "lttng-probe-btrfs", 0 },
*/
void modprobe_remove_lttng_data(void)
{
- return modprobe_remove_lttng(kern_modules_list,
+ return modprobe_remove_lttng(kern_modules_probes,
ARRAY_SIZE(kern_modules_list));
}
*/
int modprobe_lttng_data(void)
{
- return modprobe_lttng(kern_modules_list,
- ARRAY_SIZE(kern_modules_list));
+ return modprobe_lttng(kern_modules_probes,
+ ARRAY_SIZE(kern_modules_probes));
}