From patchwork Thu Oct 21 09:37:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,2/5] query-trace-events Date: Wed, 20 Oct 2010 23:37:28 -0000 From: Prerna Saxena X-Patchwork-Id: 68559 Message-Id: <20101021150728.2b11f5fc@zephyr> 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