Received: from eggs.gnu.org ([208.118.235.92]:39057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXVbv-0005gk-Q6 for qemu-devel@nongnu.org; Wed, 01 May 2013 07:54:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXVbu-0005pw-KI for qemu-devel@nongnu.org; Wed, 01 May 2013 07:54:11 -0400 Received: from mail-bk0-x234.google.com ([2a00:1450:4008:c01::234]:45476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXVbu-0005oZ-CP for qemu-devel@nongnu.org; Wed, 01 May 2013 07:54:10 -0400 Received: by mail-bk0-f52.google.com with SMTP id je9so592872bkc.25 for ; Wed, 01 May 2013 04:54:09 -0700 (PDT) Received: from localhost ([2a02:810d:ec0:195:7c5d:7a31:6cb0:9a85]) by mx.google.com with ESMTPSA id rm3sm401366bkb.20.2013.05.01.04.54.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 01 May 2013 04:54:08 -0700 (PDT) Date: Wed, 1 May 2013 13:54:06 +0200 From: Stefan Hajnoczi Message-ID: <20130501115406.GA28932@stefanha-thinkpad.redhat.com> References: <20130421191129.8947.77964.stgit@fimbulvetr.bsc.es> <20130424111734.GB24635@stefanha-thinkpad.redhat.com> <871ua05dil.fsf@fimbulvetr.bsc.es> <20130425123900.GA8160@stefanha-thinkpad.redhat.com> <87wqrpsd1p.fsf@fimbulvetr.bsc.es> <20130426151026.GC7648@stefanha-thinkpad.redhat.com> <87k3nmfof8.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87k3nmfof8.fsf@fimbulvetr.bsc.es> Subject: Re: [Qemu-devel] [RFC][PATCH v3 00/24] instrument: Let the user wrap/override specific event tracing routines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, Apr 28, 2013 at 09:25:15PM +0200, Lluís Vilanova wrote: > Stefan Hajnoczi writes: > > > On Fri, Apr 26, 2013 at 02:15:46PM +0200, Lluís Vilanova wrote: > > Advanced users will have to modify the QEMU source. > > >> > Basically I think putting a stable API in place here isn't going to fly. > >> > In terms of the tracing subsystem I don't mind, but I think it's a > >> > question for the larger QEMU community. > >> > >> What are you referring to as an API? The tracing events and their signatures? > > > The interface that dynamic instrumentation libraries use to interact > > with QEMU. That means "stable" tracing events plus any operations that > > libraries can perform (stop/stop vcpu, peek/poke memory, dirty bitmaps, > > MMU, interrupts, etc). > > Not all events require being "stable", just a few that I established as > "abstract" and relate to some very generic guest state (which in their most > basic form can be boiled down to 5). As for the rest of the API and more > controversial events, as I said I have no problem in maintaining a separate > branch. Can you split the work into two patch series: 1. Target-independent TCG events (e.g. vbbl_begin) 2. "custom" trace backend that links custom C trace event handler functions - but without dynamic libraries or stable API. It loses the dynamic library and stable API features but would be easy to merge. Stefan