Unable to Run Gprof Successfully on QEMU
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
Quoted 15 lines · Atoosaah S
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.
Quoted 5 lines
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...
Signature · 2 lines
J. Mayer <[email protected]> Never organized
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.
Quoted 33 lines · J. Mayer
Quoted 15 lines · Atoosaah S
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.
Quoted 5 lines
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 <[email protected]>
Never organized
Quoted 9 lines · ---- Atoosaah S
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
Quoted 38 lines
Thank you again.
Quoted 33 lines · J. Mayer
Quoted 15 lines · Atoosaah S
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.
Quoted 5 lines
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 <[email protected]>
Never organized
That was it. I got it to work!
Thanks so much for your help :-)
Quoted 67 lines · Ben Taylor
Quoted 3 lines · ---- Atoosaah S
How do I enable debugging?
I checked the configure file and I do not see any options for compiling
with
Quoted 1 line
debugging, i.e. there is no --enable-debug option. I see that the
"default
Quoted 1 line
parameters" section of the configure file sets: gdbstub="yes" but other
than
Quoted 4 lines
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
Quoted 8 lines
Thank you again.
Quoted 3 lines · J. Mayer
Quoted 1 line · Atoosaah S
I'd appreciate any input on how to run gprof successfully on qemu.
I'm
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
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,
Quoted 1 line
Quoted 1 line
Quoted 1 line
my qemu version is 0.8.2. I configure qemu with the options
"configure
Quoted 1 line
Quoted 1 line
Quoted 1 line
--prefix=/install_path --enable-gprof. Then I make and make install.
I
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
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.
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
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
Quoted 3 lines
Quoted 3 lines
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 recompileit...
Quoted 6 lines
Quoted 6 lines
--
J. Mayer <[email protected]>
Never organized