Return-Path: From: Dominique Toupin Date: Wed, 26 Nov 2014 19:43:07 +0000 Message-ID: References: <54747E30.6000509@huawei.com> <5475361C.50604@huawei.com> In-Reply-To: <5475361C.50604@huawei.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [diamon-discuss] Diamon CTF Roadmap? List-Id: DiaMon diagnostic and monitoring workgroup general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wang Nan , "diamon-discuss@lists.linuxfoundation.org" , Jiri Olsa Cc: Xinwei Hu , genghui 00204690 You can see my answer below preceded by [Dominique Toupin] -----Original Message----- From: Wang Nan [mailto:wangnan0@huawei.com]=20 Sent: November-25-14 9:08 PM To: Dominique Toupin; diamon-discuss@lists.linuxfoundation.org; Jiri Olsa Cc: genghui 00204690; Xinwei Hu Subject: Re: Diamon CTF Roadmap? On 2014/11/25 21:42, Dominique Toupin wrote: > Hi Nan, >=20 > Many tools are able to handle CTF today, e.g.: > - GDB Tracepoint=20 > https://sourceware.org/gdb/onlinedocs/gdb/Trace-Files.html#Trace-Files > - LTTng kernel and LTTng user space C/C++, Java, Python, etc.=20 > https://lttng.org/download > - babel trace, http://lttng.org/viewers/ > - Trace Compass=20 > http://projects.eclipse.org/projects/tools.tracecompass > - CTF tracer for bare metal=20 > https://github.com/efficios/barectf/blob/master/README.md >=20 > You will also find many converter to CTF, e.g. NEXUS HW Trace, perf,=20 > And I am most likely missing a few. >=20 > If you can provide a description of your needs it would help to give you = more info related to your use case. > e.g. is it more related to cloud, embedded data base, real time, or do yo= u have a specific view or analysis you want to see in the trace viewer, etc= . >=20 Our use cases are diverse, both embedded and server scene have requirements= on profiling, and methodologies are also different. We have two starting points now: 1. On ARM (32/64) platform, extracing information (instruction footprints) = from CoreSight using perf and use CTF as trace format, to make it possible to analysis = with trace from upper layer. Intel has similar hardware too, but currently only on speci= fication. [Dominique Toupin] I believe they are able to get perf data in CTF and if y= ou also have=20 CTF trace from upper layer then you can use Trace Compass (python should al= so be an option)=20 to visualize, correlate, analyze trace data from different layers, you can = also open text logs in=20 Trace Compass. In the upper layer, you can take a similar approach as the L= inux kernel where=20 static tracepoints represent the wisdom of developers who are most familiar= with the code and=20 the rest of the world (testers, system administrators, field engineers, dev= elopers) can use them=20 to extract a great deal of useful information without having to know the co= de.=20 2. On server field, providing some interactive, graphical user interfaces f= or some generic problems. Android's SysTrace is a good example. However, our the real go= al is to create a tool for dealing with problems not so generic. Profiling using a langu= age like SQL maybe, like Splunk, to synthesize traces from different layers and components. = So the underlying traces are better to be in a uniform format. [Dominique Toupin] SQL can be nice but it requires a lot more space, if I r= emember=20 correctly, the size is sometimes multiplied by 70 compared to CTF. CTF is l= ike a specialized=20 trace data base, in Trace Compass they have efficient query to navigate in = the trace, they add a state system, etc. You can do all this with SQL but it require a lot= more space and it is slower. If you see things missing in CTF compared to what you want to do with SQL, = let us know we can=20 investigate how to add those features directly in CTF. We also concern the upstreaming plan about kernel stuffs in DiaMon. > Thanks for the second post! >=20 > Dominique >=20 > -----Original Message----- > From: Wang Nan [mailto:wangnan0@huawei.com] > Sent: November-25-14 8:04 AM > To: diamon-discuss@lists.linuxfoundation.org; Dominique Toupin; Jiri=20 > Olsa > Cc: genghui 00204690; Xinwei Hu > Subject: Diamon CTF Roadmap? >=20 > Hi everyone, >=20 > Looks like my post will be the second thread in this list. That's great. >=20 > I'll be the technical contact person representing Huawei for Diamon. > I'm glad to work with this new workgroup to create "de-facto, widely used= open source trace technologies". >=20 > Beyond sharing new ideas and technologies, our main concern on Diamon now= are CTF tracing format and related things for analysing traces from differ= ent sources in a unified manner. I have read Jiri Olsa's slides in TracingS= ummit 2014, and also begin to read his code in https://git.kernel.org/pub/s= cm/linux/kernel/git/jolsa/perf.git. However, it looks like that there's onl= y a trace generating tool is under developing. What about upper trace parsi= ng and analysing tools? Is there any roadmap on it? How can we participate = in the project? >=20 > Thanks. >=20