#include <common/defaults.hpp>
#include <common/index/ctf-index.hpp>
#include <common/macros.hpp>
#include <common/defaults.hpp>
#include <common/index/ctf-index.hpp>
#include <common/macros.hpp>
-#define RELAYD_VERSION_COMM_MAJOR VERSION_MAJOR
-#define RELAYD_VERSION_COMM_MINOR VERSION_MINOR
+#include <lttng/lttng.h>
+
+#include <limits.h>
+#include <stdint.h>
+
+#define RELAYD_VERSION_COMM_MAJOR VERSION_MAJOR
+#define RELAYD_VERSION_COMM_MINOR VERSION_MINOR
-#define RELAYD_COMM_LTTNG_HOST_NAME_MAX_2_4 64
-#define RELAYD_COMM_LTTNG_NAME_MAX_2_4 255
-#define RELAYD_COMM_LTTNG_PATH_MAX 4096
-#define RELAYD_COMM_DEFAULT_STREAM_NAME_LEN 264 /* 256 + 8 */
+#define RELAYD_COMM_LTTNG_HOST_NAME_MAX_2_4 64
+#define RELAYD_COMM_LTTNG_NAME_MAX_2_4 255
+#define RELAYD_COMM_LTTNG_PATH_MAX 4096
+#define RELAYD_COMM_DEFAULT_STREAM_NAME_LEN 264 /* 256 + 8 */
- uint64_t data_size; /* data size following this header */
- uint32_t cmd; /* enum lttcomm_relayd_command */
- uint32_t cmd_version; /* command version */
+ uint64_t data_size; /* data size following this header */
+ uint32_t cmd; /* enum lttcomm_relayd_command */
+ uint32_t cmd_version; /* command version */
- uint64_t stream_id; /* Stream ID known by the relayd */
- uint64_t net_seq_num; /* Network sequence number, per stream. */
- uint32_t data_size; /* data size following this header */
- uint32_t padding_size; /* Size of 0 padding the data */
+ uint64_t stream_id; /* Stream ID known by the relayd */
+ uint64_t net_seq_num; /* Network sequence number, per stream. */
+ uint32_t data_size; /* data size following this header */
+ uint32_t padding_size; /* Size of 0 padding the data */
- return offsetof(struct lttcomm_relayd_index, stream_id)
- + member_sizeof(struct lttcomm_relayd_index,
- stream_id);
+ return offsetof(struct lttcomm_relayd_index, stream_id) +
+ member_sizeof(struct lttcomm_relayd_index, stream_id);
- return offsetof(struct lttcomm_relayd_index, packet_seq_num)
- + member_sizeof(struct lttcomm_relayd_index,
- packet_seq_num);
+ return offsetof(struct lttcomm_relayd_index, packet_seq_num) +
+ member_sizeof(struct lttcomm_relayd_index, packet_seq_num);
/* Sessiond session id */
uint64_t session_id;
/* Session creation time, in seconds since UNIX Epoch. */
uint64_t creation_time;
LTTNG_OPTIONAL_COMM(uint64_t) LTTNG_PACKED current_chunk_id;
/* Contains the session_name, hostname, base_path. */
/* Sessiond session id */
uint64_t session_id;
/* Session creation time, in seconds since UNIX Epoch. */
uint64_t creation_time;
LTTNG_OPTIONAL_COMM(uint64_t) LTTNG_PACKED current_chunk_id;
/* Contains the session_name, hostname, base_path. */
} LTTNG_PACKED;
struct lttcomm_relayd_create_session_reply_2_11 {
struct lttcomm_relayd_status_session generic;
/* Includes the '\0' terminator. */
uint32_t output_path_length;
} LTTNG_PACKED;
struct lttcomm_relayd_create_session_reply_2_11 {
struct lttcomm_relayd_status_session generic;
/* Includes the '\0' terminator. */
uint32_t output_path_length;
uint64_t creation_timestamp;
/* Includes trailing NULL. */
uint32_t override_name_length;
uint64_t creation_timestamp;
/* Includes trailing NULL. */
uint32_t override_name_length;
/* Set of lttcomm_relayd_configuration_flag. */
uint64_t relayd_configuration_flags;
/* Optional variable-length payload. */
/* Set of lttcomm_relayd_configuration_flag. */
uint64_t relayd_configuration_flags;
/* Optional variable-length payload. */