[ltt-dev] ltt-dev Digest, Vol 12, Issue 17
Mathieu Desnoyers
compudj at krystal.dyndns.org
Tue Apr 14 15:27:19 EDT 2009
* Shouwei Li (casmyu at gmail.com) wrote:
> Hi, Dear friends:
> Thanks for you long time support. According you said, I think I have trace
> the process, but I have some question also.
> I open two shell terminals, one run lttv-gui, and the other run some
> program, I call this terminal two. First, I get the bash PID in two, as
> follows:
> [root][~]# ps
> PID TTY TIME CMD
> 2333 pts/0 00:00:00 bash
> 2364 pts/0 00:00:00 ps
>
> then I run a program some times, as follows:
> [root][~]# ./cpptest
> The value of i is 0
> [root][~]# ./cpptest
> The value of i is 0
> [root][~]# ./cpptest
> The value of i is 0
> [root][~]# ./cpptest
> The value of i is 0
>
> Now, I stoped the trace, then get this screen, I put the screen capture in
> the attachment. You told me that If I run a program in a bash, the program
> trace will be in the shell, so I think the cpptest will be build-in bash,
> that is PID 2333, right? But why I can not see the function invoke process?
> And I can not see some information in detail about this process.
> Please give me a guide.
> thank you!
>
If cpptest is a program compiled with g++, then it will show as
"cpptest", not bash in the thread view. It will also have a different
PID than bash. bash (pid 2333 here) will be its parent. (PPID column)
Use
ps aux
To see a list of all your system's processes.
The snapshot you show here does not seem to include the time window that
contains you cpptest program. Doing a zoom out would probably help
finding it. Or using the filter to filter by process name (the filter
looks like a "and" door).
Mathieu
> On Tue, Apr 14, 2009 at 7:59 AM, Mathieu Desnoyers <
> compudj at krystal.dyndns.org> wrote:
>
> > You should probably zoom out to see the entire trace so you can see your
> > program. The "time window" shown by lttv is 1 second by default,
> > starting from the beginning of the trace. Use the scrollbar at the
> > bottom to move it.
> >
> > Also make sure you look for the appropriate executable name. For
> > instance, if you run a bash script, the executable will be named "bash".
> >
> > Mathieu
> >
> > * Shouwei Li (casmyu at gmail.com) wrote:
> > > Hi,
> > > I have read many papers on the web site even plus some articles get from
> > > google, maybe for my foolish, I have not known how to trace a private
> > > program till now. My setps is like this:
> > > 1. open the lttv-gui, then start to trace
> > > 2. I run a program which written by myself.
> > > 3. after the program stop, I stop the lttv trace
> > > 4. then check the report generated by lttv
> > > But every time, what I say are all the system process. such as init, su,
> > > bash, sshd, vsftpd and so on. I can not find any information about my own
> > > process.
> > > Please tell me what is my mistake. why I can not see my private program's
> > > information. If possible, please supply a document about how to trace a
> > > private program to me.
> > > Thank you very much!
> > >
> > > On Mon, Apr 13, 2009 at 12:00 AM, <ltt-dev-request at lists.casi.polymtl.ca
> > >wrote:
> > >
> > > > Send ltt-dev mailing list submissions to
> > > > ltt-dev at lists.casi.polymtl.ca
> > > >
> > > > To subscribe or unsubscribe via the World Wide Web, visit
> > > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > > or, via email, send a message with subject or body 'help' to
> > > > ltt-dev-request at lists.casi.polymtl.ca
> > > >
> > > > You can reach the person managing the list at
> > > > ltt-dev-owner at lists.casi.polymtl.ca
> > > >
> > > > When replying, please edit your Subject line so it is more specific
> > > > than "Re: Contents of ltt-dev digest..."
> > > >
> > > >
> > > > Today's Topics:
> > > >
> > > > 1. ltt used in network IO tracing under the environment of KVM?
> > (??)
> > > > 2. Re: Run lttv-gui error (Mathieu Desnoyers)
> > > >
> > > >
> > > > ----------------------------------------------------------------------
> > > >
> > > > Message: 1
> > > > Date: Thu, 9 Apr 2009 16:32:06 +0800
> > > > From: ?? <zengshan227 at gmail.com>
> > > > To: ltt-dev at lists.casi.polymtl.ca
> > > > Subject: [ltt-dev] ltt used in network IO tracing under the
> > > > environment of KVM?
> > > > Message-ID:
> > > > <9f49f7820904090132m1edf65d3n1bf13f8fcdf1b73b at mail.gmail.com>
> > > > Content-Type: text/plain; charset="iso-8859-1"
> > > >
> > > > Hi all:
> > > > I am a newbie in ltt, and I am wondering whether ltt can be used to
> > trace
> > > > the network I/O under the environment of KVM(Kernel based Virtual
> > > > Machine)? What I want to know exactly is the ingressing path of a
> > packet
> > > > from the host linux kernel to the guest os.
> > > > Any ideas?
> > > > Thank you very much!
> > > > -------------- next part --------------
> > > > An HTML attachment was scrubbed...
> > > > URL: <
> > > >
> > http://lists.casi.polymtl.ca/pipermail/ltt-dev/attachments/20090409/da7b0d82/attachment-0001.html
> > > > >
> > > >
> > > > ------------------------------
> > > >
> > > > Message: 2
> > > > Date: Sat, 11 Apr 2009 21:40:42 -0400
> > > > From: Mathieu Desnoyers <compudj at krystal.dyndns.org>
> > > > To: Shouwei Li <casmyu at gmail.com>
> > > > Cc: ltt-dev at lists.casi.polymtl.ca
> > > > Subject: Re: [ltt-dev] Run lttv-gui error
> > > > Message-ID: <20090412014042.GA5822 at Krystal>
> > > > Content-Type: text/plain; charset=us-ascii
> > > >
> > > > * Shouwei Li (casmyu at gmail.com) wrote:
> > > > > My OS is debian 5.0, so I think su command is avaiable. I have
> > compile
> > > > > the kernel, lttng to the latest version, so I can make sure that no
> > > > > compatibility problem.
> > > > >
> > > > > You, it will show all the system calls done by the processes you are
> > > > > interested into.
> > > >
> > > > By you I meant "Yes", sorry.
> > > >
> > > > >
> > > >
> > ----------------------------------------------------------------------------------------------------
> > > > > Where I can get some documents about this topics.
> > > > >
> > > >
> > > > See the LTTng Manual on the lttng.org website, and the papers
> > published
> > > > on this same website.
> > > >
> > > > Mathieu
> > > >
> > > > > Thank you very much! ^_^
> > > > >
> > > > > On 4/11/09, Mathieu Desnoyers <compudj at krystal.dyndns.org> wrote:
> > > > > > * Shouwei Li (casmyu at gmail.com) wrote:
> > > > > >> Hello, friends:
> > > > > >> I login OS with root account. then I run lttv-gui like this:
> > > > > >> [root][~]# export DISPLAY=192.168.153.1:0.0
> > > > > >> [root][~]# lttv-gui
> > > > > >> I have opend xmanager(passive), then the GUI pop up.
> > > > > >> Then I click the Insert Tracing Control Module button(The traffic
> > > > > >> light), after input the root passwd, I click start button, but an
> > > > > >> error message box pop up, the error message is "A problem occured
> > when
> > > > > >> executing the su command : Operation not permitted". Please tell
> > me
> > > > > >> why and how to solve this problem.
> > > > > >
> > > > > > If you are on ubuntu, su is disabled. You would have to figure out
> > how
> > > > > > to reenable it using their documentation. Or you can use the lttctl
> > > > > > command directly to control tracing instead, as stated in the
> > > > > > documentation.
> > > > > >
> > > > > > Also make sure your
> > > > > > lttv
> > > > > > ltt-control
> > > > > > lttng
> > > > > >
> > > > > > versions follow the compatibility list on the lttng.org website.
> > > > > >
> > > > > >> One more question: I want to monitor a program which executed from
> > > > > >> bash, all the processes of this program execute. Include from bash
> > to
> > > > > >> execv, how the dynamic loader loaded the elf file and the other
> > > > > >> libraries and so on. Does lttv can be competent for this work?
> > > > > >> Thank you very much!
> > > > > >
> > > > > > You, it will show all the system calls done by the processes you
> > are
> > > > > > interested into.
> > > > > >
> > > > > > Mathieu
> > > > > >
> > > > > >> --
> > > > > >> Best Regards!
> > > > > >> Shouwei Li
> > > > > >>
> > > > > >> _______________________________________________
> > > > > >> ltt-dev mailing list
> > > > > >> ltt-dev at lists.casi.polymtl.ca
> > > > > >> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > > > >>
> > > > > >
> > > > > > --
> > > > > > Mathieu Desnoyers
> > > > > > OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE
> > 3BAE
> > > > 9A68
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Best Regards!
> > > > > Shouwei Li
> > > > >
> > > >
> > > > --
> > > > Mathieu Desnoyers
> > > > OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE
> > 9A68
> > > >
> > > >
> > > >
> > > > ------------------------------
> > > >
> > > > _______________________________________________
> > > > ltt-dev mailing list
> > > > ltt-dev at lists.casi.polymtl.ca
> > > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > >
> > > >
> > > > End of ltt-dev Digest, Vol 12, Issue 17
> > > > ***************************************
> > > >
> > >
> > >
> > >
> > > --
> > > Best Regards!
> > > Shouwei Li
> >
> > > _______________________________________________
> > > ltt-dev mailing list
> > > ltt-dev at lists.casi.polymtl.ca
> > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> >
> > --
> > Mathieu Desnoyers
> > OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
> >
>
>
>
> --
> Best Regards!
> Shouwei Li
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
More information about the lttng-dev
mailing list