<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><font color="#ff0000">On Fri, May 24, 2019 at 4:51 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></font></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#ff0000">Hello Ravindra,<br>
<br>
----- Am 22. Mai 2019 um 7:40 schrieb Sebastian Huber <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>:<br>
<br>
> On 21/05/2019 20:21, Ravindra Kumar Meena wrote:<br>
>> Hi Sebastian,<br>
>><br>
>> I followed <a href="https://diamon.org/ctf/" rel="noreferrer" target="_blank">https://diamon.org/ctf/</a> and tried to code.<br>
> <br>
> Which code did you try?<br>
> <br>
> Did you have a look at babeltrace?<br>
> <br>
> <a href="https://diamon.org/babeltrace/" rel="noreferrer" target="_blank">https://diamon.org/babeltrace/</a><br>
> <br>
> I would start with this if I had to convert an arbitrary format to CTF.<br>
> <br>
>> I forked the rtems-tools and made a commit.<br>
>> <a href="https://github.com/rmeena840/rtems-tools/commit/e1917f5afeba051e4e87285eed9e36b2591dc643" rel="noreferrer" target="_blank">https://github.com/rmeena840/rtems-tools/commit/e1917f5afeba051e4e87285eed9e36b2591dc643</a><br>
>><br>
>> Please have a look and let me know if I am going in the right direction.<br>
> <br>
> Please don't add this stuff to recorddata.h, use a separate header, e.g.<br>
> recordctf.h<br>
> <br>
>><br>
>><br>
>> I would like to ask one thing that at 5.1 of <a href="https://diamon.org/ctf/" rel="noreferrer" target="_blank">https://diamon.org/ctf/</a><br>
>> it is mentioned that "trace.packet.header" is required. Since, It was<br>
>> not there I was getting error at:<br>
>><br>
>> trace {<br>
>>     /* ... */<br>
>>     packet.header := struct event_packet_header;<br>
>> };<br>
>><br>
>> Is there any need requirement of file or library?<br>
> <br>
> Please try to use babeltrace first.<br>
<br>
How is your progress in this area?<br></font></blockquote><div>I was going through babeltrace(<a href="https://diamon.org/babeltrace/">https://diamon.org/babeltrace/</a>) documentation. The whole documentation of babeltrace is described in python. On documentation, I found that It only works with python3. </div><div><br></div><div>Do I have to code in python to trace the C/C++ application?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#ff0000">
<br>
With respect to the conversion to CTF, please keep also in mind that CTF is a generic format and we are interested in a particular consumer, which is the Trace Compass.<br></font></blockquote><div>Okay </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#ff0000">
<br>
In this ticket I already mentioned to options:<br>
<br>
<a href="https://devel.rtems.org/ticket/3696" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/3696</a><br>
<br>
"To tackle problem 3. there are two approaches possible. You can extend the Trace Compass to work with the trace data provided by RTEMS as is. Alternatively, the RTEMS trace data could be converted to Linux kernel trace data (lttng) which Trace Compass already understands."</font></blockquote><div>Okay </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>