From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW6n6-0000B0-Tl for qemu-devel@nongnu.org; Sun, 20 May 2012 10:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SW6n4-0006AZ-Ru for qemu-devel@nongnu.org; Sun, 20 May 2012 10:07:24 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:55912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW6n4-0006AJ-LI for qemu-devel@nongnu.org; Sun, 20 May 2012 10:07:22 -0400 Received: by yenm4 with SMTP id m4so4797935yen.4 for ; Sun, 20 May 2012 07:07:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120517030936.GA13962@cs.nctu.edu.tw> References: <20120517030936.GA13962@cs.nctu.edu.tw> From: Mulyadi Santosa Date: Sun, 20 May 2012 21:06:40 +0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Is it possible to retrieve pre-process information in QEMU? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?6Zmz6Z+L5Lu7?= Cc: qemu-devel@nongnu.org Hi... On Thu, May 17, 2012 at 10:09 AM, =E9=99=B3=E9=9F=8B=E4=BB=BB wrote: > Hi all, > > =C2=A0I would like to know if I can retrieve pre-process information in Q= EMU > 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? --=20 regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com