From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Naman patel <naman321@gmail.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Call Trace for QEMU functions
Date: Thu, 30 Jul 2015 16:04:10 +0100 [thread overview]
Message-ID: <878u9xhel1.fsf@linaro.org> (raw)
In-Reply-To: <CAFEAcA-DDkHxXj03H5JdeKoVivpUJPNx=478D_vLm0wTDbU_mg@mail.gmail.com>
Peter Maydell <peter.maydell@linaro.org> writes:
> On 30 July 2015 at 13:20, Naman patel <naman321@gmail.com> wrote:
>> Hi,
>>
>> I have compiled QEMU (2.0) for x86_64 on Fedora 22 with tracing enabled
>> and the tracing option I chose was dtrace. I have this script called
>> callTrace.stp in which I try and get the Call Trace of the function
>> helper_invlpg and later tlb_flush. But I am not able to get the function
>> name of the caller function and the call trace depth is only limited to 2.
>
> The helper_invlpg function is called directly from code generated
> by QEMU's built-in JIT, not from any other C function.
>
> If you use a newer version of QEMU than 2.0 then I think we have
> fixed some of the stack frame information up so that you can
> get a backtrace that looks like:
> * helper function
> * [generated code]
> * QEMU execution loop code that handles executing guest code
> * other QEMU functions
>
> This is not likely to be very useful for profiling why or when
> we're calling a particular helper function, though.
With the perf JIT patch you can get a better handle on the profile. I'll
see if I can re-spin them tomorrow for the latest tree.
>
> thanks
> -- PMM
--
Alex Bennée
next prev parent reply other threads:[~2015-07-30 15:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 12:20 [Qemu-devel] Call Trace for QEMU functions Naman patel
2015-07-30 13:59 ` Peter Maydell
2015-07-30 15:04 ` Alex Bennée [this message]
2015-07-31 9:29 ` Naman patel
2015-07-31 10:02 ` Peter Maydell
2015-08-04 6:04 ` Naman patel
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=878u9xhel1.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=naman321@gmail.com \
--cc=peter.maydell@linaro.org \
--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).