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>
Mon, 24 Aug 2015 16:27:03 +0000 (12:27 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/save.c

index c76abbac633c0688565d0008c3bf68b823b25b3b..0a43eefa66df4e1d9efd53182b2fd7394d5ec8f2 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.033774 seconds and 4 git commands to generate.