* [ltt-dev] Run simultaneous lttng kerner tracer and userspace tracer
[not found] ` <938079.81502.qm@web28603.mail.ukl.yahoo.com>
@ 2010-06-19 16:11 ` Mathieu Desnoyers
2010-06-21 8:36 ` [ltt-dev] Re : " patrick mekeze
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Desnoyers @ 2010-06-19 16:11 UTC (permalink / raw)
* patrick mekeze (pmekeze at yahoo.fr) wrote:
> Hello every boby!
>
> 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.
lttctl is only for kernel traces. If you want to combine both traces:
lttctl -C -w /tmp/trace1 trace
usttrace myprog
lttctl -D trace
lttv-gui -t /tmp/trace1 -t /path_to_ust_saved_trace
That should work. And don't forget to edit the usttrace source code to
select the kernel tracer compatible trace clock timestamp source, else
your timestamps will be desynchronized.
Mathieu
>
> thank you all for your help.
>
> Patrick
>
>
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ltt-dev] Re : Run simultaneous lttng kerner tracer and userspace tracer
2010-06-19 16:11 ` [ltt-dev] Run simultaneous lttng kerner tracer and userspace tracer Mathieu Desnoyers
@ 2010-06-21 8:36 ` patrick mekeze
0 siblings, 0 replies; 2+ messages in thread
From: patrick mekeze @ 2010-06-21 8:36 UTC (permalink / raw)
thank mathieu for this clear answer.
i have run my application as you have explained and it work very well.
but what i?was searching about is?how to run and trace a userspace application without use usttrace.
now i?have found?a answer of this question?in the userspace trace?manuel.
the answer consist to mount the?ltt-userspace-event module in the?kernel.
this will enable in the?/mnt/debugfs/ltt directory a virtual file name's write_event.
writing in this file would generates a event in the kernel and the string that you have write would be the event parameter
thank,
Patrick??
???
?
________________________________
De : Mathieu Desnoyers <compudj at krystal.dyndns.org>
? : patrick mekeze <pmekeze at yahoo.fr>
Cc : ltt-dev at lists.casi.polymtl.ca
Envoy? le : Sam 19 juin 2010, 18h 11min 45s
Objet?: Re: [ltt-dev] Run simultaneous lttng kerner tracer and userspace tracer
* patrick mekeze (pmekeze at yahoo.fr) wrote:
> Hello every boby!
>
> 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.
lttctl is only for kernel traces. If you want to combine both traces:
lttctl -C -w /tmp/trace1 trace
usttrace myprog
lttctl -D trace
lttv-gui -t /tmp/trace1 -t /path_to_ust_saved_trace
That should work. And don't forget to edit the usttrace source code to
select the kernel tracer compatible trace clock timestamp source, else
your timestamps will be desynchronized.
Mathieu
>
> thank you all for your help.
>
> Patrick
>
>
>? ? ?
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100621/da6e858f/attachment-0002.htm>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-21 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1275580802.22157.ltt-dev@lists.casi.polymtl.ca>
[not found] ` <AEEC49F6191270438015E45AEBE23C5F19F63A08@FRMRSSXCHMBSC2.dc-m.alcatel-lucent.com>
[not found] ` <938079.81502.qm@web28603.mail.ukl.yahoo.com>
2010-06-19 16:11 ` [ltt-dev] Run simultaneous lttng kerner tracer and userspace tracer Mathieu Desnoyers
2010-06-21 8:36 ` [ltt-dev] Re : " patrick mekeze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox