ppc440: Rename parent field of PPC460EXPCIEState to match code style
[qemu/ar7.git] / qapi / trace.json
blob39b752fc8844ae6d5cbbd16d3f1b69d6ce430ac1
1 # -*- mode: python -*-
2 # vim: filetype=python
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.
9 ##
10 # = Tracing
14 # @TraceEventState:
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.
24 # Since: 2.2
26 { 'enum': 'TraceEventState',
27   'data': ['unavailable', 'disabled', 'enabled'] }
30 # @TraceEventInfo:
32 # Information of a tracing event.
34 # @name: Event name.
36 # @state: Tracing state.
38 # @vcpu: Whether this is a per-vCPU event (since 2.7).
40 # Features:
41 # @deprecated: Member @vcpu is deprecated, and always ignored.
43 # Since: 2.2
45 { 'struct': 'TraceEventInfo',
46   'data': {'name': 'str', 'state': 'TraceEventState',
47            'vcpu': { 'type': 'bool', 'features': ['deprecated'] } } }
50 # @trace-event-get-state:
52 # Query the state of events.
54 # @name: Event name pattern (case-sensitive glob).
56 # @vcpu: The vCPU to query (since 2.7).
58 # Features:
59 # @deprecated: Member @vcpu is deprecated, and always ignored.
61 # Returns: a list of @TraceEventInfo for the matching events
63 # An event is returned if its name matches the @name pattern
64 # (There are no longer any per-vCPU events).
66 # Since: 2.2
68 # Example:
70 # -> { "execute": "trace-event-get-state",
71 #      "arguments": { "name": "qemu_memalign" } }
72 # <- { "return": [ { "name": "qemu_memalign", "state": "disabled", "vcpu": false } ] }
74 { 'command': 'trace-event-get-state',
75   'data': {'name': 'str',
76            '*vcpu': {'type': 'int', 'features': ['deprecated'] } },
77   'returns': ['TraceEventInfo'] }
80 # @trace-event-set-state:
82 # Set the dynamic tracing state of events.
84 # @name: Event name pattern (case-sensitive glob).
86 # @enable: Whether to enable tracing.
88 # @ignore-unavailable: Do not match unavailable events with @name.
90 # @vcpu: The vCPU to act upon (all by default; since 2.7).
92 # Features:
93 # @deprecated: Member @vcpu is deprecated, and always ignored.
95 # An event is enabled if its name matches the @name pattern
96 # (There are no longer any per-vCPU events).
98 # Since: 2.2
100 # Example:
102 # -> { "execute": "trace-event-set-state",
103 #      "arguments": { "name": "qemu_memalign", "enable": true } }
104 # <- { "return": {} }
106 { 'command': 'trace-event-set-state',
107   'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool',
108            '*vcpu': {'type': 'int', 'features': ['deprecated'] } } }