4 # Copyright (C) 2011-2016 LluĂs Vilanova <vilanova@ac.upc.edu>
6 # This work is licensed under the terms of the GNU GPL, version 2 or later.
7 # See the COPYING file in the top-level directory.
16 # State of a tracing event.
18 # @unavailable: The event is statically disabled.
20 # @disabled: The event is dynamically disabled.
22 # @enabled: The event is dynamically enabled.
26 { 'enum': 'TraceEventState',
27 'data': ['unavailable', 'disabled', 'enabled'] }
32 # Information of a tracing event.
36 # @state: Tracing state.
38 # @vcpu: Whether this is a per-vCPU event (since 2.7).
42 # @deprecated: Member @vcpu is deprecated, and always ignored.
46 { 'struct': 'TraceEventInfo',
47 'data': {'name': 'str', 'state': 'TraceEventState',
48 'vcpu': { 'type': 'bool', 'features': ['deprecated'] } } }
51 # @trace-event-get-state:
53 # Query the state of events.
55 # @name: Event name pattern (case-sensitive glob).
57 # @vcpu: The vCPU to query (since 2.7).
61 # @deprecated: Member @vcpu is deprecated, and always ignored.
63 # Returns: a list of @TraceEventInfo for the matching events
69 # -> { "execute": "trace-event-get-state",
70 # "arguments": { "name": "qemu_memalign" } }
71 # <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] }
73 { 'command': 'trace-event-get-state',
74 'data': {'name': 'str',
75 '*vcpu': {'type': 'int', 'features': ['deprecated'] } },
76 'returns': ['TraceEventInfo'] }
79 # @trace-event-set-state:
81 # Set the dynamic tracing state of events.
83 # @name: Event name pattern (case-sensitive glob).
85 # @enable: Whether to enable tracing.
87 # @ignore-unavailable: Do not match unavailable events with @name.
89 # @vcpu: The vCPU to act upon (all by default; since 2.7).
93 # @deprecated: Member @vcpu is deprecated, and always ignored.
99 # -> { "execute": "trace-event-set-state",
100 # "arguments": { "name": "qemu_memalign", "enable": true } }
101 # <- { "return": {} }
103 { 'command': 'trace-event-set-state',
104 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool',
105 '*vcpu': {'type': 'int', 'features': ['deprecated'] } } }