From: "Igor Kovalenko" <igor.v.kovalenko@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Trying to Understand QEMU's Low Level Functionality ...
Date: Wed, 24 Oct 2007 07:22:00 +0400 [thread overview]
Message-ID: <b2fa41d60710232022h74d67a3w2afc5a5cf5f68921@mail.gmail.com> (raw)
In-Reply-To: <c3578ab90710231633o1d111542jba4ba76a37e17014@mail.gmail.com>
On 10/24/07, Atoosaah S <atoosaah@gmail.com> wrote:
> I'm using qemu version 0.8.2 on linux.
>
> I'm currently successful in creating the result.txt (with the command: prof
> /intsall_path/qemu gmon.out > result.txt), but the call graph created does
> not show my functions of interest.
>
> For example i'm trying to understand the sequence of calls qemu makes to
> read/write from the disk image. Using print statements i see the function
> ide_read_dma_cb (from hw directory, file ide.c) being called; as well as
> bdrv_read from (qemu root directory, file block.c). The only ide function i
> see in result.txt is ide_init2 and ide_init_ioport, and the only bdrv type
> functions are bdrv_open2 and bdrv_new. But, listing the symbol table via
> "nm" on qemu, does display my functions of interest ( i.e. bdrv_read,
> bdrv_write, ...). I should see these functions in the gprof result since,
> for example, they are executed frequently (during OS bootup, and
> writting/reading to/from a sample large file)
>
> 1. Why am I only seeing specific low level functions in the call graph?
> 2. Is there a more clear way of finding out how (i.e. sequence of calls)
> qemu make to write to the disk image?
Try valgrind instead?
valgrind --tool=callgrind --smc-check=all -v
--
Kind regards,
Igor V. Kovalenko
prev parent reply other threads:[~2007-10-24 3:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 23:33 [Qemu-devel] Trying to Understand QEMU's Low Level Functionality Atoosaah S
2007-10-24 3:22 ` Igor Kovalenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b2fa41d60710232022h74d67a3w2afc5a5cf5f68921@mail.gmail.com \
--to=igor.v.kovalenko@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).