All of lore.kernel.org
 help / color / mirror / Atom feed
* CTF 2.0 and lttng indexes
@ 2015-04-07 14:01 Matthew Khouzam
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Khouzam @ 2015-04-07 14:01 UTC (permalink / raw)
  To: lttng-dev

Hi all,

Will the lttng indexes or something more generic be specified in the CTF
2.0 spec?

Thanks
Matthew

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CTF 2.0 and lttng indexes
       [not found] <5523E325.9010602@ericsson.com>
@ 2015-04-08 19:44 ` Philippe Proulx
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Proulx @ 2015-04-08 19:44 UTC (permalink / raw)
  To: Matthew Khouzam; +Cc: lttng-dev

On Tue, Apr 7, 2015 at 10:01 AM, Matthew Khouzam
<matthew.khouzam@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@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-08 19:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07 14:01 CTF 2.0 and lttng indexes Matthew Khouzam
     [not found] <5523E325.9010602@ericsson.com>
2015-04-08 19:44 ` Philippe Proulx

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.