projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add kernel sesison and channel creation support
[lttng-tools.git]
/
lttng
/
lttng.c
diff --git
a/lttng/lttng.c
b/lttng/lttng.c
index 10ce2ddfc08539bb121c2a0aa8b3bfe017a93f20..beb67ffb446afa430ab4ca34982e26b8237bb0a0 100644
(file)
--- a/
lttng/lttng.c
+++ b/
lttng/lttng.c
@@
-181,7
+181,24
@@
error: /* fall through */
*/
static int process_kernel_create_trace(void)
{
*/
static int process_kernel_create_trace(void)
{
+ int ret;
+
+ /* Setup kernel session */
+ ret = lttng_kernel_create_session();
+ if (ret < 0) {
+ goto error;
+ }
+
+ /* Create an empty channel (with no event) */
+ ret = lttng_kernel_create_channel();
+ if (ret < 0) {
+ goto error;
+ }
+
return 0;
return 0;
+
+error:
+ return ret;
}
/*
}
/*
This page took
0.023135 seconds
and
4
git commands to generate.