Received: from eggs.gnu.org ([2001:4830:134:3::10]:59516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLsJb-0004hZ-7M for qemu-devel@nongnu.org; Mon, 25 Aug 2014 07:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLsJV-0004A4-52 for qemu-devel@nongnu.org; Mon, 25 Aug 2014 07:19:59 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:34324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLsJU-00049w-Qm for qemu-devel@nongnu.org; Mon, 25 Aug 2014 07:19:53 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Mon, 25 Aug 2014 13:19:51 +0200 Message-Id: <20140825111951.31112.50251.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/2] trace: Trace control commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Stefan Hajnoczi , Luiz Capitulino Adds QAPI/QMP commands to control tracing events, and reimplements some o= f the related HMP commands on top. NOTE: The "trace-event-set-state" command uses a bool 'enable' argument i= nstead of an enum 'state'. I'm still not sure if an enum is better than th= e two separate booleans. Signed-off-by: Llu=C3=ADs Vilanova --- Changes in v4: * Split QAPI/QMP and HMP changes into separate patches. * Add copyright information in QAPI file (Eric Blake). * Replace event state booleans with an enum (Eric Blake). * Document pattern type for argument "name" (Eric Blake). * Other documentation improvements (Markus Armbruster). * Change "keepgoing" to "ignore-unavailable" (Markus Armbruster). * Add examples in QMP command definition file (Eric Blake). * Propagate QMP errors to HMP (Markus Armbruster, Stefan Hajnoczi). * Remove trailing newlines when using error_setg (Stefan Hajnoczi). * Avoid multiple invocations of error_setg (Stefan Hajnoczi). * Various cosmetic changes (Markus Armbruster). Llu=C3=ADs Vilanova (2): trace: [qmp] Add commands to query and control event tracing state trace: [hmp] Reimplement "trace-event" and "info trace-events" usin= g QMP monitor.c | 27 ++++++++++-------- qapi-schema.json | 3 ++ qapi/trace.json | 65 ++++++++++++++++++++++++++++++++++++++++++++ qmp-commands.hx | 35 ++++++++++++++++++++++++ trace/Makefile.objs | 1 + trace/control.c | 13 --------- trace/control.h | 7 ----- trace/qmp.c | 75 +++++++++++++++++++++++++++++++++++++++++++++= ++++++ 8 files changed, 193 insertions(+), 33 deletions(-) create mode 100644 qapi/trace.json create mode 100644 trace/qmp.c To: qemu-devel@nongnu.org Cc: Michael Roth Cc: Markus Armbruster Cc: Stefan Hajnoczi Cc: Luiz Capitulino