- enum lttcomm_command_type cmd_type;
- enum lttcomm_return_code ret_code;
- uuid_t session_id;
- pid_t pid;
- char trace_name[NAME_MAX];
- unsigned int size_payload;
+ u32 cmd_type; /* enum lttcomm_sessiond_command */
+ u32 ret_code; /* enum lttcomm_return_code */
+ u32 pid; /* pid_t */
+ u32 trace_name_offset;
+ u32 data_size;
+ uuid_t session_uuid;
+ /* Contains: trace_name + data */
+ char payload[];
+};
+
+/*
+ * Data structures for the kconsumerd communications
+ *
+ * The header structure is sent to the kconsumerd daemon to inform
+ * how many lttcomm_kconsumerd_msg it is about to receive
+ */
+struct lttcomm_kconsumerd_header {
+ u32 payload_size;
+ u32 cmd_type; /* enum lttcomm_consumerd_command */
+ u32 ret_code; /* enum lttcomm_return_code */
+};
+
+/* lttcomm_kconsumerd_msg represents a file descriptor to consume the
+ * data and a path name to write it
+ */
+struct lttcomm_kconsumerd_msg {
+ char path_name[PATH_MAX];
+ int fd;
+ u32 state; /* enum lttcomm_kconsumerd_fd_state */