X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Frelayd%2Frelayd.c;fp=src%2Fcommon%2Frelayd%2Frelayd.c;h=87782e99477af6b3321ca40d597ed7b5c521f9b0;hb=db1da059574b86008035b12968446863ab6de866;hp=830c7c263f89935f0ecf00cc91ca5d17cc9fa320;hpb=b729f6f9f053b2314204b48e7d350738ae548c5d;p=lttng-tools.git diff --git a/src/common/relayd/relayd.c b/src/common/relayd/relayd.c index 830c7c263..87782e994 100644 --- a/src/common/relayd/relayd.c +++ b/src/common/relayd/relayd.c @@ -130,7 +130,8 @@ static int relayd_create_session_2_11(struct lttcomm_relayd_sock *rsock, const char *session_name, const char *hostname, int session_live_timer, unsigned int snapshot, uint64_t sessiond_session_id, const lttng_uuid sessiond_uuid, - const uint64_t *current_chunk_id) + const uint64_t *current_chunk_id, + time_t creation_time) { int ret; struct lttcomm_relayd_create_session_2_11 *msg = NULL; @@ -176,6 +177,8 @@ static int relayd_create_session_2_11(struct lttcomm_relayd_sock *rsock, htobe64(*current_chunk_id)); } + msg->creation_time = htobe64((uint64_t) creation_time); + /* Send command */ ret = send_command(rsock, RELAYD_CREATE_SESSION, msg, msg_length, 0); if (ret < 0) { @@ -248,7 +251,8 @@ int relayd_create_session(struct lttcomm_relayd_sock *rsock, int session_live_timer, unsigned int snapshot, uint64_t sessiond_session_id, const lttng_uuid sessiond_uuid, - const uint64_t *current_chunk_id) + const uint64_t *current_chunk_id, + time_t creation_time) { int ret; struct lttcomm_relayd_status_session reply; @@ -270,7 +274,7 @@ int relayd_create_session(struct lttcomm_relayd_sock *rsock, ret = relayd_create_session_2_11(rsock, session_name, hostname, session_live_timer, snapshot, sessiond_session_id, sessiond_uuid, - current_chunk_id); + current_chunk_id, creation_time); } if (ret < 0) {