Signed-off-by: David Goulet <dgoulet@efficios.com>
struct sockaddr_in sin;
struct sockaddr_in6 sin6;
} addr;
struct sockaddr_in sin;
struct sockaddr_in6 sin6;
} addr;
struct lttcomm_sock {
int fd;
enum lttcomm_sock_proto proto;
struct lttcomm_sockaddr sockaddr;
const struct lttcomm_proto_ops *ops;
struct lttcomm_sock {
int fd;
enum lttcomm_sock_proto proto;
struct lttcomm_sockaddr sockaddr;
const struct lttcomm_proto_ops *ops;
struct lttcomm_net_family {
int family;
struct lttcomm_net_family {
int family;
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
char name[NAME_MAX];
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
char name[NAME_MAX];
+ } LTTNG_PACKED disable;
/* Event data */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event event;
/* Length of following bytecode for filter. */
uint32_t bytecode_len;
/* Event data */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event event;
/* Length of following bytecode for filter. */
uint32_t bytecode_len;
/* Create channel */
struct {
struct lttng_channel chan;
/* Create channel */
struct {
struct lttng_channel chan;
+ } LTTNG_PACKED channel;
/* Context */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event_context ctx;
/* Context */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event_context ctx;
+ } LTTNG_PACKED context;
/* Use by register_consumer */
struct {
char path[PATH_MAX];
/* Use by register_consumer */
struct {
char path[PATH_MAX];
/* List */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
/* List */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_calibrate calibrate;
/* Used by the set_consumer_url and used by create_session also call */
struct {
/* Number of lttng_uri following */
uint32_t size;
struct lttng_calibrate calibrate;
/* Used by the set_consumer_url and used by create_session also call */
struct {
/* Number of lttng_uri following */
uint32_t size;
#define LTTNG_FILTER_MAX_LEN 65536
#define LTTNG_FILTER_MAX_LEN 65536
uint64_t seqnum;
char padding[LTTNG_FILTER_PADDING];
char data[0];
uint64_t seqnum;
char padding[LTTNG_FILTER_PADDING];
char data[0];
/*
* Data structure for the response from sessiond to the lttng client.
/*
* Data structure for the response from sessiond to the lttng client.
uint32_t data_size;
/* Contains: trace_name + data */
char payload[];
uint32_t data_size;
/* Contains: trace_name + data */
char payload[];
struct lttcomm_health_msg {
uint32_t component;
uint32_t cmd;
struct lttcomm_health_msg {
uint32_t component;
uint32_t cmd;
struct lttcomm_health_data {
uint32_t ret_code;
struct lttcomm_health_data {
uint32_t ret_code;
/*
* lttcomm_consumer_msg is the message sent from sessiond to consumerd
/*
* lttcomm_consumer_msg is the message sent from sessiond to consumerd
/* nb_init_streams is the number of streams open initially. */
unsigned int nb_init_streams;
char name[LTTNG_SYMBOL_NAME_LEN];
/* nb_init_streams is the number of streams open initially. */
unsigned int nb_init_streams;
char name[LTTNG_SYMBOL_NAME_LEN];
+ } LTTNG_PACKED channel;
struct {
int channel_key;
int stream_key;
struct {
int channel_key;
int stream_key;
unsigned int metadata_flag;
char name[DEFAULT_STREAM_NAME_LEN]; /* Name string of the stream */
uint64_t session_id; /* Tracing session id of the stream */
unsigned int metadata_flag;
char name[DEFAULT_STREAM_NAME_LEN]; /* Name string of the stream */
uint64_t session_id; /* Tracing session id of the stream */
struct {
int net_index;
enum lttng_stream_type type;
struct {
int net_index;
enum lttng_stream_type type;
struct lttcomm_sock sock;
/* Tracing session id associated to the relayd. */
uint64_t session_id;
struct lttcomm_sock sock;
/* Tracing session id associated to the relayd. */
uint64_t session_id;
+ } LTTNG_PACKED relayd_sock;
struct {
uint64_t net_seq_idx;
struct {
uint64_t net_seq_idx;
+ } LTTNG_PACKED destroy_relayd;
struct {
uint64_t session_id;
struct {
uint64_t session_id;
+ } LTTNG_PACKED data_pending;
/*
* Status message returned to the sessiond after a received command.
*/
struct lttcomm_consumer_status_msg {
enum lttng_error_code ret_code;
/*
* Status message returned to the sessiond after a received command.
*/
struct lttcomm_consumer_status_msg {
enum lttng_error_code ret_code;
#ifdef HAVE_LIBLTTNG_UST_CTL
#ifdef HAVE_LIBLTTNG_UST_CTL
struct lttng_ust_context context;
struct lttng_ust_tracer_version version;
} u;
struct lttng_ust_context context;
struct lttng_ust_tracer_version version;
} u;
/*
* Data structure for the response from UST to the session daemon.
/*
* Data structure for the response from UST to the session daemon.
union {
struct {
uint64_t memory_map_size;
union {
struct {
uint64_t memory_map_size;
+ } LTTNG_PACKED channel;
struct {
uint64_t memory_map_size;
struct {
uint64_t memory_map_size;
struct lttng_ust_tracer_version version;
} u;
struct lttng_ust_tracer_version version;
} u;
#endif /* HAVE_LIBLTTNG_UST_CTL */
#endif /* HAVE_LIBLTTNG_UST_CTL */