From 8a9b273e5770f9f0586791c6364a04d2647467ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 23 Jun 2016 15:21:49 +0200 Subject: [PATCH] qmp-commands: move 'trace-event-set-state' doc to schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau Signed-off-by: Markus Armbruster --- docs/qmp-commands.txt | 27 --------------------------- qapi/trace.json | 7 +++++++ 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index e309c7a5d8..335acc772f 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -261,33 +261,6 @@ Delete a quorum's node "child": "children.1" } } <- { "return": {} } -trace-event-set-state ---------------------- - -Set the state of events. - -Arguments: - -- "name": Event name pattern (json-string). -- "enable": Whether to enable or disable the event (json-bool). -- "ignore-unavailable": Whether to ignore errors for events that cannot be - changed (json-bool, optional). -- "vcpu": The vCPU to act upon, all vCPUs by default (json-int, optional). - -An event's state is modified 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, -setting 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-set-state", "arguments": { "name": "qemu_memalign", "enable": "true" } } -<- { "return": {} } - query-gic-capabilities --------------- diff --git a/qapi/trace.json b/qapi/trace.json index 24608c2f3c..2bfda7ac7c 100644 --- a/qapi/trace.json +++ b/qapi/trace.json @@ -94,6 +94,13 @@ # error is returned. # # Since: 2.2 +# +# Example: +# +# -> { "execute": "trace-event-set-state", +# "arguments": { "name": "qemu_memalign", "enable": "true" } } +# <- { "return": {} } +# ## { 'command': 'trace-event-set-state', 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool',