Add the filter expression to the enable_event agent protocol message
[lttng-tools.git] / src / common / sessiond-comm / agent.h
index 4fbe3db7a34f25695388498fa687876e7187b74e..e8d182515888cd0273ec8622eb8f47861ec8fc90 100644 (file)
@@ -18,7 +18,6 @@
 #ifndef AGENT_COMM
 #define AGENT_COMM
 
-#define _GNU_SOURCE
 #include <stdint.h>
 
 #include <lttng/lttng.h>
@@ -56,12 +55,14 @@ struct lttcomm_agent_hdr {
 } LTTNG_PACKED;
 
 /*
- * Enable event command payload.
+ * Enable event command payload. Will be immediately followed by the
+ * variable-length string representing the filter expression.
  */
 struct lttcomm_agent_enable {
        uint32_t loglevel_value;
        uint32_t loglevel_type;
        char name[LTTNG_SYMBOL_NAME_LEN];
+       uint32_t filter_expression_length;
 } LTTNG_PACKED;
 
 /*
This page took 0.032138 seconds and 4 git commands to generate.