* Re: events injection / merging traces
[not found] <ed6a7951-d2eb-71ff-be87-dcdb07be7881@gmail.com>
@ 2019-07-04 14:52 ` Jonathan Rajotte-Julien
[not found] ` <20190704145226.GB9334@joraj-alpa>
1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Rajotte-Julien @ 2019-07-04 14:52 UTC (permalink / raw)
To: Carlo Caione; +Cc: lttng-dev
Hi Carlo,
On Wed, Jul 03, 2019 at 01:30:58PM +0100, Carlo Caione wrote:
> Hi,
> is there an easy way to "inject" new events in a LLTng trace? (you can also
> read that as: is there an easy way to merge two LLTng traces?).
Injecting would be possible using a plugin (C or python) in babeltrace 2.
>
> I see that I can use [python] babeltrace.TraceCollection() + add_trace() to
> merge multiple traces, but it seems that I cannot output the resultant
> merged trace again as CTF.
Babelrace 2 does have a default plugin for outputting to CTF but the result
might not be the one you expect. If you have two CTF traces as sources, two CTF
traces will be outputted by the current CTF sink. This is done for multiple
reasons.
The major one is that there is multiple places where clashes (stream class,
event) can happen (IDs etc.). The easy solution would be to generate new IDs but
it might lead to confusion as to why the IDs of an input trace are not found in
a resulting merge of traces or at least not the "expected" one.
There is a special case where all input traces are chunk of the same tracing
session (lttng-tools 2.11 rotation feature) since we have a guaranteed to have
no clash.
People who are more familiar with CTF,please do not restrain yourself on correcting me
here.
From what I understand, not much would prevent someone that knows the tradeoff
to implement such merging plugin. It simply does not exists today.
It also depends on what you mean by a single CTF trace.
This leads to, as always, whats is the end goal here?
Cheers
--
Jonathan Rajotte-Julien
EfficiOS
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20190704145226.GB9334@joraj-alpa>]
* events injection / merging traces
@ 2019-07-03 12:30 Carlo Caione
0 siblings, 0 replies; 4+ messages in thread
From: Carlo Caione @ 2019-07-03 12:30 UTC (permalink / raw)
To: lttng-dev
Hi,
is there an easy way to "inject" new events in a LLTng trace? (you can
also read that as: is there an easy way to merge two LLTng traces?).
I see that I can use [python] babeltrace.TraceCollection() + add_trace()
to merge multiple traces, but it seems that I cannot output the
resultant merged trace again as CTF.
Any hint how to do that if possible at all?
Thank you,
--
Carlo Caione
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-04 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <ed6a7951-d2eb-71ff-be87-dcdb07be7881@gmail.com>
2019-07-04 14:52 ` events injection / merging traces Jonathan Rajotte-Julien
[not found] ` <20190704145226.GB9334@joraj-alpa>
2019-07-04 15:21 ` Carlo Caione
[not found] ` <74d67aa2-a9ba-6882-a079-a23879443ef5@gmail.com>
2019-07-04 16:18 ` Jonathan Rajotte-Julien
2019-07-03 12:30 Carlo Caione
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).