struct ltt_channel *chan;
int chan_objd;
int ret = 0;
+ struct ltt_channel chan_priv_init;
chan_objd = objd_alloc(NULL, <tng_channel_ops);
if (chan_objd < 0) {
transport_name = "<unknown>";
break;
}
+ memset(&chan_priv_init, 0, sizeof(chan_priv_init));
+ /* Copy of session UUID for consumer (availability through shm) */
+ memcpy(chan_priv_init.uuid, session->uuid, sizeof(session->uuid));
+
/*
* We tolerate no failure path after channel creation. It will stay
* invariant for the rest of the session.
chan_param->read_timer_interval,
&chan_param->shm_fd,
&chan_param->wait_fd,
- &chan_param->memory_map_size);
+ &chan_param->memory_map_size,
+ &chan_priv_init);
if (!chan) {
ret = -EINVAL;
goto chan_error;
session->metadata = chan;
lttng_metadata_create_events(chan_objd);
}
-
/* The channel created holds a reference on the session */
objd_ref(session_objd);