#include <limits.h>
#include <lttng/lttng.h>
#include <common/compat/socket.h>
+#include <common/uri.h>
#include <arpa/inet.h>
#include <netinet/in.h>
LTTNG_ENABLE_ALL_EVENT,
/* Session daemon command */
LTTNG_CREATE_SESSION,
- LTTNG_CREATE_SESSION_URI,
LTTNG_DESTROY_SESSION,
LTTNG_LIST_CHANNELS,
LTTNG_LIST_DOMAINS,
RELAYD_UPDATE_SYNC_INFO,
RELAYD_VERSION,
RELAYD_SEND_METADATA,
-
- /* Other tracer commands */
+ RELAYD_CLOSE_STREAM,
LTTNG_SET_FILTER,
+ LTTNG_HEALTH_CHECK,
};
/*
LTTCOMM_NO_USTCONSUMERD, /* No UST consumer detected */
LTTCOMM_NO_KERNCONSUMERD, /* No Kernel consumer detected */
LTTCOMM_EVENT_EXIST_LOGLEVEL, /* Event already enabled with different loglevel */
- LTTCOMM_URI_DATA_MISS, /* Missing network data URI */
- LTTCOMM_URI_CTRL_MISS, /* Missing network control URI */
+ LTTCOMM_URL_DATA_MISS, /* Missing network data URL */
+ LTTCOMM_URL_CTRL_MISS, /* Missing network control URL */
LTTCOMM_ENABLE_CONSUMER_FAIL, /* Enabling consumer failed */
LTTCOMM_RELAYD_SESSION_FAIL, /* lttng-relayd create session failed */
LTTCOMM_RELAYD_VERSION_FAIL, /* lttng-relayd not compatible */
LTTCOMM_FILTER_INVAL, /* Invalid filter bytecode */
LTTCOMM_FILTER_NOMEM, /* Lack of memory for filter bytecode */
LTTCOMM_FILTER_EXIST, /* Filter already exist */
+ LTTCOMM_NO_CONSUMER, /* No consumer exist for the tracing session */
/* MUST be last element */
LTTCOMM_NR, /* Last element */
* Index in the net_families array below. Please keep in sync!
*/
enum lttcomm_sock_domain {
- LTTCOMM_INET = 1,
- LTTCOMM_INET6 = 2,
+ LTTCOMM_INET = 0,
+ LTTCOMM_INET6 = 1,
};
struct lttcomm_sockaddr {
char channel_name[NAME_MAX];
} list;
struct lttng_calibrate calibrate;
- /* Used by the set_consumer_uri call */
- struct lttng_uri uri;
+ /* Used by the set_consumer_url and used by create_session also call */
struct {
- uint32_t enable_consumer;
- struct lttng_uri ctrl_uri;
- struct lttng_uri data_uri;
- } create_uri;
+ /* Number of lttng_uri following */
+ uint32_t size;
+ } uri;
struct {
char channel_name[NAME_MAX];
char event_name[NAME_MAX];
char payload[];
};
+struct lttcomm_health_msg {
+ uint32_t component;
+ uint32_t cmd;
+};
+
+struct lttcomm_health_data {
+ uint32_t ret_code;
+};
+
/*
* lttcomm_consumer_msg is the message sent from sessiond to consumerd
* to either add a channel, add a stream, update a stream, or stop
/* Open socket to the relayd */
struct lttcomm_sock sock;
} relayd_sock;
+ struct {
+ uint64_t net_seq_idx;
+ } destroy_relayd;
} u;
};