mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
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>
This commit is contained in:
parent
9389a4e3ba
commit
a93b9ba76f
@ -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
|
||||
---------------------
|
||||
|
||||
|
@ -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'},
|
||||
|
Loading…
Reference in New Issue
Block a user