probes lttng: remove compatibility code
[lttng-modules.git] / probes / lttng.c
index c883429fa2e3401b83fb87181557213c008bdb40..ae7dce64399f938eaf96822389304685d944b3f8 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,7 +16,6 @@
 #include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/miscdevice.h>
-#include <wrapper/vmalloc.h>
 #include <lttng-events.h>
 
 #define TP_MODULE_NOAUTOLOAD
@@ -93,6 +92,10 @@ static const struct file_operations lttng_logger_operations = {
        .write = lttng_logger_write,
 };
 
+static const struct proc_ops lttng_logger_proc_ops = {
+       .proc_write = lttng_logger_write,
+};
+
 static struct miscdevice logger_dev = {
        .minor = MISC_DYNAMIC_MINOR,
        .name = "lttng-logger",
@@ -104,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) {
@@ -116,7 +117,7 @@ int __init lttng_logger_init(void)
        /* /proc/lttng-logger */
        lttng_logger_dentry = proc_create_data(LTTNG_LOGGER_FILE,
                                S_IRUGO | S_IWUGO, NULL,
-                               &lttng_logger_operations, NULL);
+                               &lttng_logger_proc_ops, NULL);
        if (!lttng_logger_dentry) {
                printk(KERN_ERR "Error creating LTTng logger proc file\n");
                ret = -ENOMEM;
This page took 0.024202 seconds and 4 git commands to generate.