From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IgPfF-0003Aq-GC for qemu-devel@nongnu.org; Fri, 12 Oct 2007 14:55:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IgPfE-00039J-D0 for qemu-devel@nongnu.org; Fri, 12 Oct 2007 14:55:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IgPfE-000398-5B for qemu-devel@nongnu.org; Fri, 12 Oct 2007 14:55:12 -0400 Received: from rv-out-0910.google.com ([209.85.198.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IgPfD-0005mS-Gs for qemu-devel@nongnu.org; Fri, 12 Oct 2007 14:55:12 -0400 Received: by rv-out-0910.google.com with SMTP id g11so3259131rvb for ; Fri, 12 Oct 2007 11:55:10 -0700 (PDT) Message-ID: Date: Fri, 12 Oct 2007 11:55:10 -0700 From: "Atoosaah S" Subject: Re: [Qemu-devel] Unable to Run Gprof Successfully on QEMU In-Reply-To: <20071012114742.SU6HG.129268.root@eastrmwml27.mgt.cox.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25043_13745570.1192215310412" References: <20071012114742.SU6HG.129268.root@eastrmwml27.mgt.cox.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_25043_13745570.1192215310412 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline That was it. I got it to work! Thanks so much for your help :-) On 10/12/07, Ben Taylor wrote: > > > ---- Atoosaah S wrote: > > How do I enable debugging? > > > > I checked the configure file and I do not see any options for compiling > with > > debugging, i.e. there is no --enable-debug option. I see that the > "default > > parameters" section of the configure file sets: gdbstub="yes" but other > than > > that i do not see any other reference to debugging. > > > > Also, I am working with qemu source code, which I configure, make, make > > install before every run. > > then run the binary from the source tree, as it is not stripped. As part > of make install, the binaries are stripped. > > HTH > > > > > Thank you again. > > > > > > On 10/12/07, J. Mayer wrote: > > > > > > On Fri, 2007-10-12 at 01:00 -0700, Atoosaah S wrote: > > > > I'd appreciate any input on how to run gprof successfully on qemu. > I'm > > > > new to gprof and am probably missing some steps. I successfully ran > > > > gprof on a sorting program available online, then I attempted to run > > > > gprof on qemu. > > > > > > > > Here are the steps I take: > > > > > > > > I'm trying to run gprof on qemu, but am unsuccessful. my os is > linux, > > > > my qemu version is 0.8.2. I configure qemu with the options > "configure > > > > --prefix=/install_path --enable-gprof. Then I make and make install. > I > > > > run qemu successfully using the options /install_path/qemu -hda > > > > diskimage.img -m 256 which results in the gmon.out file. My run of > > > > qemu involved starting the image (virtual linux OS), running a few > > > > simple commands and shutting the image down. > > > > > > > > Finally, I run gprof /intsall_path/qemu gmon.out > result.txt which > > > > gives the error: gprof: file 'qemu' has no symbols' > > > > > > > > Are there any other configuration options required? Should the image > > > > be run with differently? > > > > > > You need a qemu executable with debugging symbols. Distributed > versions > > > are usually stripped, which means the debug symbols are not present > > > anymore. > > > A way to get the debug symbol is to fetch the source and recompile > it... > > > > > > -- > > > J. Mayer > > > Never organized > > > > > > > > ------=_Part_25043_13745570.1192215310412 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline That was it. I got it to work!

Thanks so much for your help :-)


On 10/12/07, Ben Taylor <sol10x86@cox.net > wrote:

---- Atoosaah S <atoosaah@gmail.com > wrote:
> How do I enable debugging?
>
> I checked the configure file and I do not see any options for compiling with
> debugging, i.e. there is no --enable-debug option. I see that the "default
> parameters" section of the configure file sets: gdbstub="yes" but other than
> that i do not see any other reference to debugging.
>
> Also, I am working with qemu source code, which I configure, make, make
> install before every run.

then run the binary from the source tree, as it is not stripped.  As part
of make install, the binaries are stripped.

HTH

>
> Thank you again.
>
>
> On 10/12/07, J. Mayer <l_indien@magic.fr> wrote:
> >
> > On Fri, 2007-10-12 at 01:00 -0700, Atoosaah S wrote:
> > > I'd appreciate any input on how to run gprof successfully on qemu. I'm
> > > new to gprof and am probably missing some steps.  I successfully ran
> > > gprof on a sorting program available online, then I attempted to run
> > > gprof on qemu.
> > >
> > > Here are the steps I take:
> > >
> > > I'm trying to run gprof on qemu, but am unsuccessful. my os is linux,
> > > my qemu version is 0.8.2. I configure qemu with the options "configure
> > > --prefix=/install_path --enable-gprof. Then I make and make install. I
> > > run qemu successfully using the options /install_path/qemu -hda
> > > diskimage.img -m 256 which results in the gmon.out file. My run of
> > > qemu involved starting the image (virtual linux OS), running a few
> > > simple commands and shutting the image down.
> > >
> > > Finally, I run gprof /intsall_path/qemu gmon.out > result.txt which
> > > gives the error: gprof: file 'qemu' has no symbols'
> > >
> > > Are there any other configuration options required? Should the image
> > > be run with differently?
> >
> > You need a qemu executable with debugging symbols. Distributed versions
> > are usually stripped, which means the debug symbols are not present
> > anymore.
> > A way to get the debug symbol is to fetch the source and recompile it...
> >
> > --
> > J. Mayer <l_indien@magic.fr>
> > Never organized
> >
> >


------=_Part_25043_13745570.1192215310412--