From: Julien Desfossez Date: Thu, 25 May 2017 20:32:53 +0000 (-0400) Subject: fs-sink: only subscribe to relevant notifications X-Git-Tag: v2.0.0-pre1~172 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=93fc16a503c55c3720556f90641003501dfb90d7;p=babeltrace.git fs-sink: only subscribe to relevant notifications Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- 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;