projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filtering: add support for star-only globbing patterns
[lttng-modules.git]
/
lttng-abi.c
diff --git
a/lttng-abi.c
b/lttng-abi.c
index e193f4377734d1a47a8d881125de8d93befe0cc3..40f96eb5d76dc6992dd6e6a311742593ed3b87c1 100644
(file)
--- a/
lttng-abi.c
+++ b/
lttng-abi.c
@@
-396,7
+396,7
@@
int lttng_abi_create_channel(struct file *session_file,
fops = <tng_metadata_fops;
break;
}
fops = <tng_metadata_fops;
break;
}
-
+
chan_file = anon_inode_getfile("[lttng_channel]",
fops,
NULL, O_RDWR);
chan_file = anon_inode_getfile("[lttng_channel]",
fops,
NULL, O_RDWR);
@@
-998,8
+998,11
@@
int lttng_abi_open_metadata_stream(struct file *channel_file)
goto notransport;
}
goto notransport;
}
- if (!lttng_kref_get(&session->metadata_cache->refcount))
+ if (!lttng_kref_get(&session->metadata_cache->refcount)) {
+ ret = -EOVERFLOW;
goto kref_error;
goto kref_error;
+ }
+
ret = lttng_abi_create_stream_fd(channel_file, stream_priv,
<tng_metadata_ring_buffer_file_operations);
if (ret < 0)
ret = lttng_abi_create_stream_fd(channel_file, stream_priv,
<tng_metadata_ring_buffer_file_operations);
if (ret < 0)
@@
-1743,7
+1746,7
@@
int __init lttng_abi_init(void)
lttng_clock_ref();
lttng_proc_dentry = proc_create_data("lttng", S_IRUSR | S_IWUSR, NULL,
<tng_fops, NULL);
lttng_clock_ref();
lttng_proc_dentry = proc_create_data("lttng", S_IRUSR | S_IWUSR, NULL,
<tng_fops, NULL);
-
+
if (!lttng_proc_dentry) {
printk(KERN_ERR "Error creating LTTng control file\n");
ret = -ENOMEM;
if (!lttng_proc_dentry) {
printk(KERN_ERR "Error creating LTTng control file\n");
ret = -ENOMEM;
This page took
0.025385 seconds
and
4
git commands to generate.