Propagate trace format to relayd on session creation
[lttng-tools.git] / src / common / sessiond-comm / relayd.hpp
index d266284cb06fa3ab6b9340130b9eea1db5938714..2b1924161f6ec0800b4e5976d8cc1dfbf143abf0 100644 (file)
@@ -221,6 +221,34 @@ struct lttcomm_relayd_create_session_reply_2_11 {
        char output_path[];
 } LTTNG_PACKED;
 
+enum relayd_trace_format {
+       RELAYD_TRACE_FORMAT_CTF_1 = 0,
+       RELAYD_TRACE_FORMAT_CTF_2 = 1,
+};
+
+typedef struct lttcomm_relayd_create_session_reply_2_11 lttcomm_relayd_create_session_reply_2_15;
+
+struct lttcomm_relayd_create_session_2_15 {
+       uint32_t session_name_len;
+       uint32_t hostname_len;
+       /* Optional, set to 0 to indicate it is not user-specified. */
+       uint32_t base_path_len;
+       uint32_t live_timer;
+       uint8_t snapshot;
+       uint8_t session_name_contains_creation_time;
+       /* Sessiond instance UUID */
+       uint8_t sessiond_uuid[LTTNG_UUID_LEN];
+       /* Sessiond session id */
+       uint64_t session_id;
+       /* Session creation time, in seconds since UNIX Epoch. */
+       uint64_t creation_time;
+       /* Trace format: enum relayd_trace_format */
+       uint8_t trace_format;
+       LTTNG_OPTIONAL_COMM(uint64_t) LTTNG_PACKED current_chunk_id;
+       /* Contains the session_name, hostname, base_path. */
+       char names[];
+} LTTNG_PACKED;
+
 /*
  * Used to ask the relay to reset the metadata trace file (regeneration).
  * Send the new version of the metadata (starts at 0).
This page took 0.026046 seconds and 5 git commands to generate.