X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fcmd-2-11.c;h=7d90be9f9f014d1f87cd0b05aba7f74591b1b3f9;hb=db1da059574b86008035b12968446863ab6de866;hp=857f3594299ebe7f17ae90ecb703d73321484202;hpb=23c8ff5013f1e8c132cab7845ca608dbed4fca7f;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/cmd-2-11.c b/src/bin/lttng-relayd/cmd-2-11.c index 857f35942..7d90be9f9 100644 --- a/src/bin/lttng-relayd/cmd-2-11.c +++ b/src/bin/lttng-relayd/cmd-2-11.c @@ -32,7 +32,9 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, char *session_name, char *hostname, uint32_t *live_timer, bool *snapshot, - lttng_uuid sessiond_uuid) + uint64_t *id_sessiond, lttng_uuid sessiond_uuid, + bool *has_current_chunk, uint64_t *current_chunk_id, + time_t *creation_time) { int ret; struct lttcomm_relayd_create_session_2_11 header; @@ -53,6 +55,9 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, header.session_name_len = be32toh(header.session_name_len); header.hostname_len = be32toh(header.hostname_len); header.live_timer = be32toh(header.live_timer); + header.current_chunk_id.value = be64toh(header.current_chunk_id.value); + header.current_chunk_id.is_set = !!header.current_chunk_id.is_set; + header.creation_time = be64toh(header.creation_time); lttng_uuid_copy(sessiond_uuid, header.sessiond_uuid); @@ -103,6 +108,9 @@ int cmd_create_session_2_11(const struct lttng_buffer_view *payload, *live_timer = header.live_timer; *snapshot = !!header.snapshot; + *current_chunk_id = header.current_chunk_id.value; + *has_current_chunk = header.current_chunk_id.is_set; + *creation_time = (time_t) header.creation_time; ret = 0;