From: carlo.caione@gmail.com (Carlo Caione)
Subject: [lttng-dev] babeltrace python binding and multiple streams with out of order samples
Date: Tue, 28 May 2019 14:11:22 +0100 [thread overview]
Message-ID: <ee93b1b8-6e02-d40a-067a-99ab88b2cadf@gmail.com> (raw)
Hi,
I'm using the babeltrace python bindings (v1.5.x) to convert some raw
data I have into a CTF file.
This raw data is organized in fixed data chunks composed by serializing
the events for each CPU:
[cpu0, cpu0, cpu0, ..., cpu1, cpu1, cpu1, ..., cpu2,... ]
Each event for each CPU has a timestamp that is monotonic within each
CPU set.
I wanted to create one stream per CPU and since the events are the same
for each CPU, I was using a single stream_class linked to a stream
object for each CPU. Something in the structure similar to [0] with:
stream_cpu0 = writer.create_stream(stream_class)
stream_cpu1 = writer.create_stream(stream_class)
stream_cpu2 = writer.create_stream(stream_class)
...
The problem is that being the clock one for the stream_class when
feeding the events to the library I get a:
ValueError: Invalid time value
When the first event on cpu1 is parsed, because the timestamp is in the
past with respect to the timestamp of the latest event of the cpu0.
I can sort the events before feeding them to babeltrace but this seems
sub-optimal to me. My question is: am I using the library correctly or
there is any way to achieve this?
Thank you,
[0] https://lists.lttng.org/pipermail/lttng-dev/2015-November/025231.html
--
Carlo Caione
reply other threads:[~2019-05-28 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee93b1b8-6e02-d40a-067a-99ab88b2cadf@gmail.com \
--to=carlo.caione@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox