From patchwork Thu Oct 21 09:39:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,3/5] query-trace-file Date: Wed, 20 Oct 2010 23:39:11 -0000 From: Prerna Saxena X-Patchwork-Id: 68561 Message-Id: <20101021150911.6ffa0788@zephyr> To: qemu-devel Cc: Mahesh , Ananth Narayan , Stefan Hajnoczi , Luiz Capitulino 'query-trace-file' : QMP interface to find currently set trace file and its status. (Analogous to hmp command : trace-file) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index e079eef..7e95f4e 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -1622,3 +1622,27 @@ Example: } EQMP + +SQMP +query-trace-file +---------------- + +Display the trace file name to which trace data is currently logged, and its +status. + +Returns a json-object containing the following data: + +- "trace-file": Name + path of Trace-file (json-string) +- "enabled": State of trace-event (json-bool) + +Example: + +-> { "execute": "query-trace-file" } +<- { + "return":{ + "trace-file": "/tmp/trace-26609", + "enabled": true + } + } + +EQMP