From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57626 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGa9g-0001Ox-TM for qemu-devel@nongnu.org; Mon, 24 May 2010 12:05:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGa9e-0006eW-U2 for qemu-devel@nongnu.org; Mon, 24 May 2010 12:05:28 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:54694) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGa9e-0006dy-Bi for qemu-devel@nongnu.org; Mon, 24 May 2010 12:05:26 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp02.au.ibm.com (8.14.3/8.13.1) with ESMTP id o4OG1hEX004515 for ; Tue, 25 May 2010 02:01:43 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o4OG5Jd71359900 for ; Tue, 25 May 2010 02:05:21 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o4OG5Itx003311 for ; Tue, 25 May 2010 02:05:18 +1000 Message-ID: <4BFAA3BB.5030207@linux.vnet.ibm.com> Date: Mon, 24 May 2010 21:35:15 +0530 From: Prerna Saxena MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC 0/3] Tracing framework for QEMU List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Maneesh Soni , Anthony Liguori , Ananth , Stefan Hajnoczi Hi all, The following patchset includes a simple implementation for qemu tracing. This introduces a framework for : i) Internal buffers for QEMU, and API for logging traces therein. ii) Tracepoint framework that logs traces to the buffer and also interprets already logged traces. iii) Monitor commands to display logged traces in tracepoint-specific formats, and also for enabling/disabling tracepoints individually. This is *work in progress*. There are known issues that I'm chasing, which includes segfault that happens while transitioning from monitor to guest with tracing enabled. (Will appreciate any pointers if I'm missing the obvious somewhere :-)) Stefan, Thanks for your ideas on tracing ! I'm just posting out a rough cut of whatever I have ready ; We can take the best from both your patches and mine and have something running for qemu tracing. I'll take care of merging pieces together. Looking forward to suggestions.. -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India