misc/pca955*: Move models under hw/gpio
[qemu/kevin.git] / qapi / trace.json
blob043d12f83e03a256b820d8a404a82280705d80b4
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:
42 # @deprecated: Member @vcpu is deprecated, and always ignored.
44 # Since: 2.2
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).
59 # Features:
61 # @deprecated: Member @vcpu is deprecated, and always ignored.
63 # Returns: a list of @TraceEventInfo for the matching events
65 # Since: 2.2
67 # Example:
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).
91 # Features:
93 # @deprecated: Member @vcpu is deprecated, and always ignored.
95 # Since: 2.2
97 # Example:
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'] } } }