From: Jérémie Galarneau Date: Mon, 24 Aug 2015 16:17:01 +0000 (-0400) Subject: Skip internal events when saving a session configuration X-Git-Tag: v2.7.0-rc2~133 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=10eabc1ce21f0b4ef88a913b3419d059a5581684;p=lttng-tools.git Skip internal events when saving a session configuration Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/save.c b/src/bin/lttng-sessiond/save.c index 0a1393a4b..b3af30914 100644 --- a/src/bin/lttng-sessiond/save.c +++ b/src/bin/lttng-sessiond/save.c @@ -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();