<div dir="ltr"><div><span style="color:rgb(76,17,48)">>which use case does this address? What is the connection to an RTEMS application?</span></div><div><span style="color:rgb(76,17,48)"><font color="#000000">This converts the trace buffering of the fileio sample testcase output to CTF. This pertains to the function tracing testcase. The CTF stream generated records the entry and exit of the calloc, malloc, realloc and free functions and also the values of the arguments and return values.</font><br></span></div><div><span style="color:rgb(76,17,48)"><br></span></div><div><span style="color:rgb(76,17,48)">>Why do I need sudo to run the commands?<br></span></div><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">
The command needs permission to create a directory for the traces. The command did not work without this</span>.<br></span></div><div><span style="color:rgb(76,17,48)"><br></span></div><div><span style="color:rgb(76,17,48)">>Why do I need your babeltrace? Not being able to use a tool from a standard distribution makes it harder to do RTEMS tracing.<br>
</span></div><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">I wanted to work on integrating barectf with RTEMS trace linker instead. I documented the approach in: <a href="https://vidushivashishth.github.io/sixthpost/">https://vidushivashishth.github.io/sixthpost/</a>. I was stuck on deciding the yaml configuration input for the process and sent out an email for this discussion on the mailing list as well. I have however finally created one. I can continue work on the barectf approach if that is okay with you? I will start a new thread on this with the configuration file I have chosen?</span><br></span></div><div><span style="color:rgb(76,17,48)"><br></span></div><div><span style="color:rgb(76,17,48)">>What can I do with a metadata stream and the CTF trace stream?<span style="color:rgb(0,0,0)"><br></span></span></div><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">These can be transported to the host and then viewed using Trace Compass</span>.<br></span></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">I lost some time trying to figure things out on my own.</span> <span style="color:rgb(0,0,0)">I will be more frequent in communicating places where I am stuck. Apologies for the same.</span><br></span></div><div><span style="color:rgb(76,17,48)"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 28, 2018 at 10:42 AM, Vidushi Vashishth <span dir="ltr"><<a href="mailto:reachvidu@gmail.com" target="_blank">reachvidu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="color:rgb(116,27,71)">>Run on what? RTEMS?</span></div><div>yes.<br></div><span class=""><div><span style="color:rgb(76,17,48)"><br></span></div><div><span style="color:rgb(76,17,48)">>Are there any RTEMS repos with your work?</span></div></span><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">I havent pushed my code since it is throwing errors. Should I push it nonetheless for you to see? Or create another repo?</span></span></div><span class=""><div><span style="color:rgb(76,17,48)"><br></span></div><div><span style="color:rgb(76,17,48)">>RTEMS does not support `system()`.</span></div></span><div><span style="color:rgb(76,17,48)"><span style="color:rgb(0,0,0)">Does RTEMS support</span></span> fdopen or popen? I am trying to execute the babeltrace command on the shell, from within the c program. I could use babeltrace C API instead but Gedare suggested during a meeting that it might not be integrable with RTEMS. <br></div><span class=""><div><br></div><div> <span style="color:rgb(116,27,71)">>Could please explain how you are integrating `program.c`?</span></div></span><div><span style="color:rgb(116,27,71)"><font color="#000000">I have created a new shell utility function in the <u>rtems/cpukit/libmisc/shell/<wbr>main_rtrace.c</u>. It saves the raw trace buffer to a file and then uses the logic of `program.c`</font><br></span></div><div><span style="color:rgb(116,27,71)">
</span><span class="m_-2911263251258453212gmail-im">to convert it into CTF traces. <br></span></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 28, 2018 at 10:07 AM, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 28/06/2018 13:48, Vidushi Vashishth wrote:<br>
> <br>
> Sorry for the delay. I had been trying to make the code run.<br>
<br>
</span>Run on what? RTEMS?<br>
<br>
> <a href="https://github.com/VidushiVashishth/babeltrace/tree/master/Demo" rel="noreferrer" target="_blank">https://github.com/VidushiVash<wbr>ishth/babeltrace/tree/master/<wbr>Demo</a><br>
<br>
Are there any RTEMS repos with your work?<br>
<span><br>
> This is a demonstration of the how to use babeltrace to convert rtems traces. I<br>
> have integrated the program.c code in the rtems main_rtrace.c file. This is<br>
> throwing some errors that I am working on.<br>
<br>
</span>RTEMS does not support `system()`.<br>
<br>
Could please explain how you are integrating `program.c`?<br>
<br>
Thanks<br>
<span class="m_-2911263251258453212HOEnZb"><font color="#888888">Chris<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>