From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HZLRS-0005Pm-68 for qemu-devel@nongnu.org; Thu, 05 Apr 2007 02:27:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HZLRP-0005K0-FO for qemu-devel@nongnu.org; Thu, 05 Apr 2007 02:27:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HZLRP-0005Jk-AH for qemu-devel@nongnu.org; Thu, 05 Apr 2007 02:27:27 -0400 Received: from wx-out-0506.google.com ([66.249.82.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HZLO2-0000Mx-K9 for qemu-devel@nongnu.org; Thu, 05 Apr 2007 02:23:58 -0400 Received: by wx-out-0506.google.com with SMTP id i30so799550wxd for ; Wed, 04 Apr 2007 23:23:57 -0700 (PDT) Message-ID: <12835c8f0704042323x686d5c8hb99b849e4d99a927@mail.gmail.com> Date: Wed, 4 Apr 2007 23:23:57 -0700 From: "Shashidhar Mysore" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2101_31563137.1175754237753" Subject: [Qemu-devel] Accessing process ID in QEMU Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ------=_Part_2101_31563137.1175754237753 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am trying to add commands to the monitor which can enable or disable tracing in QEMU. As arguments to this command I would like to pass the process ID of the process I wish to trace. Can anybody tell me how to access the process ID from within QEMU? Basically, whenever I see an instruction executing I want to capture more details about the instruction such as the type of instruction, the process ID of the process on behalf of which this instruction is executing (other details I'm interested in is if this is a load or store, memory address, and memory value loaded/stored, etc). Can you please tell me how to figure out these details, especially the process ID. Thanks, -Shashi. ------=_Part_2101_31563137.1175754237753 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I am trying to add commands to the monitor which can enable or disable tracing in QEMU. As arguments to this command I would like to pass the process ID of the process I wish to trace. Can anybody tell me how to access the process ID from within QEMU?

Basically, whenever I see an instruction executing I want to capture more details about the instruction such as the type of instruction, the process ID of the process on behalf of which this instruction is executing (other details I'm interested in is if this is a load or store, memory address, and memory value loaded/stored, etc). Can you please tell me how to figure out these details, especially the process ID.

Thanks,
-Shashi.
------=_Part_2101_31563137.1175754237753--