From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48133 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORo7I-0002bt-6N for qemu-devel@nongnu.org; Thu, 24 Jun 2010 11:13:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORo7G-0006Pq-Qc for qemu-devel@nongnu.org; Thu, 24 Jun 2010 11:13:24 -0400 Received: from mtagate1.uk.ibm.com ([194.196.100.161]:36356) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORo7G-0006PP-Dv for qemu-devel@nongnu.org; Thu, 24 Jun 2010 11:13:22 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate1.uk.ibm.com (8.13.1/8.13.1) with ESMTP id o5OFDJi6001105 for ; Thu, 24 Jun 2010 15:13:19 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5OFDEPr1589496 for ; Thu, 24 Jun 2010 16:13:19 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o5OFDEmL030758 for ; Thu, 24 Jun 2010 16:13:14 +0100 Date: Thu, 24 Jun 2010 16:13:13 +0100 From: Stefan Hajnoczi Message-ID: <20100624151313.GA10152@stefan-thinkpad.transitives.com> References: <20100624164930.7859b779@zephyr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100624164930.7859b779@zephyr> Subject: [Qemu-devel] Re: [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: Prerna Saxena Cc: Anthony Liguori , kvm@vger.kernel.org, Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Maneesh Soni , Ananth Narayan On Thu, Jun 24, 2010 at 04:49:30PM +0530, Prerna Saxena wrote: > 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 Applied, thanks! http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing I'd like to focus on polishing the current tracing branch into a patchset that can be merged into QEMU. Having this working prototype enables us to try tracing out; we can commit fixes on top and then squish the commits down for QEMU merge when the basic feature set is solid. > Todos : > 1. Integration with QMP > 2. More tracepoints need to be added for instrumenting other qemu components > such as virtio drivers, etc. I am copying these to another email thread so we can discuss what needs to be done to get tracing merged. Stefan