Trimmer fix: don't emit end of trace on out-of-bound event
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 16 Jan 2017 19:33:06 +0000 (14:33 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:08 +0000 (14:09 -0400)
Trimmer must properly end packets and streams before returning
END_OF_TRACE.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/trimmer/iterator.c

index 0c6b2936cdb742f711ef7be7051ff7342b135207..c7e8355225ccbe2f842805c13179e617ab78c636 100644 (file)
@@ -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:
This page took 0.024772 seconds and 4 git commands to generate.