Signed-off-by: David Goulet <david.goulet@polymtl.ca>
extern int lttng_kernel_start_tracing(void);
extern int lttng_kernel_stop_tracing(void);
extern int lttng_kernel_create_channel(void);
+extern int lttng_kernel_open_metadata(void);
#endif /* _LIBLTTNGCTL_H */
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_start_tracing
*
goto error;
}
+ /* Opening metadata for session */
+ ret = lttng_kernel_open_metadata();
+ if (ret < 0) {
+ goto error;
+ }
+
return 0;
error: