Received: from eggs.gnu.org ([208.118.235.92]:48041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlYX-0006xH-FS for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRlYR-00010Y-SA for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:25 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:34189 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlYR-0000vl-Fj for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:19 -0400 Received: from gw.ac.upc.edu (gw.ac.upc.es [147.83.30.3]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id q48EcF8u029832 for ; Tue, 8 May 2012 16:38:15 +0200 Received: from localhost (unknown [84.88.51.85]) by gw.ac.upc.edu (Postfix) with ESMTP id 554EF6B006A for ; Tue, 8 May 2012 16:38:15 +0200 (CEST) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 8 May 2012 16:38:15 +0200 Message-Id: <20120508143813.18271.15731.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 0/7] trace: Generic event state description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Provides a generic event state description and a more detailed event cont= rol and query interface. Signed-off-by: Llu=C3=ADs Vilanova --- Changes in v4: * Documentation fixes and (re)formatting. Changes in v3: * Add some assertions. * Remove debugging printf's. * Improve documentation. * Make 'trace_event_get_state_static' use run-time information, and leave TRACE_*_ENABLED for compile-time checks. Changes in v2: * Minor compilation fixes. Llu=C3=ADs Vilanova (7): tracetool: Explicitly identify public backends trace: Provide a generic tracing event descriptor trace: Provide a detailed event control interface trace: [monitor] Use new event control interface trace: [default] Use new event control interface trace: [simple] Port to generic event information and new control i= nterface trace: [stderr] Port to generic event information and new control i= nterface Makefile | 5 + Makefile.objs | 21 ++++ docs/tracing.txt | 42 +++---- monitor.c | 15 ++- scripts/tracetool.py | 4 - scripts/tracetool/backend/__init__.py | 16 +++ scripts/tracetool/backend/dtrace.py | 3 + scripts/tracetool/backend/events.py | 23 ++++ scripts/tracetool/backend/simple.py | 15 +-- scripts/tracetool/backend/stderr.py | 28 ++--- scripts/tracetool/backend/ust.py | 3 + scripts/tracetool/format/events_c.py | 39 +++++++ scripts/tracetool/format/events_h.py | 50 +++++++++ scripts/tracetool/format/h.py | 9 -- trace/control-internal.h | 60 +++++++++++ trace/control.c | 92 +++++++++++++++- trace/control.h | 185 +++++++++++++++++++++++++++= +++--- trace/default.c | 6 + trace/event-internal.h | 33 ++++++ trace/simple.c | 37 ++----- trace/simple.h | 6 - trace/stderr.c | 35 +----- trace/stderr.h | 11 -- 23 files changed, 568 insertions(+), 170 deletions(-) create mode 100644 scripts/tracetool/backend/events.py create mode 100644 scripts/tracetool/format/events_c.py create mode 100644 scripts/tracetool/format/events_h.py create mode 100644 trace/control-internal.h create mode 100644 trace/event-internal.h delete mode 100644 trace/stderr.h To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi Cc: Blue Swirl