<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks that is much clearer, I think.<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">> 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. <br>
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">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.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">> I would like to know if there is a way to transfer CTF to Trace Compass in a real-time manner using TCP/UDP.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Would scp work? Just asking.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">>How can I convert CTF Trace Data to LTTng? Since TraceCompass already understands LTTng Trace Data.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">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!
<span>😉</span> <span>😉</span> ).</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The important questions to ask in my opinion are :</p>
<ul style="margin-bottom: 0px; margin-top: 0px;">
<li>what are you looking to solve?</li><li>what problem are you facing?</li></ul>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Once those questions are solved, we can move on to selecting the form of solution that is ideal for you.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks for the interest,</p>
<p style="margin-top:0;margin-bottom:0">Matthew.<br>
</p>
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ravindra Kumar Meena <rmeena840@gmail.com><br>
<b>Sent:</b> Wednesday, March 27, 2019 2:14:32 PM<br>
<b>To:</b> Matthew Khouzam<br>
<b>Cc:</b> lttng-dev@lists.lttng.org; tracecompass-dev@eclipse.org<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="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Mar 27, 2019 at 11:01 PM Matthew Khouzam <<a href="mailto:matthew.khouzam@ericsson.com">matthew.khouzam@ericsson.com</a>> wrote:<br>
</div>
<blockquote class="x_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="x_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="x_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="x_gmail-m_-14738379410950796BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_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="x_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/" target="_blank" style="color:rgb(17,85,204)">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>