<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><span id="zwchr" data-marker="__DIVIDER__">----- On May 29, 2019, at 12:19 PM, Ravindra Kumar Meena <rmeena840@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div dir="ltr">On Fri, May 17, 2019 at 12:22 AM Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank">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><br><div>The examples would make it more clear. </div><br><div>Is it possible to convert the live trace stream into CTF stream with the current babeltrace?</div></div></div></blockquote><div><br></div><div>With babeltrace 1.5.x: No.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>With babeltrace master branch (currently in -pre stage before 2.0): Yes.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div class="gmail_quote"><br><div>Thanks</div><br><br><br><br></div><br clear="all"><br>-- <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><br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>