Skip internal events when saving a session configuration
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 24 Aug 2015 16:17:01 +0000 (12:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 12:52:42 +0000 (08:52 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/save.c

index 0a1393a4bd90267bb9d5d041af3f6b40e007595b..b3af3091465acb2b72adffba680d1c0e204f6694 100644 (file)
@@ -705,6 +705,10 @@ int save_ust_events(struct config_writer *writer,
        cds_lfht_for_each_entry(events->ht, &iter.iter, node, node) {
                event = caa_container_of(node, struct ltt_ust_event, node);
 
+               if (event->internal) {
+                       /* Internal events must not be exposed to clients */
+                       continue;
+               }
                ret = save_ust_event(writer, event);
                if (ret) {
                        rcu_read_unlock();
This page took 0.026356 seconds and 4 git commands to generate.