From mboxrd@z Thu Jan 1 00:00:00 1970 From: jdesfossez@efficios.com (Julien Desfossez) Date: Tue, 03 Apr 2012 10:21:40 -0400 Subject: [lttng-dev] Writing a babeltrace output plugin In-Reply-To: <20120403141029.GA17286@Krystal> References: <524C960C5DFC794E82BE548D825F05CF29D8A8@EU-MBX-04.mgc.mentorg.com> <524C960C5DFC794E82BE548D825F05CF29D8C6@EU-MBX-04.mgc.mentorg.com> <20120403125754.GC14534@Krystal> <524C960C5DFC794E82BE548D825F05CF29D9DF@EU-MBX-04.mgc.mentorg.com> <20120403133328.GA15926@Krystal> <20120403133436.GA16116@Krystal> <524C960C5DFC794E82BE548D825F05CF29DA2B@EU-MBX-04.mgc.mentorg.com> <20120403141029.GA17286@Krystal> Message-ID: <4F7B0774.7080608@efficios.com> Hi, >>> I have no other clues in mind [to using the public API] than >>> looking at the examples already in there >> >> Where are the examples of using the public API? > > There is a lttv tree currently under heavy development, and the lttngtop > git tree on git.lttng.org. I would recommend looking at this test program : git://git.dorsal.polymtl.ca/~jdesfossez/babeltrace-api-test It is a really basic program that uses most of the API. Julien > >> >> >>> for now, all converters are expected to be in-tree. >> >> Oh. So the way to go to add another output format for conversion from CTF is to >> clone the formats/ctf-text directory and make changes as needed? > > Yep. > >> >> >> It would have been interesting to see the CTF output part as an example. >> Can you say when such an option will be available? > > We do not use the intermediate representation for CTF generation (see > babeltrace-log.c): we generate the metadata directly as needed. > Generating a CTF output from the CTF intermediate representation is not > planned at this point, as it has very little use for us. LTTng-UST 2.0 > and LTTng-modules 2.0 both generate CTF natively. > > Thanks, > > Mathieu > >> >> >> Cheers, >> >> Fredrik >> >