[lttng-dev] [tracecompass-dev] Question related to LTTng
Ravindra Kumar Meena
rmeena840 at gmail.com
Wed Mar 27 14:49:25 EDT 2019
>
> > 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.
>
> Yes. That's what I want to do but it has to in real-time manner.
>
> > I would like to know if there is a way to transfer CTF to Trace Compass
> in a real-time manner using TCP/UDP.
>
>
> >Would scp work? Just asking.
>
> I am supposed to transfer it through only TCP/UDP.
>
> >How can I convert CTF Trace Data to LTTng? Since TraceCompass already
> understands LTTng Trace Data.
>
>
> >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! 😉 😉 ).
>
>
> >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)
> The important questions to ask in my opinion are :
>
> - what are you looking to solve?
> - what problem are you facing?
>
>
> Once those questions are solved, we can move on to selecting the form of
> solution that is ideal for you.
>
>
> Thanks for the interest,
>
> Matthew.
>
> ------------------------------
> *From:* Ravindra Kumar Meena <rmeena840 at gmail.com>
> *Sent:* Wednesday, March 27, 2019 2:14:32 PM
> *To:* Matthew Khouzam
> *Cc:* lttng-dev at lists.lttng.org; tracecompass-dev at eclipse.org
> *Subject:* Re: [tracecompass-dev] [lttng-dev] Question related to LTTng
>
> Hi,
>
> Thanks to all for suggestions. Let me describe the problem in more detail.
>
> 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.
>
> I would like to know if there is a way to transfer CTF to Trace Compass in
> a real-time manner using TCP/UDP.
>
> and
>
> How can I convert CTF Trace Data to LTTng? Since TraceCompass already
> understands LTTng Trace Data.
>
> P.S: I am a student working on Tracing project at my University.
>
> Thanks
>
> On Wed, Mar 27, 2019 at 11:01 PM Matthew Khouzam <
> matthew.khouzam at ericsson.com> wrote:
>
> Hi Ravindra,
>
>
> could you please detail what you want to do, there is a decent chance
> trace compass supports that out of the box.
>
>
> BR,
>
> Matthew
> ------------------------------
> *From:* tracecompass-dev-bounces at eclipse.org <
> tracecompass-dev-bounces at eclipse.org> on behalf of Genevieve Bastien <
> gbastien at versatic.net>
> *Sent:* Wednesday, March 27, 2019 1:03:08 PM
> *To:* lttng-dev at lists.lttng.org; Ravindra Kumar Meena;
> tracecompass-dev at eclipse.org
> *Subject:* Re: [tracecompass-dev] [lttng-dev] Question related to LTTng
>
> Hi Ravindra,
>
> I'm sending the reply also to the tracecompass mailing list, where it is
> more on topic.
>
> On 2019-03-27 7:23 a.m., Ravindra Kumar Meena wrote:
> > Hi Developers,
> >
> > I am working on a project where I want Trace Compass to analyze and
> > display some information. I wanna ask a few things:
> >
> > Q1. Is there any way to extend Trace Compass to work trace data in CTF
> > format?
>
> From what I understand, you have a CTF trace and would like to implement
> a specific trace type from it, for example, to be able to add custom
> analyses for this specific type. Right?
>
> You can read the developer documentation on how to add new trace types
> [1]. You may want to take a look at the LttngKernelTrace class for an
> example of such extension of CTF Trace [2]. There are a few more around
> the code, looking at the class hierarchy for CtfTmfTrace will show you
> which ones.
>
> >
> > Q2. How trace data(CTF) can be converted to Linux kernel trace
> > data(LTTng) which Trace Compass already understands?
> Kernel traces need to implement IKernelTrace. This interface provides an
> event layout (IKernelAnalysisEventLayout) which will define which events
> in the trace correspond to common "concepts" of the kernel, like
> sched_switches, syscalls, irqs, etc. That's how any kernel trace format
> like ftrace, perf and lttng can use common analyses made for kernel. You
> would need to implement this event layout for your own trace types.
>
>
> [1]
>
> http://archive.eclipse.org/tracecompass/doc/org.eclipse.tracecompass.doc.dev/Implementing-a-New-Trace-Type.html#Implementing_a_New_Trace_Type
>
> [2]
>
> 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
>
>
> Cheers,
>
> Geneviève
>
>
>
>
> _______________________________________________
> tracecompass-dev mailing list
> tracecompass-dev at eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/tracecompass-dev
>
>
>
> --
> *Ravindra Kumar Meena*,
> B. Tech. Computer Science and Engineering,
> Indian Institute of Technology (Indian School of Mines)
> <https://www.iitism.ac.in/>, Dhanbad
>
--
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20190328/0703b2af/attachment-0001.html>
More information about the lttng-dev
mailing list