projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add metadata transport
[lttng-modules.git]
/
ltt-debugfs-abi.c
diff --git
a/ltt-debugfs-abi.c
b/ltt-debugfs-abi.c
index f9f5bedf7913c37ccaf24e92fe6af8c5e674803f..99b4196616419e754544e46469da5edba4f9610a 100644
(file)
--- a/
ltt-debugfs-abi.c
+++ b/
ltt-debugfs-abi.c
@@
-28,6
+28,7
@@
#include <linux/file.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#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"
#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,
enum channel_type {
PER_CPU_CHANNEL,
- GLOBAL_CHANNEL,
METADATA_CHANNEL,
};
METADATA_CHANNEL,
};
@@
-186,13
+186,8
@@
int lttng_abi_create_channel(struct file *session_file,
"relay-overwrite" : "relay-discard";
fops = <tng_channel_fops;
break;
"relay-overwrite" : "relay-discard";
fops = <tng_channel_fops;
break;
- case GLOBAL_CHANNEL:
- transport_name = chan_param.overwrite ?
- "global-relay-overwrite" : "global-relay-discard";
- fops = <tng_channel_fops;
- break;
case METADATA_CHANNEL:
case METADATA_CHANNEL:
- transport_name = "
global-relay-discard
";
+ transport_name = "
relay-metadata
";
fops = <tng_metadata_fops;
break;
default:
fops = <tng_metadata_fops;
break;
default:
@@
-537,6
+532,7
@@
int __init ltt_debugfs_abi_init(void)
{
int ret = 0;
{
int ret = 0;
+ wrapper_vmalloc_sync_all();
lttng_dentry = debugfs_create_file("lttng", S_IWUSR, NULL, NULL,
<tng_fops);
if (IS_ERR(lttng_dentry) || !lttng_dentry) {
lttng_dentry = debugfs_create_file("lttng", S_IWUSR, NULL, NULL,
<tng_fops);
if (IS_ERR(lttng_dentry) || !lttng_dentry) {
This page took
0.028497 seconds
and
4
git commands to generate.