Move headers under include/
[lttng-modules.git] / probes / lttng.c
index 383202c68efd8f4f46c6dd30302de5e935f6c54f..735b167dbe71fda226e2ab66e6d9ca20fa8292aa 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
  *
  * lttng.c
  *
@@ -16,8 +16,7 @@
 #include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/miscdevice.h>
-#include <wrapper/vmalloc.h>
-#include <lttng-events.h>
+#include <lttng/lttng-events.h>
 
 #define TP_MODULE_NOAUTOLOAD
 #define LTTNG_PACKAGE_BUILD
@@ -93,17 +92,9 @@ static const struct file_operations lttng_logger_operations = {
        .write = lttng_logger_write,
 };
 
-/*
- * Linux 5.6 introduced a separate proc_ops struct for /proc operations
- * to decouple it from the vfs.
- */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
 static const struct proc_ops lttng_logger_proc_ops = {
        .proc_write = lttng_logger_write,
 };
-#else
-#define lttng_logger_proc_ops lttng_logger_operations
-#endif
 
 static struct miscdevice logger_dev = {
        .minor = MISC_DYNAMIC_MINOR,
@@ -116,8 +107,6 @@ int __init lttng_logger_init(void)
 {
        int ret = 0;
 
-       wrapper_vmalloc_sync_all();
-
        /* /dev/lttng-logger */
        ret = misc_register(&logger_dev);
        if (ret) {
This page took 0.023468 seconds and 4 git commands to generate.