From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44535 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORkTF-0001OA-DC for qemu-devel@nongnu.org; Thu, 24 Jun 2010 07:19:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORkTD-0003tH-Tv for qemu-devel@nongnu.org; Thu, 24 Jun 2010 07:19:49 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:48462) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORkTD-0003sS-5Q for qemu-devel@nongnu.org; Thu, 24 Jun 2010 07:19:47 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp03.in.ibm.com (8.14.4/8.13.1) with ESMTP id o5OBJf6n029191 for ; Thu, 24 Jun 2010 16:49:41 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5OBJe063502258 for ; Thu, 24 Jun 2010 16:49:40 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5OBJeVL017095 for ; Thu, 24 Jun 2010 21:19:40 +1000 Date: Thu, 24 Jun 2010 16:49:30 +0530 From: Prerna Saxena Message-ID: <20100624164930.7859b779@zephyr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC v4][PATCH 0/3] Monitor support for Qemu tracing List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi , kvm@vger.kernel.org, Jan Kiszka , Luiz Capitulino , Maneesh Soni , Ananth Narayan This set of patches enables trace visualization & control via the QEMU monitor. It is based on trace infrastructure posted upstream : ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) This patchset adds monitor commands : - info trace : to view current contents of the trace buffer - info tracepoints : to view all available tracepoints and their state. - tracepoint NAME on|off : to enable/disable the logging of dataThis is v3 of a set of patches to enable trace visualization & control via the QEMU monitor. Changelog from v3: 1. As suggested, it replaces a hash-based search of tracepoints with a linear search. 2. Static initialization of trace event array. 3. Cleanups. Changelog from v2: 1. Clean-ups, particularly relating to export of tdb_hash(). Changelog from v1: 1. Command 'info trace' is used to view current contents of buffer, in place of 'trace'. 2. Cleanups Todos : 1. Integration with QMP 2. More tracepoints need to be added for instrumenting other qemu components such as virtio drivers, etc. -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India