Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
static struct ltt_session_list *session_list_ptr;
+int ust_consumer_fd;
+
/*
* Create a poll set with O_CLOEXEC and add the thread quit pipe to the set.
*/
goto error;
}
- cmd_ctx->session->ust_session->consumer_fd =
- ustconsumer_data.cmd_sock;
+ ust_consumer_fd = ustconsumer_data.cmd_sock;
}
pthread_mutex_unlock(&ustconsumer_data.pid_mutex);
}
}
/* Init data structure */
- lus->consumer_fds_sent = 0;
lus->uid = uid;
lus->start_trace = 0;
/* UST session */
struct ltt_ust_session {
int uid; /* Unique identifier of session */
- int consumer_fds_sent;
- int consumer_fd;
int start_trace;
char pathname[PATH_MAX];
struct ltt_ust_domain_global domain_global;
}
/* Setup UST consumer socket and send fds to it */
- ret = ust_consumer_send_session(usess->consumer_fd, ua_sess);
+ ret = ust_consumer_send_session(ust_consumer_fd, ua_sess);
if (ret < 0) {
goto error_rcu_unlock;
}
#define UST_APP_EVENT_LIST_SIZE 32
+extern int ust_consumer_fd;
+
/*
* Application registration data structure.
*/