_CCodeGenerator.generate_c_src(): use Jinja 2 templates
[deliverable/barectf.git] / doc / examples / linux-fs-simple / config.yaml
CommitLineData
0a7000dc
PP
1# The MIT License (MIT)
2#
3# Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com>
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
b93bf176 23version: '2.2'
6034a765
PP
24options:
25 gen-prefix-def: true
26 gen-default-stream-def: true
e5aa0be3 27metadata:
6db33742
PP
28 $include:
29 - stdint.yaml
30 - stdfloat.yaml
31 - stdmisc.yaml
32 - lttng-ust-log-levels.yaml
e5aa0be3 33 type-aliases:
e5aa0be3 34 clock-int:
fe6cc755 35 $inherit: uint64
e5aa0be3
PP
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
e5aa0be3
PP
49 clocks:
50 default:
51 freq: 1000000000
52 offset:
53 seconds: 1434072888
a3062dde 54 $return-ctype: uint64_t
e5aa0be3 55 trace:
6db33742 56 $include: trace-basic.yaml
e5aa0be3 57 byte-order: le
e5aa0be3
PP
58 streams:
59 default:
b93bf176 60 $default: true
e5aa0be3
PP
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
d6483c83 69 salut: string
e5aa0be3
PP
70 event-header-type:
71 class: struct
72 fields:
73 timestamp: clock-int
74 id: uint16
75 events:
76 simple_uint32:
5e2e80be 77 log-level: CRIT
e5aa0be3
PP
78 payload-type:
79 class: struct
80 fields:
81 value: uint32
82 simple_int16:
83 payload-type:
84 class: struct
85 fields:
86 value: int16
87 simple_float:
88 payload-type:
89 class: struct
90 fields:
91 value: float
92 simple_string:
5e2e80be 93 log-level: WARNING
e5aa0be3
PP
94 payload-type:
95 class: struct
96 fields:
97 value:
98 class: string
99 simple_enum:
100 payload-type:
101 class: struct
102 fields:
103 value: state
e848a861
PP
104 context_no_payload:
105 context-type:
106 class: struct
107 fields:
108 a: uint32
109 b: string
110 no_context_no_payload: {}
e5aa0be3
PP
111 a_few_fields:
112 payload-type:
113 class: struct
114 fields:
115 int32: int32
116 uint16: uint16
117 dbl: double
118 str:
119 class: string
120 state: state
121 bit_packed_integers:
5e2e80be 122 log-level: 513
e5aa0be3
PP
123 payload-type:
124 class: struct
125 min-align: 8
126 fields:
127 uint1:
fe6cc755 128 $inherit: uint8
e5aa0be3
PP
129 size: 1
130 align: 1
131 int1:
fe6cc755 132 $inherit: int8
e5aa0be3
PP
133 size: 1
134 align: 1
135 uint2:
fe6cc755 136 $inherit: uint8
e5aa0be3
PP
137 size: 2
138 align: 1
139 int3:
fe6cc755 140 $inherit: int8
e5aa0be3
PP
141 size: 3
142 align: 1
143 uint4:
fe6cc755 144 $inherit: uint8
e5aa0be3
PP
145 size: 4
146 align: 1
147 int5:
fe6cc755 148 $inherit: int8
e5aa0be3
PP
149 size: 5
150 align: 1
151 uint6:
fe6cc755 152 $inherit: uint8
e5aa0be3
PP
153 size: 6
154 align: 1
155 int7:
fe6cc755 156 $inherit: int8
e5aa0be3
PP
157 size: 7
158 align: 1
159 uint8:
fe6cc755 160 $inherit: uint8
e5aa0be3 161 align: 1
This page took 0.030082 seconds and 4 git commands to generate.