#include <config.h>
#include <stdlib.h>
#include <lttngerr.h>
+#include <ust/lttng-ust-comm.h>
#include "ust-comm.h"
/*
DBG2("Sending UST command %d to sock %d", msg->cmd, sock);
/* Send UST msg */
- len = lttcomm_send_unix_sock(sock, msg, sizeof(*msg));
+ len = ustcomm_send_unix_sock(sock, msg, sizeof(*msg));
if (len < 0) {
goto error;
}
DBG2("Receiving UST reply on sock %d", sock);
/* Get UST reply */
- len = lttcomm_recv_unix_sock(sock, reply, sizeof(*reply));
+ len = ustcomm_recv_unix_sock(sock, reply, sizeof(*reply));
if (len < 0 || len < sizeof(*reply)) {
goto error;
}
#include <string.h>
#include <unistd.h>
-#include <lttng-sessiond-comm.h>
+#include <ust/lttng-ust-comm.h>
#include <lttngerr.h>
#include "ust-comm.h"
goto error;
}
- if (reply->ret_code != LTTCOMM_OK) {
- DBG("Return code: %s", lttcomm_get_readable_code(reply->ret_code));
+ if (reply->ret_code != USTCOMM_OK) {
+ DBG("Return code: %s", ustcomm_get_readable_code(reply->ret_code));
goto error;
}
goto error;
}
- if (reply->ret_code != LTTCOMM_OK) {
- DBG("Return code: %s", lttcomm_get_readable_code(reply->ret_code));
+ if (reply->ret_code != USTCOMM_OK) {
+ DBG("Return code: %s", ustcomm_get_readable_code(reply->ret_code));
goto error;
}
goto error;
}
- if (reply->ret_code != LTTCOMM_OK) {
+ if (reply->ret_code != USTCOMM_OK) {
DBG("Return code (%d): %s", reply->ret_code,
- lttcomm_get_readable_code(reply->ret_code));
+ ustcomm_get_readable_code(reply->ret_code));
goto error;
}
goto error;
}
- if (reply->ret_code != LTTCOMM_OK) {
+ if (reply->ret_code != USTCOMM_OK) {
DBG("Return code (%d): %s", reply->ret_code,
- lttcomm_get_readable_code(reply->ret_code));
+ ustcomm_get_readable_code(reply->ret_code));
goto error;
} else if (reply->handle != chan->handle) {
ERR("Receive wrong handle from UST reply on enable channel");
goto error;
}
- if (reply->ret_code != LTTCOMM_OK) {
+ if (reply->ret_code != USTCOMM_OK) {
DBG("Return code (%d): %s", reply->ret_code,
- lttcomm_get_readable_code(reply->ret_code));
+ ustcomm_get_readable_code(reply->ret_code));
goto error;
} else if (reply->handle != chan->handle) {
ERR("Receive wrong handle from UST reply on enable channel");