Add metadata transport
[lttng-modules.git] / ltt-debugfs-abi.c
index f9f5bedf7913c37ccaf24e92fe6af8c5e674803f..99b4196616419e754544e46469da5edba4f9610a 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/file.h>
 #include <linux/uaccess.h>
 #include <linux/slab.h>
+#include "wrapper/vmalloc.h"   /* for wrapper_vmalloc_sync_all() */
 #include "wrapper/ringbuffer/vfs.h"
 #include "ltt-debugfs-abi.h"
 #include "ltt-events.h"
@@ -46,7 +47,6 @@ static const struct file_operations lttng_event_fops;
 
 enum channel_type {
        PER_CPU_CHANNEL,
-       GLOBAL_CHANNEL,
        METADATA_CHANNEL,
 };
 
@@ -186,13 +186,8 @@ int lttng_abi_create_channel(struct file *session_file,
                        "relay-overwrite" : "relay-discard";
                fops = &lttng_channel_fops;
                break;
-       case GLOBAL_CHANNEL:
-               transport_name = chan_param.overwrite ?
-                       "global-relay-overwrite" : "global-relay-discard";
-               fops = &lttng_channel_fops;
-               break;
        case METADATA_CHANNEL:
-               transport_name = "global-relay-discard";
+               transport_name = "relay-metadata";
                fops = &lttng_metadata_fops;
                break;
        default:
@@ -537,6 +532,7 @@ int __init ltt_debugfs_abi_init(void)
 {
        int ret = 0;
 
+       wrapper_vmalloc_sync_all();
        lttng_dentry = debugfs_create_file("lttng", S_IWUSR, NULL, NULL,
                                           &lttng_fops);
        if (IS_ERR(lttng_dentry) || !lttng_dentry) {
This page took 0.023076 seconds and 4 git commands to generate.