From a93b9ba76fdce637bfc3305e4b38dcc0ac0e478b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 15:20:58 +0200 Subject: [PATCH] qmp-commands: move 'trace-event-get-state' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 24 ------------------------ qapi/trace.json | 7 +++++++ 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'}, -- 2.30.2