<div dir="ltr"><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"><div dir="ltr"><div id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p style="margin-top:0px;margin-bottom:0px"><span style="font-size:12pt"><font color="#ff0000">> So you have a user space application that generates a trace. It is virtualized, and you want to open it in trace compass to analyze it.</font></span></p></div></div></blockquote><div> </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 id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">Yes. That's what I want to do but it has to in real-time manner.</p></div></div></blockquote><div> </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 id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">> I would like to know if there is a way to transfer CTF to Trace Compass in a real-time manner using TCP/UDP.</font></p>
<p style="color:rgb(0,0,0);margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">>Would scp work? Just asking.</font></p></div></div></blockquote><div> </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 id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">I am supposed to transfer it through only TCP/UDP.</p></div></div></blockquote><div> </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 id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">>How can I convert CTF Trace Data to LTTng? Since TraceCompass already understands LTTng Trace Data.</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000"><br>
</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">>The CTF trace should be openable in Trace Compass. You won't have as many pretty graphs and whatnot, but you can get some basic analyses done with searching and filters. If you want some more advanced analyses, you can code an XML analysis, or use any language you want and parse it to make a LAMI report. Finally you can make your own analysis (and even commit it to the incubator! 😉 😉 ).</font></p>
<p style="color:rgb(0,0,0);margin-top:0px;margin-bottom:0px"><br></p></div></div></blockquote><div> ><span style="background-color:transparent;color:rgb(0,0,0);font-family:Arial;font-size:12pt;white-space:pre-wrap">The information that I want to analyze and display information includes CPU usage, IRQ analysis(IRQ Statistics, IRQ Table, IRQ vs Count, IRQ vs Time), Linux Kernel(Control Flow, Resources)</span></div><div> </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 id="m_7752166956455312320gmail-m_6403026334017903746divtagdefaultwrapper" style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p style="color:rgb(0,0,0);margin-top:0px;margin-bottom:0px">
</p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">The important questions to ask in my opinion are :</font></p>
<ul style="margin-bottom:0px;margin-top:0px">
<li><font color="#ff0000">what are you looking to solve?</font></li><li><font color="#ff0000">what problem are you facing?</font></li></ul>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000"><br>
</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">Once those questions are solved, we can move on to selecting the form of solution that is ideal for you.</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000"><br>
</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">Thanks for the interest,</font></p>
<p style="margin-top:0px;margin-bottom:0px"><font color="#ff0000">Matthew.</font><br>
</p>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_7752166956455312320gmail-m_6403026334017903746divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ravindra Kumar Meena <<a href="mailto:rmeena840@gmail.com" target="_blank">rmeena840@gmail.com</a>><br>
<b>Sent:</b> Wednesday, March 27, 2019 2:14:32 PM<br>
<b>To:</b> Matthew Khouzam<br>
<b>Cc:</b> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a>; <a href="mailto:tracecompass-dev@eclipse.org" target="_blank">tracecompass-dev@eclipse.org</a><br>
<b>Subject:</b> Re: [tracecompass-dev] [lttng-dev] Question related to LTTng</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi,<div><br>
</div>
<div>Thanks to all for suggestions. Let me describe the problem in more detail.</div>
<div><br>
</div>
<div>I have a QEMU(it is virtualization software like VMware etc.) instance which is running some applications. The QEMU application can generate Trace Data in CTF format which I want to transfer it to Trace Compass for analyzing it. </div>
<div><br>
</div>
<div>I would like to know if there is a way to transfer CTF to Trace Compass in a real-time manner using TCP/UDP.</div>
<div><br>
</div>
<div>and</div>
<div><br>
</div>
<div>How can I convert CTF Trace Data to LTTng? Since TraceCompass already understands LTTng Trace Data.</div>
<div><br>
</div>
<div>P.S: I am a student working on Tracing project at my University.</div>
<div><br>
</div>
<div>Thanks</div>
</div>
<br>
<div class="m_7752166956455312320gmail-m_6403026334017903746x_gmail_quote">
<div dir="ltr" class="m_7752166956455312320gmail-m_6403026334017903746x_gmail_attr">On Wed, Mar 27, 2019 at 11:01 PM Matthew Khouzam <<a href="mailto:matthew.khouzam@ericsson.com" target="_blank">matthew.khouzam@ericsson.com</a>> wrote:<br>
</div>
<blockquote class="m_7752166956455312320gmail-m_6403026334017903746x_gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="m_7752166956455312320gmail-m_6403026334017903746x_gmail-m_-14738379410950796divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px;margin-bottom:0px">Hi Ravindra, <br>
</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px">could you please detail what you want to do, there is a decent chance trace compass supports that out of the box.</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px">BR,</p>
<p style="margin-top:0px;margin-bottom:0px">Matthew<br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_7752166956455312320gmail-m_6403026334017903746x_gmail-m_-14738379410950796divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> <a href="mailto:tracecompass-dev-bounces@eclipse.org" target="_blank">tracecompass-dev-bounces@eclipse.org</a> <<a href="mailto:tracecompass-dev-bounces@eclipse.org" target="_blank">tracecompass-dev-bounces@eclipse.org</a>> on behalf of Genevieve Bastien <<a href="mailto:gbastien@versatic.net" target="_blank">gbastien@versatic.net</a>><br>
<b>Sent:</b> Wednesday, March 27, 2019 1:03:08 PM<br>
<b>To:</b> <a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a>; Ravindra Kumar Meena; <a href="mailto:tracecompass-dev@eclipse.org" target="_blank">tracecompass-dev@eclipse.org</a><br>
<b>Subject:</b> Re: [tracecompass-dev] [lttng-dev] Question related to LTTng</font>
<div> </div>
</div>
<div class="m_7752166956455312320gmail-m_6403026334017903746x_gmail-m_-14738379410950796BodyFragment"><font size="2"><span style="font-size:11pt"> <div class="m_7752166956455312320gmail-m_6403026334017903746x_gmail-m_-14738379410950796PlainText">Hi Ravindra,<br>
<br>I'm sending the reply also to the tracecompass mailing list, where it is<br>more on topic.<br>
<br>On 2019-03-27 7:23 a.m., Ravindra Kumar Meena wrote:<br>> Hi Developers,<br>><br>> I am working on a project where I want Trace Compass to analyze and<br>> display some information. I wanna ask a few things:<br>><br>> Q1. Is there any way to extend Trace Compass to work trace data in CTF<br>> format?<br>
<br>From what I understand, you have a CTF trace and would like to implement<br>a specific trace type from it, for example, to be able to add custom<br>analyses for this specific type. Right?<br>
<br>You can read the developer documentation on how to add new trace types<br>[1]. You may want to take a look at the LttngKernelTrace class for an<br>example of such extension of CTF Trace [2]. There are a few more around<br>the code, looking at the class hierarchy for CtfTmfTrace will show you<br>which ones.<br>
<br>><br>> Q2. How trace data(CTF) can be converted to Linux kernel trace<br>> data(LTTng) which Trace Compass already understands?<br>Kernel traces need to implement IKernelTrace. This interface provides an<br>event layout (IKernelAnalysisEventLayout) which will define which events<br>in the trace correspond to common "concepts" of the kernel, like<br>sched_switches, syscalls, irqs, etc. That's how any kernel trace format<br>like ftrace, perf and lttng can use common analyses made for kernel. You<br>would need to implement this event layout for your own trace types.<br>
<br>
<br>[1]<br>
<a href="http://archive.eclipse.org/tracecompass/doc/org.eclipse.tracecompass.doc.dev/Implementing-a-New-Trace-Type.html#Implementing_a_New_Trace_Type" target="_blank">http://archive.eclipse.org/tracecompass/doc/org.eclipse.tracecompass.doc.dev/Implementing-a-New-Trace-Type.html#Implementing_a_New_Trace_Type</a><br>
<br>[2]<br>
<a href="https://git.eclipse.org/c/tracecompass/org.eclipse.tracecompass.git/tree/lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/lttng2/kernel/core/trace/LttngKernelTrace.java" target="_blank">https://git.eclipse.org/c/tracecompass/org.eclipse.tracecompass.git/tree/lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/lttng2/kernel/core/trace/LttngKernelTrace.java</a><br>
<br>
<br>Cheers,<br>
<br>Geneviève<br>
<br>
<br>
<br>
<br>_______________________________________________<br>tracecompass-dev mailing list<br>
<a href="mailto:tracecompass-dev@eclipse.org" target="_blank">tracecompass-dev@eclipse.org</a><br>To change your delivery options, retrieve your password, or unsubscribe from this list, visit<br>
<a href="https://www.eclipse.org/mailman/listinfo/tracecompass-dev" target="_blank">https://www.eclipse.org/mailman/listinfo/tracecompass-dev</a><br>
</div> </span></font></div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>-- <br>
<div dir="ltr" class="m_7752166956455312320gmail-m_6403026334017903746x_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>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_7752166956455312320gmail_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>