const char *base_path, int session_live_timer,
unsigned int snapshot, uint64_t sessiond_session_id,
const lttng_uuid sessiond_uuid, const uint64_t *current_chunk_id,
- time_t creation_time)
+ time_t creation_time, bool session_name_contains_creation_time)
{
int ret;
struct lttcomm_relayd_create_session_2_11 *msg = NULL;
size_t msg_length;
char *dst;
- /* The two names are sent with a '\0' delimiter between them. */
+ if (!base_path) {
+ base_path = "";
+ }
+ /* The three names are sent with a '\0' delimiter between them. */
session_name_len = strlen(session_name) + 1;
hostname_len = strlen(hostname) + 1;
base_path_len = base_path ? strlen(base_path) + 1 : 0;
lttng_uuid_copy(msg->sessiond_uuid, sessiond_uuid);
msg->session_id = htobe64(sessiond_session_id);
-
+ msg->session_name_contains_creation_time = session_name_contains_creation_time;
if (current_chunk_id) {
LTTNG_OPTIONAL_SET(&msg->current_chunk_id,
htobe64(*current_chunk_id));
unsigned int snapshot, uint64_t sessiond_session_id,
const lttng_uuid sessiond_uuid,
const uint64_t *current_chunk_id,
- time_t creation_time)
+ time_t creation_time, bool session_name_contains_creation_time)
{
int ret;
struct lttcomm_relayd_status_session reply;
ret = relayd_create_session_2_11(rsock, session_name,
hostname, base_path, session_live_timer, snapshot,
sessiond_session_id, sessiond_uuid,
- current_chunk_id, creation_time);
+ current_chunk_id, creation_time,
+ session_name_contains_creation_time);
}
if (ret < 0) {