[lttng-dev] Need help in converting trace data into CTF
jonathan.rajotte-julien at efficios.com
Tue Jun 4 10:39:17 EDT 2019
On Tue, Jun 04, 2019 at 12:02:08PM +0530, Ravindra Kumar Meena wrote:
> Hi developers,
> I have been selected at GSoC 2019. This is my project
> The objective of the project is to convert the current trace data into CTF.
> After discussion with you all, I have managed to store the current trace
> data into the disk. Now I have to convert it to CTF.
> I have attached the stored current trace data file. Please find it in the
> I used "nc 169.254.12.97 1234 > rtems_record.out" command to store the
> current trace data. Here 169.254.12.97 is IP address of QEMU target and
> 1234 is port of QEMU target.
> Any idea how I can convert it to CTF?
This was already discussed with you.
You will have to write a decoder (source plugin) for whatever is produced as a
See this dmesg source plugin for a base example of a source plugin . This is
valid for babeltrace 2.0 only (AKA the current master branch of babeltrace)
For a more complete example of a source plugin, you can take a look at the one for
ctf . Once a source plugin is done you will be able to reuse all the current
infrastructure of babeltrace to output to ctf (ctf.sink).
There is no magic solution here, you will need to write a decoder (source
plugin) for your format.
> On Wed, May 29, 2019 at 9:58 PM Ravindra Kumar Meena <rmeena840 at gmail.com>
> > With babeltrace 1.5.x: No.
> > Okay
> >> With babeltrace master branch (currently in -pre stage before 2.0): Yes.
> > Okay. That's great!!
> > Are there examples available on it?
> > Can the conversion be done directly via command-line?
> > Thanks
> > --
> > *Ravindra Kumar Meena*,
> > B. Tech. Computer Science and Engineering,
> > Indian Institute of Technology (Indian School of Mines)
> > <https://www.iitism.ac.in/>, Dhanbad
> *Ravindra Kumar Meena*,
> B. Tech. Computer Science and Engineering,
> Indian Institute of Technology (Indian School of Mines)
> <https://www.iitism.ac.in/>, Dhanbad
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
More information about the lttng-dev