Received: from eggs.gnu.org ([140.186.70.92]:41588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYOkR-0003FB-2r for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:09:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYOkP-0003gD-LE for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:09:51 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:52791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYOkP-0003eq-BW for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:09:49 -0500 Received: from localhost (unknown [84.88.53.92]) by gw.ac.upc.edu (Postfix) with ESMTP id 6F0686B0247 for ; Wed, 7 Dec 2011 22:09:44 +0100 (CET) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Wed, 07 Dec 2011 22:09:36 +0100 Message-ID: <20111207210936.24875.39375.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [RFC][PATCH RFC 0/4] trace-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 XXX: Must be applied on top of the "backdoor" patch series and the patch = "trace: Provide a per-event status define for conditional compilation", but = is independent otherwise. Adds the "instrument" event property. When specified, this event property= lets the user provide her own implementation for that specific tracing event. Still, in case the user only wants to wrap around the tracing event, the original tracing implementation is accessible through function 'trace__backend', instead of the original 'trace_' = (which now the user has to provide). The user-provided tracing functions are expected to be in the static libr= ary "libtrace-instrument.a", identified by the "--with-trace-instrument" configuration parameter and compiled by each of QEMU's target/frontend pa= irs. See the documentation added in the second patch for more information. Signed-off-by: Llu=C3=ADs Vilanova --- Llu=C3=ADs Vilanova (4): trace: [tracetool] Add 'get_api_name' to construct the name of trac= ing routines trace-instrument: Add documentation trace-instrument: Add support for user-provided code on a per-event= basis trace-instrument: Add a per-vCPU opaque pointer for the instrumenta= tion backend Makefile.objs | 23 +++++++ Makefile.target | 2 - configure | 38 ++++++++++++ cpu-defs.h | 6 +- docs/instrumentation.txt | 142 ++++++++++++++++++++++++++++++++++++++++= ++++++ docs/tracing.txt | 9 +++ scripts/simpletrace.py | 2 - scripts/tracetool | 57 +++++++++++++++--- 8 files changed, 261 insertions(+), 18 deletions(-) create mode 100644 docs/instrumentation.txt