[ltt-dev] simultaneous lttng kerner tracer and userspace tracer
MEKEZE KWATCHO, PATRICK (PATRICK)
patrick.mekeze_kwatcho at alcatel-lucent.com
Thu Jun 10 10:16:42 EDT 2010
I start lttv-gui with lttv-gui without argument.
After that, i used graphycal windows provided by lttv-gui to stard the trace and ended it.
But this method, no userspace event is avalaible on the viewer.
I have also try to stard the gui with the command lttv-gui -t path_to_hernel_trace , and atfer that, i added the userspace trace with add trace bouton provided by gui.
Because i have forgotten to change the clock, i have on viewer a separation beetwen kernel event and userspace event.
I think this will be arrange by changing gettimeofday with kernel-lttng-compatible in the usttrace code as you have suggested.
My veritable problem is that i don't want to use usttrace tool to lunch my application.
I want only to run lttctl and trace both kernel event and userspace event.
I think that something else should be done in the kernel or application to made it possible.
Could some mann have an idea, and example or a tutorial, which would help me?
-----Message d'origine-----
De : Mathieu Desnoyers [mailto:compudj at krystal.dyndns.org]
Envoyé : jeudi 10 juin 2010 15:49
À : MEKEZE KWATCHO, PATRICK (PATRICK)
Cc : Holger brunck; ltt-dev at lists.casi.polymtl.ca
Objet : Re: [ltt-dev] simultaneous lttng kerner tracer and userspace tracer
* MEKEZE KWATCHO, PATRICK (PATRICK) (patrick.mekeze_kwatcho at alcatel-lucent.com) wrote:
>
> Yes, I see well the kernel event and the testprogramm process when I
> analyze the trace1 get with $ lttctl -C -w /tmp/trace1 trace1
>
> I also think that is it possible to start a userspace trace without using the usttrace tool.
> When I run $usttrace ./testprogramm and $ lttctl -C -w /tmp/trace1 trace1, I saw on the lttv-gui all the kernel event, but i didn't see my userspace event.
> Among the process, both usttrace and testprogramm are present.
How do you start lttv-gui ?
Something like:
lttv-gui -t path_to_kernel_trace -t path_to_ust_trace
would be appropriate. Also make sure to look at the usttrace source code to select the kernel-lttng-compatible trace clock rather than gettimeofday. If you don't change that, the kernel and userspace data won't be aligned on the same timeline.
Thanks,
Mathieu
>
> Thank,
> Patrick
>
> -----Message d'origine-----
> De : Holger brunck [mailto:holger.brunck at keymile.com]
> Envoyé : jeudi 10 juin 2010 12:47
> À : MEKEZE KWATCHO, PATRICK (PATRICK)
> Cc : ltt-dev at lists.casi.polymtl.ca
> Objet : Re: [ltt-dev] simultaneous lttng kerner tracer and userspace
> tracer
>
> Hi,
>
> On 06/10/2010 11:09 AM, MEKEZE KWATCHO, PATRICK (PATRICK) wrote:
> >
> > Could someone help me about this subject?
> >
> >
> > Today's Topics:
> >
> > 1. Run simultaneous lttng kerner tracer and userspace tracer
> > (patrick mekeze)
> >
> >
> > I am a high school student and it is now about one month that i decided to interest on lttng projet because i was searching about some metric tools for unix systems.
> > The goal of my research is to develop a tool which would work as a "fligth recover " for a unix system running on a power PC hardward support.
> > i decided to work for the first time on an?intel processor and
> > after, i will make a croos compilation for my target which is a
> > power PC processor I have already built a linux kernel with the lttng patch and i have install all the need tool to have a lttv analyser Because i would like to trace some programm running on userspace, i have install usttrace tool.
> > After this i wrote a short application with a marker inside as i see in the usttrace tutorial available on website.
> > When i run this with command $usttrace ./testprogramm , i have in the promt the name of directory where trace are logged and i can use lttv to analyze it. here i can see well my event "myevent" on the wiever.
> > But? when i activated kernel trace with command $ lttctl -C -w /tmp/trace1 trace1, and run my userspace programm with command $ ./testprogramm,?i am not?able to get the myevent.
> > so that, i want to know how tu run lttctl tools and userspace programm to get and analyze simultaneous on the lttv-gui? ,kernel event and userspace event.
> >
>
> I never used both tracing mechanism at the same time, but two
> questions come in my mind.
>
> 1) Do you see the kernel trace events, or do you see nothing?
> 2) Are you sure that in the second case you have to start your
> testprogram without usttrace? Did you tried to $usttrace
> ./testprogramm and $ lttctl -C -w
> /tmp/trace1 trace1?
>
> Best regards
> Holger Brunck
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list