<div dir="ltr"><div dir="ltr">On Fri, May 17, 2019 at 12:22 AM Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">----- On May 16, 2019, at 1:42 AM, Ravindra Kumar Meena <a href="mailto:rmeena840@gmail.com" target="_blank">rmeena840@gmail.com</a> wrote:<br>
<br>
> Hi LTTng developers,<br>
> I have been selected at GSoC 2019 with organization RTEMs. My project is [<br>
> <a href="https://devel.rtems.org/ticket/3696" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/3696</a> | <a href="https://devel.rtems.org/ticket/3696" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/3696</a> ]<br>
<br>
> The objective of the project is to convert the trace data into CTF. The trace<br>
> data is already generated by the system. All that is left is to convert the<br>
> trace data into CTF. I am interested in CTF because I want to send it to trace<br>
> compass for analysis.<br>
<br>
> Any idea how can I achieve this?<br>
<br>
If you intend to produce CTF traces natively from the target, you will want to<br>
look into the barectf project [1].<br>
<br>
However, if your goal is to do a post-processing phase to convert traces from<br>
some existing format to CTF, you will want to look into the Babeltrace project [2]<br>
master branch which is in preparation for Babeltrace 2.0. The approach here<br>
would be to create a Babeltrace 2 source plugin which reads your trace format into<br>
the Babeltrace 2 intermediate representation by using the APIs exposed to<br>
plugins by Babeltrace 2. Babeltrace 2 has a generic CTF sink which can serialize<br>
the resulting trace intermediate representation into CTF.<br>
<br>
Thanks,<br>
<br>
Mathieu<br>
<br>
[1] <a href="https://github.com/efficios/barectf" rel="noreferrer" target="_blank">https://github.com/efficios/barectf</a> <br>
[2] <a href="https://diamon.org/babeltrace/" rel="noreferrer" target="_blank">https://diamon.org/babeltrace/</a><br><br></blockquote><div>Thanks, Mathieu for the approach. I am trying to use the babeltrace and I read its documentation and but I nowhere found the examples of conversion from one format to CTF.</div><div><br></div><div>The examples would make it more clear. </div><div><br></div><div>Is it possible to convert the live trace stream into CTF stream with the current babeltrace?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div>