Add create session snapshot API in lttng-sessiond
[lttng-tools.git] / include / lttng / lttng.h
index 3e7fb63169e83b780ad247a3fda616bbade91050..9e3924e67656bf174dc373beb689078d715bc510 100644 (file)
@@ -390,6 +390,21 @@ extern void lttng_destroy_handle(struct lttng_handle *handle);
  */
 extern int lttng_create_session(const char *name, const char *url);
 
+/*
+ * Create a tracing session that will exclusively be used for snapshot meaning
+ * the session will be in no output mode and every channel enabled for that
+ * session will be set in overwrite mode and in mmap output since splice is not
+ * supported.
+ *
+ * If an url is given, it will be used to create a default snapshot output
+ * using it as a destination. If NULL, no output will be defined and an
+ * add-output call will be needed.
+ *
+ * Name can't be NULL.
+ */
+extern int lttng_create_session_snapshot(const char *name,
+               const char *snapshot_url);
+
 /*
  * Destroy a tracing session.
  *
This page took 0.024681 seconds and 5 git commands to generate.