x27;text').sink_component_classes['pretty']
>> sink_comp = graph.add_component(comp_cls, 'my sink')
>>
>> # Connect the `out` output port of the `source.text.dmesg` component
>> # to the `in` input port of the `sink.text.pretty` component.
>>
'my sink')
>
> # Connect the `out` output port of the `source.text.dmesg` component
> # to the `in` input port of the `sink.text.pretty` component.
> graph.connect_ports(src_comp.output_ports['out'], sink_comp.input_ports['in'])
>
> # Run the
rt of the `source.text.dmesg` component
# to the `in` input port of the `sink.text.pretty` component.
graph.connect_ports(src_comp.output_ports['out'], sink_comp.input_ports['in'])
# Run the trace processing graph.
graph.run()
发件人: Philippe Proulx
发送时间: 2022年8月10日 22:08
收件人:
On Wed, Aug 10, 2022 at 9:54 AM zenan via lttng-dev
wrote:
>
>
>
> Hi there,
>
> I’m trying to use babeltrace2 python bindings to track live lttng trace, as
> shown in some examples in the documents, I tried to use ctf.lttng-live(
> ctf.fs in the documents) plugin as source, and use text.pretty
Hi there,
I’m trying to use babeltrace2 python bindings to track live lttng trace, as
shown in some examples in the documents, I tried to use ctf.lttng-live( ctf.fs
in the documents) plugin as source, and use text.pretty as sink, but it didn’t
work out as I expected. So does the api support t