Debian Codegraph @

examples/barectf-tracepoint/config.yaml

raw
1 # The MIT License (MIT)
2 #
3 # Copyright (c) 2016 Philippe Proulx <[email protected]>
4 #
5 # Permission is hereby granted, free of charge, to any person obtaining a copy
6 # of this software and associated documentation files (the "Software"), to deal
7 # in the Software without restriction, including without limitation the rights
8 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 # copies of the Software, and to permit persons to whom the Software is
10 # furnished to do so, subject to the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be included in
13 # all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 # THE SOFTWARE.
22
23 version: '2.2'
24 options:
25 gen-prefix-def: true
26 gen-default-stream-def: true
27 metadata:
28 $include:
29 - stdint.yaml
30 - stdfloat.yaml
31 - stdmisc.yaml
32 - lttng-ust-log-levels.yaml
33 type-aliases:
34 clock-int:
35 $inherit: uint64
36 property-mappings:
37 - type: clock
38 name: default
39 property: value
40 state:
41 class: enum
42 value-type: uint8
43 members:
44 - NEW
45 - TERMINATED
46 - READY
47 - RUNNING
48 - WAITING
49 clocks:
50 default:
51 freq: 1000000000
52 offset:
53 seconds: 1434072888
54 $return-ctype: uint64_t
55 trace:
56 $include: trace-basic.yaml
57 byte-order: le
58 streams:
59 default:
60 $default: true
61 packet-context-type:
62 class: struct
63 fields:
64 timestamp_begin: clock-int
65 timestamp_end: clock-int
66 packet_size: uint32
67 content_size: uint32
68 events_discarded: uint32
69 event-header-type:
70 class: struct
71 fields:
72 timestamp: clock-int
73 id: uint16
74 events:
75 barectf_tp_simple_uint32:
76 log-level: CRIT
77 payload-type:
78 class: struct
79 fields:
80 value: uint32
81 barectf_tp_simple_int16:
82 payload-type:
83 class: struct
84 fields:
85 value: int16
86 barectf_tp_simple_float:
87 payload-type:
88 class: struct
89 fields:
90 value: float
91 barectf_tp_simple_string:
92 log-level: WARNING
93 payload-type:
94 class: struct
95 fields:
96 value:
97 class: string
98 barectf_tp_simple_enum:
99 payload-type:
100 class: struct
101 fields:
102 value: state
103 barectf_tp_a_few_fields:
104 payload-type:
105 class: struct
106 fields:
107 int32: int32
108 uint16: uint16
109 dbl: double
110 str:
111 class: string
112 state: state
113 barectf_tp_bit_packed_integers:
114 log-level: 513
115 payload-type:
116 class: struct
117 min-align: 8
118 fields:
119 uint1:
120 $inherit: uint8
121 size: 1
122 align: 1
123 int1:
124 $inherit: int8
125 size: 1
126 align: 1
127 uint2:
128 $inherit: uint8
129 size: 2
130 align: 1
131 int3:
132 $inherit: int8
133 size: 3
134 align: 1
135 uint4:
136 $inherit: uint8
137 size: 4
138 align: 1
139 int5:
140 $inherit: int8
141 size: 5
142 align: 1
143 uint6:
144 $inherit: uint8
145 size: 6
146 align: 1
147 int7:
148 $inherit: int8
149 size: 7
150 align: 1
151 uint8:
152 $inherit: uint8
153 align: 1