Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] LTTng traces
@ 2009-01-22 16:44 Stadelmann Jérôme
  2009-01-22 20:07 ` Mathieu Desnoyers
  0 siblings, 1 reply; 7+ messages in thread
From: Stadelmann Jérôme @ 2009-01-22 16:44 UTC (permalink / raw)


Hi all,

I'm trying to parse and decode the trace files but it is not so easy.
Is there a place or a file where I could find a description of all the facilities and the events id's ?

Thank you
Jerome




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

* [ltt-dev] LTTng traces
  2009-01-22 16:44 [ltt-dev] LTTng traces Stadelmann Jérôme
@ 2009-01-22 20:07 ` Mathieu Desnoyers
  2009-01-23  6:27   ` Stadelmann Jérôme
  2009-01-29  7:29   ` Jérôme Stadelmann
  0 siblings, 2 replies; 7+ messages in thread
From: Mathieu Desnoyers @ 2009-01-22 20:07 UTC (permalink / raw)


* Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> Hi all,
> 
> I'm trying to parse and decode the trace files but it is not so easy.
> Is there a place or a file where I could find a description of all the facilities and the events id's ?
> 

In the current LTTng, there is no such thing as "facility" anymore.
Which LTTng version are you working with ?

Mathieu

> Thank you
> Jerome
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

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



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

* [ltt-dev] LTTng traces
  2009-01-22 20:07 ` Mathieu Desnoyers
@ 2009-01-23  6:27   ` Stadelmann Jérôme
  2009-01-29  7:29   ` Jérôme Stadelmann
  1 sibling, 0 replies; 7+ messages in thread
From: Stadelmann Jérôme @ 2009-01-23  6:27 UTC (permalink / raw)


Le jeudi 22 janvier 2009 21:07:49 Mathieu Desnoyers, vous avez ?crit :
> * Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> > Hi all,
> > 
> > I'm trying to parse and decode the trace files but it is not so easy.
> > Is there a place or a file where I could find a description of all the facilities and the events id's ?
> > 
> 
> In the current LTTng, there is no such thing as "facility" anymore.
> Which LTTng version are you working with ?
> 
> Mathieu

I'm using the version 0.82. I've understood the trace/subbuffer header and I wish to go further in the trace files.

J?r?me



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

* [ltt-dev] LTTng traces
  2009-01-22 20:07 ` Mathieu Desnoyers
  2009-01-23  6:27   ` Stadelmann Jérôme
@ 2009-01-29  7:29   ` Jérôme Stadelmann
  2009-01-29 15:06     ` Mathieu Desnoyers
  1 sibling, 1 reply; 7+ messages in thread
From: Jérôme Stadelmann @ 2009-01-29  7:29 UTC (permalink / raw)


Hi Mathieu,

Excuse-me for asking again but, is there really no other way to go than scanning the source code in order to understand the traces format and information ?
For your question, I'm using the version 0.82.

Best regards,
Jerome

Le jeudi 22 janvier 2009 21:07:49 Mathieu Desnoyers, vous avez ?crit :
> * Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> > Hi all,
> > 
> > I'm trying to parse and decode the trace files but it is not so easy.
> > Is there a place or a file where I could find a description of all the facilities and the events id's ?
> > 
> 
> In the current LTTng, there is no such thing as "facility" anymore.
> Which LTTng version are you working with ?
> 
> Mathieu
> 
> > Thank you
> > Jerome
> > 
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > 
> 



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

* [ltt-dev] LTTng traces
  2009-01-29  7:29   ` Jérôme Stadelmann
@ 2009-01-29 15:06     ` Mathieu Desnoyers
  2009-02-10 12:04       ` Jérôme Stadelmann
  0 siblings, 1 reply; 7+ messages in thread
From: Mathieu Desnoyers @ 2009-01-29 15:06 UTC (permalink / raw)


* J?r?me Stadelmann (jerome.stadelmann at heig-vd.ch) wrote:
> Hi Mathieu,
> 
> Excuse-me for asking again but, is there really no other way to go than scanning the source code in order to understand the traces format and information ?
> For your question, I'm using the version 0.82.
> 

I would recommend :

starting with ltt/ltt-serialize.c : there is a very lengthy comment in
there which explains the format strings and how the generic serializer
writes the event data.

Looking at ltt/probes/ltt-type-serializer.h to see how the specialized
probes write the event information.

And for a more palatable document :

(latest publicly available version of ISO/IEC 9899:1999, Programming
Languages - C)
http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf

Section 6.7.2.1 Structure and union specifiers

LTTng event fields follow a subset of the ISO C standard for structures.
Specific note : unlike the standard C implementations, there is no
padding at the end of the event payload (structure). Also note that
LTTng does not support bitfields in C structures because they depend on
the specific compiler implementation.

Hope this helps,

Mathieu

> Best regards,
> Jerome
> 
> Le jeudi 22 janvier 2009 21:07:49 Mathieu Desnoyers, vous avez ?crit :
> > * Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> > > Hi all,
> > > 
> > > I'm trying to parse and decode the trace files but it is not so easy.
> > > Is there a place or a file where I could find a description of all the facilities and the events id's ?
> > > 
> > 
> > In the current LTTng, there is no such thing as "facility" anymore.
> > Which LTTng version are you working with ?
> > 
> > Mathieu
> > 
> > > Thank you
> > > Jerome
> > > 
> > > _______________________________________________
> > > ltt-dev mailing list
> > > ltt-dev at lists.casi.polymtl.ca
> > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > 
> > 
> 

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




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

* [ltt-dev] LTTng traces
  2009-01-29 15:06     ` Mathieu Desnoyers
@ 2009-02-10 12:04       ` Jérôme Stadelmann
  2009-02-10 17:29         ` Mathieu Desnoyers
  0 siblings, 1 reply; 7+ messages in thread
From: Jérôme Stadelmann @ 2009-02-10 12:04 UTC (permalink / raw)


Thank you for your information. That helped me a lot.
Now I've another question about it, is there a file or header where I can find all the event ID's and their parameters ?
I know that I can find some informations about the parameters in the xxx-trace.c files but is there another way to get this and especially the ID's ?

Thanks in advance
Jerome


On jeudi 29 janvier 2009 16:06:26 Mathieu Desnoyers wrote:
> * J?r?me Stadelmann (jerome.stadelmann at heig-vd.ch) wrote:
> > Hi Mathieu,
> > 
> > Excuse-me for asking again but, is there really no other way to go than scanning the source code in order to understand the traces format and information ?
> > For your question, I'm using the version 0.82.
> > 
> 
> I would recommend :
> 
> starting with ltt/ltt-serialize.c : there is a very lengthy comment in
> there which explains the format strings and how the generic serializer
> writes the event data.
> 
> Looking at ltt/probes/ltt-type-serializer.h to see how the specialized
> probes write the event information.
> 
> And for a more palatable document :
> 
> (latest publicly available version of ISO/IEC 9899:1999, Programming
> Languages - C)
> http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
> 
> Section 6.7.2.1 Structure and union specifiers
> 
> LTTng event fields follow a subset of the ISO C standard for structures.
> Specific note : unlike the standard C implementations, there is no
> padding at the end of the event payload (structure). Also note that
> LTTng does not support bitfields in C structures because they depend on
> the specific compiler implementation.
> 
> Hope this helps,
> 
> Mathieu
> 
> > Best regards,
> > Jerome
> > 
> > Le jeudi 22 janvier 2009 21:07:49 Mathieu Desnoyers, vous avez ?crit :
> > > * Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> > > > Hi all,
> > > > 
> > > > I'm trying to parse and decode the trace files but it is not so easy.
> > > > Is there a place or a file where I could find a description of all the facilities and the events id's ?
> > > > 
> > > 
> > > In the current LTTng, there is no such thing as "facility" anymore.
> > > Which LTTng version are you working with ?
> > > 
> > > Mathieu
> > > 
> > > > Thank you
> > > > Jerome
> > > > 
> > > > _______________________________________________
> > > > ltt-dev mailing list
> > > > ltt-dev at lists.casi.polymtl.ca
> > > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > > 
> > > 
> > 
> 




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

* [ltt-dev] LTTng traces
  2009-02-10 12:04       ` Jérôme Stadelmann
@ 2009-02-10 17:29         ` Mathieu Desnoyers
  0 siblings, 0 replies; 7+ messages in thread
From: Mathieu Desnoyers @ 2009-02-10 17:29 UTC (permalink / raw)


* J?r?me Stadelmann (jerome.stadelmann at heig-vd.ch) wrote:
> Thank you for your information. That helped me a lot.
> Now I've another question about it, is there a file or header where I can find all the event ID's and their parameters ?
> I know that I can find some informations about the parameters in the xxx-trace.c files but is there another way to get this and especially the ID's ?
> 

event IDs are allocated dynamically. They are listed in the metadata
channel.

Mathieu

> Thanks in advance
> Jerome
> 
> 
> On jeudi 29 janvier 2009 16:06:26 Mathieu Desnoyers wrote:
> > * J?r?me Stadelmann (jerome.stadelmann at heig-vd.ch) wrote:
> > > Hi Mathieu,
> > > 
> > > Excuse-me for asking again but, is there really no other way to go than scanning the source code in order to understand the traces format and information ?
> > > For your question, I'm using the version 0.82.
> > > 
> > 
> > I would recommend :
> > 
> > starting with ltt/ltt-serialize.c : there is a very lengthy comment in
> > there which explains the format strings and how the generic serializer
> > writes the event data.
> > 
> > Looking at ltt/probes/ltt-type-serializer.h to see how the specialized
> > probes write the event information.
> > 
> > And for a more palatable document :
> > 
> > (latest publicly available version of ISO/IEC 9899:1999, Programming
> > Languages - C)
> > http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
> > 
> > Section 6.7.2.1 Structure and union specifiers
> > 
> > LTTng event fields follow a subset of the ISO C standard for structures.
> > Specific note : unlike the standard C implementations, there is no
> > padding at the end of the event payload (structure). Also note that
> > LTTng does not support bitfields in C structures because they depend on
> > the specific compiler implementation.
> > 
> > Hope this helps,
> > 
> > Mathieu
> > 
> > > Best regards,
> > > Jerome
> > > 
> > > Le jeudi 22 janvier 2009 21:07:49 Mathieu Desnoyers, vous avez ?crit :
> > > > * Stadelmann J?r?me (jerome.stadelmann at heig-vd.ch) wrote:
> > > > > Hi all,
> > > > > 
> > > > > I'm trying to parse and decode the trace files but it is not so easy.
> > > > > Is there a place or a file where I could find a description of all the facilities and the events id's ?
> > > > > 
> > > > 
> > > > In the current LTTng, there is no such thing as "facility" anymore.
> > > > Which LTTng version are you working with ?
> > > > 
> > > > Mathieu
> > > > 
> > > > > Thank you
> > > > > Jerome
> > > > > 
> > > > > _______________________________________________
> > > > > ltt-dev mailing list
> > > > > ltt-dev at lists.casi.polymtl.ca
> > > > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > > > 
> > > > 
> > > 
> > 
> 

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




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

end of thread, other threads:[~2009-02-10 17:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-22 16:44 [ltt-dev] LTTng traces Stadelmann Jérôme
2009-01-22 20:07 ` Mathieu Desnoyers
2009-01-23  6:27   ` Stadelmann Jérôme
2009-01-29  7:29   ` Jérôme Stadelmann
2009-01-29 15:06     ` Mathieu Desnoyers
2009-02-10 12:04       ` Jérôme Stadelmann
2009-02-10 17:29         ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox