[ltt-dev] LTTng Trace Format

Mathieu Desnoyers compudj at krystal.dyndns.org
Tue Jan 20 11:30:24 EST 2009


* Stadelmann Jérôme (jerome.stadelmann at heig-vd.ch) wrote:
> Hi Mathieu,
> 
> I'm currently looking at the trace format using the following document (http://ltt.polymtl.ca/svn/trunk/lttv/doc/developer/format.html) and I have some difficulties to retrieve the information.
> I've found the magic number 0x00D6B7ED to early in the binary files (with an offset of 16 bytes) and the block start header is 24 bytes long. Does the format changed in a recent version or am I mistaken ?
> 
> Best regards,
> Jérôme Stadelmann
> 

Yes, the format has changed since this document has been updated. The
best information source would be

http://git.kernel.org/?p=linux/kernel/git/compudj/linux-2.6-lttng.git;a=blob;f=include/linux/ltt-tracer.h;h=2ae278cd4afd8d97e363e8d0a21449a20012575e;hb=HEAD

struct ltt_subbuffer_header (is also the trace header, repeated at each
subbuffer)

ltt_write_event_header() : writes the event header.

Mathieu

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list