qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mulyadi Santosa <mulyadi.santosa@gmail.com>
To: 陳韋任 <chenwj@iis.sinica.edu.tw>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Is it possible to retrieve pre-process information in QEMU?
Date: Sun, 20 May 2012 21:06:40 +0700	[thread overview]
Message-ID: <CAGdaadaowPyU2n7WGrpjT2wOeQtVfKQDm4ggqz=abrM2VCmAcA@mail.gmail.com> (raw)
In-Reply-To: <20120517030936.GA13962@cs.nctu.edu.tw>

Hi...

On Thu, May 17, 2012 at 10:09 AM, 陳韋任 <chenwj@iis.sinica.edu.tw> wrote:
> Hi all,
>
>  I would like to know if I can retrieve pre-process information in QEMU
> system mode. For example, I want to know each process's page fault ratio.
> Is there a way to do that?

logically, it's possible, but you need to locate the task_struct of
each processes first. Using GDB, that might be a bit easier but still
not easy.

Why not just monitor it inside the guest? using system tap for example?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

  reply	other threads:[~2012-05-20 14:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17  3:09 [Qemu-devel] Is it possible to retrieve pre-process information in QEMU? 陳韋任
2012-05-20 14:06 ` Mulyadi Santosa [this message]
2012-05-22  2:38   ` 陳韋任

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='CAGdaadaowPyU2n7WGrpjT2wOeQtVfKQDm4ggqz=abrM2VCmAcA@mail.gmail.com' \
    --to=mulyadi.santosa@gmail.com \
    --cc=chenwj@iis.sinica.edu.tw \
    --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).