obj-$(CONFIG_LTTNG) += lttng-tracer.o
+ obj-$(CONFIG_LTTNG) += lttng-wrapper.o
+
lttng-tracer-objs := lttng-events.o lttng-abi.o lttng-string-utils.o \
lttng-probes.o lttng-context.o \
lttng-context-pid.o lttng-context-procname.o \
lttng-context-interruptible.o \
lttng-context-need-reschedule.o \
lttng-context-callstack.o lttng-calibrate.o \
- lttng-context-hostname.o wrapper/random.o \
- probes/lttng.o wrapper/trace-clock.o \
- wrapper/page_alloc.o \
+ lttng-context-hostname.o \
+ probes/lttng.o \
lttng-tracker-id.o \
lttng-filter.o lttng-filter-interpreter.o \
lttng-filter-specialize.o \
lttng-filter-validator.o \
probes/lttng-probe-user.o \
- lttng-tp-mempool.o
+ lttng-tp-mempool.o \
+
+ lttng-wrapper-objs := wrapper/page_alloc.o \
+ wrapper/random.o \
+ wrapper/trace-clock.o \
+ wrapper/irqdesc.o \
+ wrapper/fdtable.o \
+ lttng-wrapper-impl.o
ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
lttng-tracer-objs += lttng-syscalls.o
endif
obj-$(CONFIG_LTTNG) += lttng-statedump.o
- lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \
- wrapper/fdtable.o
+ lttng-statedump-objs := lttng-statedump-impl.o
obj-$(CONFIG_LTTNG) += probes/
obj-$(CONFIG_LTTNG) += lib/
--- /dev/null
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
+ *
+ * lttng-wrapper.c
+ *
+ * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#include <linux/module.h>
+#include <lttng-tracer.h>
+
+static int __init lttng_wrapper_init(void)
+{
+ return 0;
+}
+
+module_init(lttng_wrapper_init);
+
+static void __exit lttng_exit(void)
+{
+}
+
+module_exit(lttng_exit);
+
+#include "extra_version/patches.i"
+#ifdef LTTNG_EXTRA_VERSION_GIT
+MODULE_INFO(extra_version_git, LTTNG_EXTRA_VERSION_GIT);
+#endif
+#ifdef LTTNG_EXTRA_VERSION_NAME
+MODULE_INFO(extra_version_name, LTTNG_EXTRA_VERSION_NAME);
+#endif
+MODULE_LICENSE("GPL and additional rights");
+MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
+MODULE_DESCRIPTION("LTTng wrapper");
+MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "."
+ __stringify(LTTNG_MODULES_MINOR_VERSION) "."
+ __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION)
+ LTTNG_MODULES_EXTRAVERSION);
return NULL;
}
}
+EXPORT_SYMBOL_GPL(wrapper_irq_to_desc);
#else
{
return irq_to_desc(irq);
}
+EXPORT_SYMBOL_GPL(wrapper_irq_to_desc);
#endif
return -1;
return 0;
}
+EXPORT_SYMBOL_GPL(wrapper_get_pfnblock_flags_mask_init);
#else
return -1;
return 0;
}
+EXPORT_SYMBOL_GPL(wrapper_get_pfnblock_flags_mask_init);
#else
filp_close(file, current->files);
return ret;
}
+EXPORT_SYMBOL_GPL(wrapper_get_bootid);
#else
{
return -ENOSYS;
}
+EXPORT_SYMBOL_GPL(wrapper_get_bootid);
#endif