'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 <pre...@linux.vnet.ibm.com> --- 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 -- 1.7.2.3 -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India