projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the relayd create session command
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
relayd.h
diff --git
a/src/common/sessiond-comm/relayd.h
b/src/common/sessiond-comm/relayd.h
index 5be2328b9794676462f1c0cd96a588a0e97fc406..6cd9a21f4ca922b81cd8df4dd1ea41fb276a3321 100644
(file)
--- a/
src/common/sessiond-comm/relayd.h
+++ b/
src/common/sessiond-comm/relayd.h
@@
-25,6
+25,7
@@
#include <stdint.h>
#include <lttng/lttng.h>
#include <stdint.h>
#include <lttng/lttng.h>
+#include <common/defaults.h>
#define RELAYD_VERSION_COMM_MAJOR 2
#define RELAYD_VERSION_COMM_MINOR 1
#define RELAYD_VERSION_COMM_MAJOR 2
#define RELAYD_VERSION_COMM_MINOR 1
@@
-52,11
+53,19
@@
struct lttcomm_relayd_data_hdr {
uint32_t padding_size; /* Size of 0 padding the data */
} __attribute__ ((__packed__));
uint32_t padding_size; /* Size of 0 padding the data */
} __attribute__ ((__packed__));
+/*
+ * Reply from a create session command.
+ */
+struct lttcomm_relayd_status_session {
+ uint64_t session_id;
+ uint32_t ret_code;
+} __attribute__ ((__packed__));
+
/*
* Used to add a stream on the relay daemon.
*/
struct lttcomm_relayd_add_stream {
/*
* Used to add a stream on the relay daemon.
*/
struct lttcomm_relayd_add_stream {
- char channel_name[
LTTNG_SYMBOL
_NAME_LEN];
+ char channel_name[
DEFAULT_STREAM
_NAME_LEN];
char pathname[PATH_MAX];
} __attribute__ ((__packed__));
char pathname[PATH_MAX];
} __attribute__ ((__packed__));
@@
-108,10
+117,10
@@
struct lttcomm_relayd_close_stream {
} __attribute__ ((__packed__));
/*
} __attribute__ ((__packed__));
/*
- * Used to test if for a given stream id the data is
available on the relayd
- *
side
for reading.
+ * Used to test if for a given stream id the data is
pending on the relayd side
+ * for reading.
*/
*/
-struct lttcomm_relayd_data_
available
{
+struct lttcomm_relayd_data_
pending
{
uint64_t stream_id;
uint64_t last_net_seq_num; /* Sequence number of the last packet */
} __attribute__ ((__packed__));
uint64_t stream_id;
uint64_t last_net_seq_num; /* Sequence number of the last packet */
} __attribute__ ((__packed__));
This page took
0.023764 seconds
and
4
git commands to generate.