m68k: is_mem is useless
[qemu.git] / qapi / trace.json
blob01b0a52a7e0a078ca451bbb09f2247313bbc10bf
1 # -*- mode: python -*-
3 # Copyright (C) 2011-2014 LluĂ­s Vilanova <vilanova@ac.upc.edu>
5 # This work is licensed under the terms of the GNU GPL, version 2 or later.
6 # See the COPYING file in the top-level directory.
9 ##
10 # @TraceEventState:
12 # State of a tracing event.
14 # @unavailable: The event is statically disabled.
16 # @disabled: The event is dynamically disabled.
18 # @enabled: The event is dynamically enabled.
20 # Since 2.2
22 { 'enum': 'TraceEventState',
23   'data': ['unavailable', 'disabled', 'enabled'] }
26 # @TraceEventInfo:
28 # Information of a tracing event.
30 # @name: Event name.
31 # @state: Tracing state.
33 # Since 2.2
35 { 'struct': 'TraceEventInfo',
36   'data': {'name': 'str', 'state': 'TraceEventState'} }
39 # @trace-event-get-state:
41 # Query the state of events.
43 # @name: Event name pattern (case-sensitive glob).
45 # Returns: a list of @TraceEventInfo for the matching events
47 # Since 2.2
49 { 'command': 'trace-event-get-state',
50   'data': {'name': 'str'},
51   'returns': ['TraceEventInfo'] }
54 # @trace-event-set-state:
56 # Set the dynamic tracing state of events.
58 # @name: Event name pattern (case-sensitive glob).
59 # @enable: Whether to enable tracing.
60 # @ignore-unavailable: #optional Do not match unavailable events with @name.
62 # Since 2.2
64 { 'command': 'trace-event-set-state',
65   'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool'} }