[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC] [PATCH 3/5] query-trace-file
From: |
Prerna Saxena |
Subject: |
[Qemu-devel] [RFC] [PATCH 3/5] query-trace-file |
Date: |
Thu, 21 Oct 2010 15:09:11 +0530 |
'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 <address@hidden>
---
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