Received: from eggs.gnu.org ([208.118.235.92]:48928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXY6x-0002ua-84 for qemu-devel@nongnu.org; Wed, 01 May 2013 10:34:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXY6w-0005Hq-3Z for qemu-devel@nongnu.org; Wed, 01 May 2013 10:34:23 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:41304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXY6v-0005HY-Ol for qemu-devel@nongnu.org; Wed, 01 May 2013 10:34:22 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= 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> <20130501115406.GA28932@stefanha-thinkpad.redhat.com> Date: Wed, 01 May 2013 16:34:18 +0200 In-Reply-To: <20130501115406.GA28932@stefanha-thinkpad.redhat.com> (Stefan Hajnoczi's message of "Wed, 1 May 2013 13:54:06 +0200") Message-ID: <87mwsekbv9.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Stefan Hajnoczi writes: > On Sun, Apr 28, 2013 at 09:25:15PM +0200, Llu=C3=ADs Vilanova wrote: >> Stefan Hajnoczi writes: >>=20 >> > On Fri, Apr 26, 2013 at 02:15:46PM +0200, Llu=C3=ADs Vilanova wrote: >> > Advanced users will have to modify the QEMU source. >>=20 >> >> > 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. >> >>=20 >> >> What are you referring to as an API? The tracing events and their sig= natures? >>=20 >> > 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). >>=20 >> 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 m= ost >> 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 separ= ate >> 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. Yes, I was thinking about sending a mail along those lines too. This basica= lly entails two series (2nd and 4th in my current branch): * Support for tracing events at TCG code generation time (basically auto-generating per-event TCG helpers - trace__tcg -, which call t= he actual tracing event - trace_ -). * The events themselves (calls to trace__tcg). I can then maintain instrumentation support and its public API on a separate branch. Still, I'm not sure when I'll have time for this, as it will require moving= a few patches among the series I have now (and readjusting their contents). Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth