qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Unable to Run Gprof Successfully on QEMU
@ 2007-10-12  8:00 Atoosaah S
  2007-10-12  8:26 ` J. Mayer
  0 siblings, 1 reply; 5+ messages in thread
From: Atoosaah S @ 2007-10-12  8:00 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

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?


thank you,
atoosaah

[-- Attachment #2: Type: text/html, Size: 1028 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Unable to Run Gprof Successfully on QEMU
  2007-10-12  8:00 [Qemu-devel] Unable to Run Gprof Successfully on QEMU Atoosaah S
@ 2007-10-12  8:26 ` J. Mayer
  2007-10-12 15:13   ` Atoosaah S
  0 siblings, 1 reply; 5+ messages in thread
From: J. Mayer @ 2007-10-12  8:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Atoosaah S

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Unable to Run Gprof Successfully on QEMU
  2007-10-12  8:26 ` J. Mayer
@ 2007-10-12 15:13   ` Atoosaah S
  2007-10-12 15:47     ` Ben Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Atoosaah S @ 2007-10-12 15:13 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1826 bytes --]

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.

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
>
>

[-- Attachment #2: Type: text/html, Size: 2327 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Unable to Run Gprof Successfully on QEMU
  2007-10-12 15:13   ` Atoosaah S
@ 2007-10-12 15:47     ` Ben Taylor
  2007-10-12 18:55       ` Atoosaah S
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Taylor @ 2007-10-12 15:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: Atoosaah S


---- 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
> >
> >

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Unable to Run Gprof Successfully on QEMU
  2007-10-12 15:47     ` Ben Taylor
@ 2007-10-12 18:55       ` Atoosaah S
  0 siblings, 0 replies; 5+ messages in thread
From: Atoosaah S @ 2007-10-12 18:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]

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
> > >
> > >
>
>

[-- Attachment #2: Type: text/html, Size: 3174 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-10-12 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12  8:00 [Qemu-devel] Unable to Run Gprof Successfully on QEMU Atoosaah S
2007-10-12  8:26 ` J. Mayer
2007-10-12 15:13   ` Atoosaah S
2007-10-12 15:47     ` Ben Taylor
2007-10-12 18:55       ` Atoosaah S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).