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 19:56:35 +0000 (15:56 -0400)
commit3d60267b222697603cdcbb942d79a12fd7c9ce44
tree27a467d6cb02e633f498abe4212a43fc0b7897e6
parentc4838cef2a82007682db4bca559466c9b72d7068
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.024926 seconds and 4 git commands to generate.