Fix: disable JUL event on UST side
[lttng-tools.git] / src / bin / lttng-sessiond / jul.c
index 7bb0d75bce80afe3265c4306033b4ea0cff3e47c..99e07487b016f5cdda3fffc1c0e058d00058d509 100644 (file)
@@ -22,6 +22,8 @@
 #include <common/common.h>
 #include <common/sessiond-comm/jul.h>
 
+#include <common/compat/endian.h>
+
 #include "jul.h"
 #include "ust-app.h"
 #include "utils.h"
@@ -720,7 +722,8 @@ error:
  *
  * Return a new object else NULL on error.
  */
-struct jul_event *jul_create_event(const char *name)
+struct jul_event *jul_create_event(const char *name,
+               struct lttng_filter_bytecode *filter)
 {
        struct jul_event *event;
 
@@ -737,6 +740,10 @@ struct jul_event *jul_create_event(const char *name)
                lttng_ht_node_init_str(&event->node, event->name);
        }
 
+       if (filter) {
+               event->filter = filter;
+       }
+
 error:
        return event;
 }
This page took 0.025084 seconds and 5 git commands to generate.