Comments
Patch
@@ -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
'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 <prerna@linux.vnet.ibm.com> --- qmp-commands.hx | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-)