From mboxrd@z Thu Jan 1 00:00:00 1970 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 Date: Thu, 21 Oct 2010 15:10:18 +0530 From: Prerna Saxena Message-ID: <20101021151018.3d12b5f1@zephyr> In-Reply-To: <20101021144929.7911128a@zephyr> References: <20101021144929.7911128a@zephyr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC][PATCH 4/5] trace-event List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prerna Saxena Cc: Mahesh , Ananth Narayan , qemu-devel , Stefan Hajnoczi , Luiz Capitulino 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 ================= -- 1.7.2.3 -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India