Hello!

It looks like there are some issues with the Python CTF writer example with
babeltrace stable-1.5.

* Import error, should replace "import babeltrace.writer as btw" by "from
babeltrace import CTFWriter as btw"
* The FloatingPointDeclaration does not exists and should be replaced
by FloatFieldDeclaration
* babeltrace.common.CTFStringEncoding.UTF8 is
instead babeltrace.CTFStringEncoding.UTF8
* The variant still had issue that I cannot fix (ValueError("Invalid tag
provided.") babeltrace.py:2221)

Events with simple fields are working okay with these changes. I thought
that the clock would be updated automatically when appending the event, but
that would be nice also to add it to the example.

I tried babeltrace 2.0.0-pre6, but the writer API seems to have
disappeared. I was looking at how to create a ctf.fs.sink, but I was not
successful. Is writing CTF traces with the Python bindings still possible?

Regards,

-- 
Francis

Attachment: ctf-writer-example
Description: Binary data

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to