From patchwork Thu Oct 21 09:40:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prerna Saxena X-Patchwork-Id: 68562 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2699AB70D0 for ; Thu, 21 Oct 2010 21:00:23 +1100 (EST) Received: from localhost ([127.0.0.1]:42338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8rwa-0001es-2s for incoming@patchwork.ozlabs.org; Thu, 21 Oct 2010 06:00:20 -0400 Received: from [140.186.70.92] (port=56980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8rdN-0002uH-An for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:40:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8rdJ-00069O-9b for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:40:29 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:42191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8rdI-00068P-Oy for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:40:25 -0400 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp08.au.ibm.com (8.14.4/8.13.1) with ESMTP id o9L7ekPF020710 for ; Thu, 21 Oct 2010 18:40:46 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9L9eNGG2351292 for ; Thu, 21 Oct 2010 20:40:23 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9L9eMeS012461 for ; Thu, 21 Oct 2010 20:40:22 +1100 Received: from zephyr ([9.124.35.82]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o9L9eLCL012412; Thu, 21 Oct 2010 20:40:21 +1100 Date: Thu, 21 Oct 2010 15:10:18 +0530 From: Prerna Saxena To: Prerna Saxena Message-ID: <20101021151018.3d12b5f1@zephyr> In-Reply-To: <20101021144929.7911128a@zephyr> References: <20101021144929.7911128a@zephyr> Organization: IBM X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-redhat-linux-gnu) Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Mahesh , Ananth Narayan , qemu-devel , Stefan Hajnoczi , Luiz Capitulino Subject: [Qemu-devel] [RFC][PATCH 4/5] trace-event X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org trace-event : QMP interface to change state of a trace-event. (Analogous to hmp command : trace-event ) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index 7e95f4e..f2008e8 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -761,6 +761,38 @@ Example: Note: This command must be issued before issuing any other command. +EQMP + + { + .name = "trace-event", + .args_type = "name:s,option:b", + .params = "name on|off", + .help = "changes state of a specific trace event", + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_change_trace_event_state_qmp, + }, + +SQMP +trace-event +----------- + +Change state of a trace-event. + +Arguments: + +- "name": name of trace-event (json-string) +- "enable": New state to be set for the trace-event (json-bool) + +Example: + +-> { "execute": "trace-event", "arguments": { "name": "ABC", "enable":false } } +<- { "return": {} } + +Notes: + +(1) The 'query-trace-events' command should be used to check the new state + of the trace-event. + 3. Query Commands =================