bt2: TraceCollectionNotificationIterator: support custom filter CCs
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 Nov 2017 17:14:54 +0000 (13:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Nov 2017 20:11:00 +0000 (16:11 -0400)
commit88fdcc33db71a39770d1616f272e23aaf8a995e6
treecc7bac9e2a45894f68b3bcdc9401a27883027b67
parentcc5c5d6dd05b8f32d594275e396a556d9db9cc1d
bt2: TraceCollectionNotificationIterator: support custom filter CCs

This patch adds an optional `filter_component_specs` parameter to
TraceCollectionNotificationIterator's constructor so that the trace
collection notification iterator supports a chain of custom filter
components. The filter chain is connected to the implicit muxer's output
port or to the implicit trimmer's output port if it exists.

This is useful to add debugging information, for example:

    src = bt2.ComponentSpec('ctf', 'fs', trace_path)
    flt = bt2.ComponentSpec('lttng-utils', 'debug-info')
    it = bt2.TraceCollectionNotificationIterator(src, flt)

    for notif in it:
        ...

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/babeltrace/babeltrace/reader_trace_collection.py
bindings/python/babeltrace/babeltrace/reader_trace_handle.py
bindings/python/bt2/bt2/trace_collection_notification_iterator.py
tests/bindings/python/bt2/test_trace_collection_notification_iterator.py
This page took 0.028824 seconds and 4 git commands to generate.