[lttng-dev] CTF 2.0 and lttng indexes
Philippe Proulx
eeppeliteloop at gmail.com
Wed Apr 8 15:44:01 EDT 2015
On Tue, Apr 7, 2015 at 10:01 AM, Matthew Khouzam
<matthew.khouzam at ericsson.com> wrote:
>
> Hi all,
>
> Will the lttng indexes or something more generic be specified in the CTF
> 2.0 spec?
Mathieu needs to confirm, but AFAIK, I don't think so.
However, here's an idea following what was proposed for the integration
of base addresses and symbol informations: use CTF events to record
the packet indexes within stream files. That is, everytime a packet is
closed by the tracer, append an event to its packet indexes stream,
following this description:
event {
name = "packet-index";
fields := struct {
typalias integer {
size = 64;
} := uint64_t;
uint64_t offset; /* in bits */
uint64_t size; /* in bits */
uint64_t ts_begin;
uint64_t ts_end;
};
};
size, ts_begin, and ts_end are actually not needed, but could be useful to
avoid reading the target stream file when searching for a packet. Since
all the "packet-index" events have the same size/alignment, a half-interval
search is possible.
So, one such stream of "packet-index" events per actual stream file...
what do you think? There are situations to consider, like the trace file
rotation feature of LTTng, in which case the packet index stream files should
follow the rotation.
BTW I think this conversation should be moved to the DiaMon ML since
it's about CTF.
Phil
>
>
> Thanks
> Matthew
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
More information about the lttng-dev
mailing list