Received: from eggs.gnu.org ([208.118.235.92]:45600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tloci-0004gL-EA for qemu-devel@nongnu.org; Thu, 20 Dec 2012 17:29:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tlocg-0004oU-T1 for qemu-devel@nongnu.org; Thu, 20 Dec 2012 17:29:52 -0500 Received: from roura.ac.upc.edu ([147.83.33.10]:55970 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tlocg-0004oQ-Ia for qemu-devel@nongnu.org; Thu, 20 Dec 2012 17:29:50 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Thu, 20 Dec 2012 23:29:48 +0100 Message-Id: <20121220222948.22814.56660.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v7 0/8] trace: Generic event state description List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Stefan Hajnoczi Provides a generic event state description structure (TraceEvent) and a m= ore detailed event control and query interface. This is achieved by creating a new "non-public" tracing backend (i.e., no= t selectable by the user at configure time) that will generate the appropri= ate event description information. Signed-off-by: Llu=C3=ADs Vilanova --- Changes in v7: * Rebase on a8a826a from master. * Moved compilation & code generation for "trace/" into a separate makefi= le. * Renamed targets and moved rules according to the new makefile structure. Changes in v6: * Fixed typos in the documentation of the 'TraceEvent' struct. Changes in v5: * Rebase on dbaf26b3 from master. * Always initialize temporary 'ev' in 'trace_backend_init_events'. * Make common sanity checks in 'trace_event_set_state_dynamic' and delay backend-specific code to 'trace_event_set_state_dynamic_backend'. 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 (8): build: Use separate makefile for "trace/" trace: [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] Port to generic event information and new 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 .gitignore | 8 + Makefile | 18 ++- Makefile.objs | 64 +---------- docs/tracing.txt | 44 +++----- monitor.c | 15 ++- scripts/tracetool.py | 4 - scripts/tracetool/backend/__init__.py | 16 +++ scripts/tracetool/backend/dtrace.py | 5 + scripts/tracetool/backend/events.py | 23 ++++ scripts/tracetool/backend/simple.py | 22 ++-- 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 | 13 +- trace.h | 6 + trace/Makefile.objs | 92 ++++++++++++++++ trace/control-internal.h | 60 +++++++++++ trace/control.c | 99 +++++++++++++++--- trace/control.h | 185 +++++++++++++++++++++++++++= +++--- trace/default.c | 6 + trace/event-internal.h | 33 ++++++ trace/simple.c | 33 +----- trace/simple.h | 6 - trace/stderr.c | 35 +----- trace/stderr.h | 11 -- 26 files changed, 667 insertions(+), 251 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.h create mode 100644 trace/Makefile.objs 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