From: Marc-André Lureau Date: Thu, 23 Jun 2016 13:20:58 +0000 (+0200) Subject: qmp-commands: move 'trace-event-get-state' doc to schema X-Git-Tag: v2.9.0-rc0~148^2~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a93b9ba76fdce637bfc3305e4b38dcc0ac0e478b;p=thirdparty%2Fqemu.git qmp-commands: move 'trace-event-get-state' doc to schema Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 0c7cf02b7c8..e309c7a5d8c 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 3ad7df7fdb3..24608c2f3c9 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'},