- * Copy common data between lttcomm_lttng_header and lttcomm_session_msg
- */
-static void copy_common_data(struct lttcomm_lttng_header *llh, struct lttcomm_session_msg *lsm)
-{
- llh->cmd_type = lsm->cmd_type;
- llh->pid = lsm->pid;
-
- /* Manage uuid */
- if (!uuid_is_null(lsm->session_id)) {
- uuid_copy(llh->session_id, lsm->session_id);
- }
-
- strncpy(llh->trace_name, lsm->trace_name, strlen(llh->trace_name));
- llh->trace_name[strlen(llh->trace_name) - 1] = '\0';
-}
-
-/*
- * setup_data_buffer
- *
- * Setup the outgoing data buffer for the response
- * data allocating the right amount of memory.
+ * Setup the outgoing data buffer for the response (llm) by allocating the
+ * right amount of memory and copying the original information from the lsm
+ * structure.