aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 15:20:58 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:47 +0100
commita93b9ba76fdce637bfc3305e4b38dcc0ac0e478b (patch)
tree3c591b5b4c89bac705fc5deb8432f2923517a5d4
parent9389a4e3ba3bf9115bdec3ca118b42faed311b24 (diff)
qmp-commands: move 'trace-event-get-state' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt24
-rw-r--r--qapi/trace.json7
2 files changed, 7 insertions, 24 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 0c7cf02b7c..e309c7a5d8 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -261,30 +261,6 @@ Delete a quorum's node
"child": "children.1" } }
<- { "return": {} }
-trace-event-get-state
----------------------
-
-Query the state of events.
-
-Arguments:
-
-- "name": Event name pattern (json-string).
-- "vcpu": The vCPU to query, any vCPU by default (json-int, optional).
-
-An event is returned if:
-- its name matches the "name" pattern, and
-- if "vcpu" is given, the event has the "vcpu" property.
-
-Therefore, if "vcpu" is given, the operation will only match per-vCPU events,
-returning their state on the specified vCPU. Special case: if "name" is an exact
-match, "vcpu" is given and the event does not have the "vcpu" property, an error
-is returned.
-
-Example:
-
--> { "execute": "trace-event-get-state", "arguments": { "name": "qemu_memalign" } }
-<- { "return": [ { "name": "qemu_memalign", "state": "disabled" } ] }
-
trace-event-set-state
---------------------
diff --git a/qapi/trace.json b/qapi/trace.json
index 3ad7df7fdb..24608c2f3c 100644
--- a/qapi/trace.json
+++ b/qapi/trace.json
@@ -62,6 +62,13 @@
# an error is returned.
#
# Since: 2.2
+#
+# Example:
+#
+# -> { "execute": "trace-event-get-state",
+# "arguments": { "name": "qemu_memalign" } }
+# <- { "return": [ { "name": "qemu_memalign", "state": "disabled" } ] }
+#
##
{ 'command': 'trace-event-get-state',
'data': {'name': 'str', '*vcpu': 'int'},