From b61397c449519f7950ae0fa44371ca2abd221502 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 16 Jan 2017 14:33:06 -0500 Subject: [PATCH] Trimmer fix: don't emit end of trace on out-of-bound event MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Trimmer must properly end packets and streams before returning END_OF_TRACE. Signed-off-by: Jérémie Galarneau --- plugins/trimmer/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/trimmer/iterator.c b/plugins/trimmer/iterator.c index 0c6b2936..c7e83552 100644 --- a/plugins/trimmer/iterator.c +++ b/plugins/trimmer/iterator.c @@ -260,7 +260,6 @@ evaluate_event_notification(struct bt_notification *notification, } if (end->set && ts > end->value) { in_range = false; - ret = BT_NOTIFICATION_ITERATOR_STATUS_END; } end: bt_put(event); @@ -398,6 +397,7 @@ enum bt_notification_iterator_status evaluate_notification( enum bt_notification_iterator_status ret = BT_NOTIFICATION_ITERATOR_STATUS_OK; + *in_range = true; type = bt_notification_get_type(notification); switch (type) { case BT_NOTIFICATION_TYPE_EVENT: -- 2.34.1