From 93fc16a503c55c3720556f90641003501dfb90d7 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Thu, 25 May 2017 16:32:53 -0400 Subject: [PATCH] fs-sink: only subscribe to relevant notifications MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- plugins/ctf/fs-sink/writer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/ctf/fs-sink/writer.c b/plugins/ctf/fs-sink/writer.c index 9fca5de7..18abc9e3 100644 --- a/plugins/ctf/fs-sink/writer.c +++ b/plugins/ctf/fs-sink/writer.c @@ -192,6 +192,11 @@ void writer_component_port_connected( { struct bt_private_connection *connection; struct writer_component *writer; + static const enum bt_notification_type notif_types[] = { + BT_NOTIFICATION_TYPE_PACKET_BEGIN, + BT_NOTIFICATION_TYPE_PACKET_END, + BT_NOTIFICATION_TYPE_SENTINEL, + }; writer = bt_private_component_get_user_data(component); assert(writer); @@ -200,7 +205,7 @@ void writer_component_port_connected( assert(connection); writer->input_iterator = bt_private_connection_create_notification_iterator(connection, - NULL); + notif_types); if (!writer->input_iterator) { writer->error = true; -- 2.34.1