From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8rae-0001ar-RV for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:37:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8rab-00056s-4O for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:37:38 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:32858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8raa-00056d-Ah for qemu-devel@nongnu.org; Thu, 21 Oct 2010 05:37:37 -0400 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by e28smtp03.in.ibm.com (8.14.4/8.13.1) with ESMTP id o9L9bWVA025296 for ; Thu, 21 Oct 2010 15:07:32 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9L9bVSJ3395638 for ; Thu, 21 Oct 2010 15:07:31 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9L9bVfn006476 for ; Thu, 21 Oct 2010 15:07:31 +0530 Date: Thu, 21 Oct 2010 15:07:28 +0530 From: Prerna Saxena Message-ID: <20101021150728.2b11f5fc@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 2/5] query-trace-events List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Mahesh , Ananth Narayan , Stefan Hajnoczi , Luiz Capitulino 'query-trace-events' : QMP interface to display currently available trace-events with their state. ( Analogous to hmp command : info trace-events ) 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 f289064..e079eef 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -1590,3 +1590,35 @@ Example: } EQMP + +SQMP +query-trace-events +------------------ + +Show all available trace-events & their state. + +Returns a json-array of json-objects containing the following data: + +- "name": Name of Trace-event (json-string) +- "event_id": Event ID of Trace-event (json-int) +- "state": State of trace-event (json-bool) + +Example: + +-> { "execute": "query-trace-events" } +<- { + "return":[ + { + "name": "qemu_malloc", + "event_id": 0, + "state": false + }, + { + "name": "qemu_realloc", + "event_id": 1, + "state": false + }, + ] + } + +EQMP -- 1.7.2.3 -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India