#include <lttng/lttng.h>
#include <common/compat/socket.h>
#include <common/uri.h>
+#include <common/defaults.h>
#include <arpa/inet.h>
#include <netinet/in.h>
RELAYD_VERSION,
RELAYD_SEND_METADATA,
RELAYD_CLOSE_STREAM,
- LTTNG_SET_FILTER,
+ RELAYD_DATA_PENDING,
+ RELAYD_QUIESCENT_CONTROL,
+ LTTNG_ENABLE_EVENT_WITH_FILTER,
LTTNG_HEALTH_CHECK,
+ LTTNG_DATA_PENDING,
};
/*
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event event;
+ /* Length of following bytecode for filter. */
+ uint32_t bytecode_len;
} enable;
/* Create channel */
struct {
/* Context */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
- char event_name[LTTNG_SYMBOL_NAME_LEN];
struct lttng_event_context ctx;
} context;
/* Use by register_consumer */
/* Number of lttng_uri following */
uint32_t size;
} uri;
- struct {
- char channel_name[LTTNG_SYMBOL_NAME_LEN];
- char event_name[LTTNG_SYMBOL_NAME_LEN];
- /* Length of following bytecode */
- uint32_t bytecode_len;
- } filter;
} u;
};
struct lttng_filter_bytecode {
uint32_t len; /* len of data */
uint32_t reloc_table_offset;
+ uint64_t seqnum;
char data[0];
};
char path_name[PATH_MAX];
int net_index;
unsigned int metadata_flag;
- char name[LTTNG_SYMBOL_NAME_LEN]; /* Name string of the stream */
+ char name[DEFAULT_STREAM_NAME_LEN]; /* Name string of the stream */
uint64_t session_id; /* Tracing session id of the stream */
} stream;
struct {
} destroy_relayd;
struct {
uint64_t session_id;
- } data_available;
+ } data_pending;
} u;
};