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.
40 { 'struct': 'TraceEventInfo',
41 'data': {'name': 'str', 'state': 'TraceEventState' } }
44 # @trace-event-get-state:
46 # Query the state of events.
48 # @name: Event name pattern (case-sensitive glob).
50 # Returns: a list of @TraceEventInfo for the matching events
56 # -> { "execute": "trace-event-get-state",
57 # "arguments": { "name": "qemu_memalign" } }
58 # <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] }
60 { 'command': 'trace-event-get-state',
61 'data': {'name': 'str' },
62 'returns': ['TraceEventInfo'] }
65 # @trace-event-set-state:
67 # Set the dynamic tracing state of events.
69 # @name: Event name pattern (case-sensitive glob).
71 # @enable: Whether to enable tracing.
73 # @ignore-unavailable: Do not match unavailable events with @name.
79 # -> { "execute": "trace-event-set-state",
80 # "arguments": { "name": "qemu_memalign", "enable": true } }
83 { 'command': 'trace-event-set-state',
84 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool' } }