<div dir="ltr">Hi Sebastian,<div><br></div><div>I will compile the things that we have done so far. This will help to keep track the progress of the project.</div><div><br></div><div>Progress so far:</div><div>1. We successfully tried the babeltrace example which reads CTF data and prints in text format. <a href="https://lists.rtems.org/pipermail/devel/2019-May/025921.html">https://lists.rtems.org/pipermail/devel/2019-May/025921.html</a></div><div>2. We Figured out that current stable version 1.5.6 of Babeltrace does not have a feature to convert live traces stream into CTF. This feature is currently under development and is available in the master branch of Babeltrace 2.0 but it is in pre-stage.</div><div>3. We Figured out that Trace Compass does not support live monitoring.</div><div><br></div><div>Plan for the week:</div><div>1. Update the event recording documentation(sent the patches)</div><div>2. Build a custom converter that can transform TCP streams and files with record items into CTF. </div><div><br></div><div>For 2nd point of the plan, we have to write the decoder(source plugin). This would involve understanding the current rtems trace format and codebase. I will also try out the decoder(source plugin) example shared by the babeltrace community.</div><div><br></div><div>Thanks</div><div><br></div><div><br></div><div><br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 6, 2019 at 2:42 PM Ravindra Kumar Meena <<a href="mailto:rmeena840@gmail.com" target="_blank">rmeena840@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2019 at 11:03 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 04/06/2019 19:26, Ravindra Kumar Meena wrote:<br>
> Hi Sebastian,<br>
><br>
> I am in regular touch with Babeltrace community to figure out the <br>
> solution for conversion of trace data into CTF. I came to the <br>
> conclusion that current version 1.5.6 of Babeltrace does not have a <br>
> feature to convert live trace stream into CTF(we already had a <br>
> discussion about it). However, this feature is currently available in <br>
> Babeltrace 2.0(master branch) but it is currently in pre-stage.<br>
><br>
> The approach they shared is that after post-processing phase to <br>
> convert traces from some existing format to CTF we have to create a <br>
> Babeltrace 2 source plugin which reads our trace format into the <br>
> Babeltrace 2 intermediate representation by using the APIs exposed to <br>
> plugins by Babeltrace 2. Babeltrace 2 has a generic CTF sink which can <br>
> serialize the resulting trace intermediate representation into CTF.<br>
><br>
> The conversation I had between them in May is: <br>
> <a href="https://lists.lttng.org/pipermail/lttng-dev/2019-May/028944.html" rel="noreferrer" target="_blank">https://lists.lttng.org/pipermail/lttng-dev/2019-May/028944.html</a><br>
><br>
> and this months conversation is: <br>
> <a href="https://lists.lttng.org/pipermail/lttng-dev/2019-June/029022.html" rel="noreferrer" target="_blank">https://lists.lttng.org/pipermail/lttng-dev/2019-June/029022.html</a><br>
><br>
> Please have a look at the above thread. The community is very helpful <br>
> they have even shared a decoder(source plugin) example(you can see <br>
> them in the thread itself) which is necessary for whatever is produced <br>
> as trace output to convert into CTF. I will have a look at it.<br>
<br>
Thanks for the summary. The Babeltrace 2 source plugin look like the way <br>
to go.<br></blockquote><div>Okay. I will try the decoder(source plugin) example.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
><br>
> I also came to know that Trace Compass does not support live <br>
> traces. It is made for post-mortem analyses, so it works only on <br>
> complete trace. They briefly supported live traces a few years back, <br>
> but that made the code much more complicated, so this support was <br>
> dropped. TraceCompass is not made for trace monitoring!<br>
<br>
Hm, interesting. This limitation is not really visible from the <br>
marketing sites.<br></blockquote><div>Yes. The community itself confirmed it. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
><br>
> You can view the whole conversation here(I did this during application <br>
> period): <br>
> <a href="https://lists.lttng.org/pipermail/lttng-dev/2019-March/028677.html" rel="noreferrer" target="_blank">https://lists.lttng.org/pipermail/lttng-dev/2019-March/028677.html</a><br>
<br>
In the e-mail a session rotation is mentioned. This doesn't sound that <br>
bad. At the moment this is not really important. We need the basics first.<br></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">
<br>
><br>
> So, in my point of view, we should stick with the post-processing <br>
> method. We should store the traces in the disk and then convert it to CTF.<br>
<br>
I would try to concentrate on a Babeltrace 2 source plugin. If it works <br>
we should try to upstream it to:<br>
<br>
<a href="https://github.com/efficios/babeltrace/tree/master/plugins" rel="noreferrer" target="_blank">https://github.com/efficios/babeltrace/tree/master/plugins</a></blockquote><div>Okay. sure :) </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Alternatively, you can try to write the converter using support from <br>
barectf.<br></blockquote><div>Okay. I am currently reading its documentation. I will try the examples first. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4558171076034167852gmail-m_7264800072847123096gmail_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>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4558171076034167852gmail_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>