From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56544 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDjTN-00075x-Oy for qemu-devel@nongnu.org; Wed, 03 Nov 2010 15:58:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDjTJ-0005ML-IU for qemu-devel@nongnu.org; Wed, 03 Nov 2010 15:58:14 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:50047 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PDjTJ-0005M4-58 for qemu-devel@nongnu.org; Wed, 03 Nov 2010 15:58:13 -0400 From: =?utf-8?b?TGx1w61z?= Date: Wed, 03 Nov 2010 20:58:14 +0100 Message-ID: <20101103195814.6430.3786.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC][PATCH v1 0/3] trace-instrument: let the user wrap/override code generated from trace-events List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Adds a new optional keyword ("instrument") to the syntax in "trace-events". When specified, this event property lets the user provide her own implementation for that tracing event. Still, in case the user only wants to wrap around the tracing event, tracetool's original implementation is accessible through function 'trace_##name##_backend', instead of the original 'trace_##name' (which now the user has to provide). The user-provided tracing functions are expected to be in the static library "libinstrument.a", identified by the "--with-instrument" configuration parameter. TODO: * Having the 'simple' backend generate code even when the "disable" property is present, complicates the flow in 'tracetool'. Is this behaviour really needed? Signed-off-by: Lluís Vilanova --- Lluís Vilanova (3): trace: rewrite 'tracetool' to facilitate future extensions trace-instrument: let the user override events generated by 'tracetool' trace-instrument: handle config-time activation Makefile | 4 - Makefile.target | 29 ++++- configure | 30 +++++ simpletrace.py | 2 trace-events | 23 +++- tracetool | 336 +++++++++++++++++++++++++++++++++++-------------------- 6 files changed, 289 insertions(+), 135 deletions(-)