Fix: do not use bdi_unknown_name symbol
[lttng-modules.git] / probes / lttng-events-write.h
1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
2 *
3 * lttng-events-write.h
4 *
5 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 */
7
8 #undef ctf_integer
9 #define ctf_integer(_type, _item, _src) \
10 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 0, 0)
11
12 #undef ctf_integer_bitfield
13 #define ctf_integer_bitfield(_type, _item, _src) \
14 _ctf_integer_ext(_type, _item, _src, __LITTLE_ENDIAN, 10, 0, 0)
15
16 #undef ctf_integer_hex
17 #define ctf_integer_hex(_type, _item, _src) \
18 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 0, 0)
19
20 #undef ctf_integer_oct
21 #define ctf_integer_oct(_type, _item, _src) \
22 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 8, 0, 0)
23
24 #undef ctf_integer_network
25 #define ctf_integer_network(_type, _item, _src) \
26 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 0, 0)
27
28 #undef ctf_integer_network_hex
29 #define ctf_integer_network_hex(_type, _item, _src) \
30 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 0, 0)
31
32 #undef ctf_array
33 #define ctf_array(_type, _item, _src, _length) \
34 _ctf_array_encoded(_type, _item, _src, \
35 _length, none, __BYTE_ORDER, 10, 0, 0)
36
37 #undef ctf_array_hex
38 #define ctf_array_hex(_type, _item, _src, _length) \
39 _ctf_array_encoded(_type, _item, _src, \
40 _length, none, __BYTE_ORDER, 16, 0, 0)
41
42 #undef ctf_array_network
43 #define ctf_array_network(_type, _item, _src, _length) \
44 _ctf_array_encoded(_type, _item, _src, \
45 _length, none, __BIG_ENDIAN, 10, 0, 0)
46
47 #undef ctf_array_network_hex
48 #define ctf_array_network_hex(_type, _item, _src, _length) \
49 _ctf_array_encoded(_type, _item, _src, \
50 _length, none, __BIG_ENDIAN, 16, 0, 0)
51
52 #undef ctf_array_text
53 #define ctf_array_text(_type, _item, _src, _length) \
54 _ctf_array_encoded(_type, _item, _src, \
55 _length, UTF8, __BYTE_ORDER, 10, 0, 0)
56
57 #undef ctf_array_bitfield
58 #define ctf_array_bitfield(_type, _item, _src, _length) \
59 _ctf_array_bitfield(_type, _item, _src, _length, 0, 0)
60
61 #undef ctf_sequence
62 #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
63 _ctf_sequence_encoded(_type, _item, _src, \
64 _length_type, _src_length, none, __BYTE_ORDER, 10, 0, 0)
65
66 #undef ctf_sequence_hex
67 #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
68 _ctf_sequence_encoded(_type, _item, _src, \
69 _length_type, _src_length, none, __BYTE_ORDER, 16, 0, 0)
70
71 #undef ctf_sequence_network
72 #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
73 _ctf_sequence_encoded(_type, _item, _src, \
74 _length_type, _src_length, none, __BIG_ENDIAN, 10, 0, 0)
75
76 #undef ctf_sequence_network_hex
77 #define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
78 _ctf_sequence_encoded(_type, _item, _src, \
79 _length_type, _src_length, none, __BIG_ENDIAN, 16, 0, 0)
80
81 #undef ctf_sequence_text
82 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
83 _ctf_sequence_encoded(_type, _item, _src, \
84 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
85
86 #undef ctf_sequence_bitfield
87 #define ctf_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
88 _ctf_sequence_bitfield(_type, _item, _src, \
89 _length_type, _src_length, 0, 0)
90
91 #undef ctf_string
92 #define ctf_string(_item, _src) \
93 _ctf_string(_item, _src, 0, 0)
94
95 #undef ctf_enum
96 #define ctf_enum(_name, _type, _item, _src) \
97 _ctf_enum(_name, _type, _item, _src, 0, 0)
98
99 /* user src */
100 #undef ctf_user_integer
101 #define ctf_user_integer(_type, _item, _src) \
102 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 1, 0)
103
104 #undef ctf_user_integer_hex
105 #define ctf_user_integer_hex(_type, _item, _src) \
106 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 1, 0)
107
108 #undef ctf_user_integer_network
109 #define ctf_user_integer_network(_type, _item, _src) \
110 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 1, 0)
111
112 #undef ctf_user_integer_network_hex
113 #define ctf_user_integer_network_hex(_type, _item, _src) \
114 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 1, 0)
115
116 #undef ctf_user_array
117 #define ctf_user_array(_type, _item, _src, _length) \
118 _ctf_array_encoded(_type, _item, _src, \
119 _length, none, __BYTE_ORDER, 10, 1, 0)
120
121 #undef ctf_user_array_hex
122 #define ctf_user_array_hex(_type, _item, _src, _length) \
123 _ctf_array_encoded(_type, _item, _src, \
124 _length, none, __BYTE_ORDER, 16, 1, 0)
125
126 #undef ctf_user_array_network
127 #define ctf_user_array_network(_type, _item, _src, _length) \
128 _ctf_array_encoded(_type, _item, _src, \
129 _length, none, __BIG_ENDIAN, 10, 1, 0)
130
131 #undef ctf_user_array_network_hex
132 #define ctf_user_array_network_hex(_type, _item, _src, _length) \
133 _ctf_array_encoded(_type, _item, _src, \
134 _length, none, __BIG_ENDIAN, 16, 1, 0)
135
136 #undef ctf_user_array_text
137 #define ctf_user_array_text(_type, _item, _src, _length) \
138 _ctf_array_encoded(_type, _item, _src, \
139 _length, UTF8, __BYTE_ORDER, 10, 1, 0)
140
141 #undef ctf_user_array_bitfield
142 #define ctf_user_array_bitfield(_type, _item, _src, _length) \
143 _ctf_array_bitfield(_type, _item, _src, _length, 1, 0)
144
145 #undef ctf_user_sequence
146 #define ctf_user_sequence(_type, _item, _src, _length_type, _src_length) \
147 _ctf_sequence_encoded(_type, _item, _src, \
148 _length_type, _src_length, none, __BYTE_ORDER, 10, 1, 0)
149
150 #undef ctf_user_sequence_hex
151 #define ctf_user_sequence_hex(_type, _item, _src, _length_type, _src_length) \
152 _ctf_sequence_encoded(_type, _item, _src, \
153 _length_type, _src_length, none, __BYTE_ORDER, 16, 1, 0)
154
155 #undef ctf_user_sequence_network
156 #define ctf_user_sequence_network(_type, _item, _src, _length_type, _src_length) \
157 _ctf_sequence_encoded(_type, _item, _src, \
158 _length_type, _src_length, none, __BIG_ENDIAN, 10, 1, 0)
159
160 #undef ctf_user_sequence_network_hex
161 #define ctf_user_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
162 _ctf_sequence_encoded(_type, _item, _src, \
163 _length_type, _src_length, none, __BIG_ENDIAN, 16, 1, 0)
164
165 #undef ctf_user_sequence_text
166 #define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
167 _ctf_sequence_encoded(_type, _item, _src, \
168 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
169
170 #undef ctf_user_sequence_bitfield
171 #define ctf_user_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
172 _ctf_sequence_bitfield(_type, _item, _src, \
173 _length_type, _src_length, 1, 0)
174
175 #undef ctf_user_string
176 #define ctf_user_string(_item, _src) \
177 _ctf_string(_item, _src, 1, 0)
178
179 #undef ctf_user_enum
180 #define ctf_user_enum(_name, _type, _item, _src) \
181 _ctf_enum(_name, _type, _item, _src, 1, 0)
182
183 /* types */
184 #undef ctf_integer_type
185 #define ctf_integer_type(_type, _src) \
186 ctf_integer(_type, unused, _src)
187
188 #undef ctf_integer_bitfield_type
189 #define ctf_integer_bitfield_type(_type, _src) \
190 ctf_integer_bitfield(_type, unused, _src)
191
192 #undef ctf_integer_hex_type
193 #define ctf_integer_hex_type(_type, _src) \
194 ctf_integer_hex(_type, unused, _src)
195
196 #undef ctf_integer_oct_type
197 #define ctf_integer_oct_type(_type, _item, _src) \
198 ctf_integer_oct(_type, unused, _src)
199
200 #undef ctf_integer_network_type
201 #define ctf_integer_network_type(_type, _src) \
202 ctf_integer_network(_type, unused, _src)
203
204 #undef ctf_integer_network_hex_type
205 #define ctf_integer_network_hex_type(_type, _src) \
206 ctf_integer_network_hex(_type, unused, _src)
207
208 #undef ctf_array_type
209 #define ctf_array_type(_type, _src, _length) \
210 ctf_array(_type, unused, _src, _length)
211
212 #undef ctf_array_hex_type
213 #define ctf_array_hex_type(_type, _src, _length) \
214 ctf_array_hex(_type, unused, _src, _length)
215
216 #undef ctf_array_network_type
217 #define ctf_array_network_type(_type, _src, _length) \
218 ctf_array_network(_type, unused, _src, _length)
219
220 #undef ctf_array_network_hex_type
221 #define ctf_array_network_hex_type(_type, _src, _length) \
222 ctf_array_network_hex(_type, unused, _src, _length)
223
224 #undef ctf_array_text_type
225 #define ctf_array_text_type(_type, _src, _length) \
226 ctf_array_text(_type, unused, _src, _length)
227
228 #undef ctf_array_bitfield_type
229 #define ctf_array_bitfield_type(_type, _src, _length) \
230 ctf_array_bitfield(_type, unused, _src, _length)
231
232 #undef ctf_sequence_type
233 #define ctf_sequence_type(_type, _src, _length_type, _src_length) \
234 ctf_sequence(_type, unused, _src, _length_type, _src_length)
235
236 #undef ctf_sequence_hex_type
237 #define ctf_sequence_hex_type(_type, _src, _length_type, _src_length) \
238 ctf_sequence_hex(_type, unused, _src, _length_type, _src_length)
239
240 #undef ctf_sequence_network_type
241 #define ctf_sequence_network_type(_type, _src, _length_type, _src_length) \
242 ctf_sequence_network(_type, unused, _src, _length_type, _src_length)
243
244 #undef ctf_sequence_network_hex_type
245 #define ctf_sequence_network_hex_type(_type, _src, _length_type, _src_length) \
246 ctf_sequence_network_hex(_type, unused, _src, _length_type, _src_length)
247
248 #undef ctf_sequence_text_type
249 #define ctf_sequence_text_type(_type, _src, _length_type, _src_length) \
250 ctf_sequence_text(_type, unused, _src, _length_type, _src_length)
251
252 #undef ctf_sequence_bitfield_type
253 #define ctf_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
254 ctf_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
255
256 #undef ctf_string_type
257 #define ctf_string_type(_src) \
258 ctf_string(unused, _src)
259
260 #undef ctf_enum_type
261 #define ctf_enum_type(_name, _type, _src) \
262 ctf_enum(_name, _type, unused, _src)
263
264 /* user src types */
265 #undef ctf_user_integer_type
266 #define ctf_user_integer_type(_type, _src) \
267 ctf_user_integer(_type, unused, _src)
268
269 #undef ctf_user_integer_hex_type
270 #define ctf_user_integer_hex_type(_type, _src) \
271 ctf_user_integer_hex(_type, unused, _src)
272
273 #undef ctf_user_integer_oct_type
274 #define ctf_user_integer_oct_type(_type, _item, _src) \
275 ctf_user_integer_oct(_type, unused, _src)
276
277 #undef ctf_user_integer_network_type
278 #define ctf_user_integer_network_type(_type, _src) \
279 ctf_user_integer_network(_type, unused, _src)
280
281 #undef ctf_user_integer_network_hex_type
282 #define ctf_user_integer_network_hex_type(_type, _src) \
283 ctf_user_integer_network_hex(_type, unused, _src)
284
285 #undef ctf_user_array_type
286 #define ctf_user_array_type(_type, _src, _length) \
287 ctf_user_array(_type, unused, _src, _length)
288
289 #undef ctf_user_array_hex_type
290 #define ctf_user_array_hex_type(_type, _src, _length) \
291 ctf_user_array_hex(_type, unused, _src, _length)
292
293 #undef ctf_user_array_network_type
294 #define ctf_user_array_network_type(_type, _src, _length) \
295 ctf_user_array_network(_type, unused, _src, _length)
296
297 #undef ctf_user_array_network_hex_type
298 #define ctf_user_array_network_hex_type(_type, _src, _length) \
299 ctf_user_array_network_hex(_type, unused, _src, _length)
300
301 #undef ctf_user_array_text_type
302 #define ctf_user_array_text_type(_type, _src, _length) \
303 ctf_user_array_text(_type, unused, _src, _length)
304
305 #undef ctf_user_array_bitfield_type
306 #define ctf_user_array_bitfield_type(_type, _src, _length) \
307 ctf_user_array_bitfield(_type, unused, _src, _length)
308
309 #undef ctf_user_sequence_type
310 #define ctf_user_sequence_type(_type, _src, _length_type, _src_length) \
311 ctf_user_sequence(_type, unused, _src, _length_type, _src_length)
312
313 #undef ctf_user_sequence_hex_type
314 #define ctf_user_sequence_hex_type(_type, _src, _length_type, _src_length) \
315 ctf_user_sequence_hex(_type, unused, _src, _length_type, _src_length)
316
317 #undef ctf_user_sequence_network_type
318 #define ctf_user_sequence_network_type(_type, _src, _length_type, _src_length) \
319 ctf_user_sequence_network(_type, unused, _src, _length_type, _src_length)
320
321 #undef ctf_user_sequence_network_hex_type
322 #define ctf_user_sequence_network_hex_type(_type, _src, _length_type, _src_length) \
323 ctf_user_sequence_network_hex(_type, unused, _src, _length_type, _src_length)
324
325 #undef ctf_user_sequence_text_type
326 #define ctf_user_sequence_text_type(_type, _src, _length_type, _src_length) \
327 ctf_user_sequence_text(_type, unused, _src, _length_type, _src_length)
328
329 #undef ctf_user_sequence_bitfield_type
330 #define ctf_user_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
331 ctf_user_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
332
333 #undef ctf_user_string_type
334 #define ctf_user_string_type(_src) \
335 ctf_user_string(unused, _src)
336
337 #undef ctf_user_enum_type
338 #define ctf_user_enum_type(_name, _type, _src) \
339 ctf_user_enum(_name, _type, unused, _src)
This page took 0.039412 seconds and 4 git commands to generate.