From mboxrd@z Thu Jan 1 00:00:00 1970 From: compudj@krystal.dyndns.org (Mathieu Desnoyers) Date: Tue, 20 Jan 2009 11:30:24 -0500 Subject: [ltt-dev] LTTng Trace Format In-Reply-To: <200901201708.13026.jerome.stadelmann@heig-vd.ch> References: <200901201708.13026.jerome.stadelmann@heig-vd.ch> Message-ID: <20090120163024.GB31806@Krystal> * 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