end:
lttng_disconnect_sessiond();
- memset(&lsm, 0, sizeof(lsm));
return ret;
}
*
* Create a channel in the kernel tracer.
*/
-int lttng_kernel_create_channel(int overwrite,
- u64 subbuf_size, u64 num_subbuf,
- unsigned int switch_timer_interval,
- unsigned int read_timer_interval)
+int lttng_kernel_create_channel(void)
{
- /* Write setting to the session message */
- lsm.u.create_channel.overwrite = overwrite;
- lsm.u.create_channel.subbuf_size = subbuf_size;
- lsm.u.create_channel.num_subbuf = num_subbuf;
- lsm.u.create_channel.switch_timer_interval = switch_timer_interval;
- lsm.u.create_channel.read_timer_interval = read_timer_interval;
-
return ask_sessiond(KERNEL_CREATE_CHANNEL, NULL);
}
+/*
+ * lttng_kernel_open_metadata
+ *
+ * Open metadata in the kernel tracer.
+ */
+int lttng_kernel_open_metadata(void)
+{
+ return ask_sessiond(KERNEL_OPEN_METADATA, NULL);
+}
+
+/*
+ * lttng_kernel_create_stream
+ *
+ * Create stream in the kernel tracer.
+ */
+int lttng_kernel_create_stream(void)
+{
+ return ask_sessiond(KERNEL_CREATE_STREAM, NULL);
+}
+
/*
* lttng_kernel_start_tracing
*
/*
* lttng_create_session
*
- * Create a brand new session using name. Allocate
- * the session_id param pointing to the UUID.
+ * Create a brand new session using name.
*/
-int lttng_create_session(char *name, uuid_t *session_id)
+int lttng_create_session(char *name)
{
int ret;
goto end;
}
- uuid_copy(*session_id, llm.session_uuid);
-
end:
return ret;
}
static void __attribute__((constructor)) init()
{
/* Set default session group */
- lttng_set_tracing_group(DEFAULT_TRACING_GROUP);
+ lttng_set_tracing_group(LTTNG_DEFAULT_TRACING_GROUP);
}