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.
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.
22 { 'enum': 'TraceEventState',
23 'data': ['unavailable', 'disabled', 'enabled'] }
28 # Information of a tracing event.
31 # @state: Tracing state.
35 { 'type': '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
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.
64 { 'command': 'trace-event-set-state',
65 'data': {'name': 'str', 'enable': 'bool', '*ignore-unavailable': 'bool'} }