Version 2.10.8
[lttng-modules.git] / probes / lttng-events-write.h
CommitLineData
af2a1fe5
MD
1/*
2 * lttng-events-write.h
3 *
4 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; only
9 * version 2.1 of the License.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21#undef ctf_integer
22#define ctf_integer(_type, _item, _src) \
23 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 0, 0)
24
907b79ee
JD
25#undef ctf_integer_bitfield
26#define ctf_integer_bitfield(_type, _item, _src) \
27 _ctf_integer_ext(_type, _item, _src, __LITTLE_ENDIAN, 10, 0, 0)
28
af2a1fe5
MD
29#undef ctf_integer_hex
30#define ctf_integer_hex(_type, _item, _src) \
31 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 0, 0)
32
33#undef ctf_integer_oct
34#define ctf_integer_oct(_type, _item, _src) \
35 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 8, 0, 0)
36
37#undef ctf_integer_network
38#define ctf_integer_network(_type, _item, _src) \
39 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 0, 0)
40
41#undef ctf_integer_network_hex
42#define ctf_integer_network_hex(_type, _item, _src) \
43 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 0, 0)
44
45#undef ctf_array
46#define ctf_array(_type, _item, _src, _length) \
47 _ctf_array_encoded(_type, _item, _src, _length, none, 0, 0)
48
49#undef ctf_array_text
50#define ctf_array_text(_type, _item, _src, _length) \
51 _ctf_array_encoded(_type, _item, _src, _length, UTF8, 0, 0)
52
43803cf2
MD
53#undef ctf_array_bitfield
54#define ctf_array_bitfield(_type, _item, _src, _length) \
55 _ctf_array_bitfield(_type, _item, _src, _length, 0, 0)
56
af2a1fe5
MD
57#undef ctf_sequence
58#define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
59 _ctf_sequence_encoded(_type, _item, _src, \
60 _length_type, _src_length, none, __BYTE_ORDER, 10, 0, 0)
61
62#undef ctf_sequence_hex
63#define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
64 _ctf_sequence_encoded(_type, _item, _src, \
65 _length_type, _src_length, none, __BYTE_ORDER, 16, 0, 0)
66
67#undef ctf_sequence_network
68#define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
69 _ctf_sequence_encoded(_type, _item, _src, \
70 _length_type, _src_length, none, __BIG_ENDIAN, 10, 0, 0)
71
72#undef ctf_sequence_text
73#define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
74 _ctf_sequence_encoded(_type, _item, _src, \
5e6f60b2 75 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
af2a1fe5 76
43803cf2
MD
77#undef ctf_sequence_bitfield
78#define ctf_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
79 _ctf_sequence_bitfield(_type, _item, _src, \
80 _length_type, _src_length, 0, 0)
81
af2a1fe5
MD
82#undef ctf_string
83#define ctf_string(_item, _src) \
84 _ctf_string(_item, _src, 0, 0)
85
141ddf28
MD
86#undef ctf_enum
87#define ctf_enum(_name, _type, _item, _src) \
88 _ctf_enum(_name, _type, _item, _src, 0, 0)
89
af2a1fe5
MD
90/* user src */
91#undef ctf_user_integer
92#define ctf_user_integer(_type, _item, _src) \
93 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 10, 1, 0)
94
95#undef ctf_user_integer_hex
96#define ctf_user_integer_hex(_type, _item, _src) \
97 _ctf_integer_ext(_type, _item, _src, __BYTE_ORDER, 16, 1, 0)
98
99#undef ctf_user_integer_network
100#define ctf_user_integer_network(_type, _item, _src) \
101 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 10, 1, 0)
102
103#undef ctf_user_integer_network_hex
104#define ctf_user_integer_network_hex(_type, _item, _src) \
105 _ctf_integer_ext(_type, _item, _src, __BIG_ENDIAN, 16, 1, 0)
106
107#undef ctf_user_array
108#define ctf_user_array(_type, _item, _src, _length) \
109 _ctf_array_encoded(_type, _item, _src, _length, none, 1, 0)
110
111#undef ctf_user_array_text
112#define ctf_user_array_text(_type, _item, _src, _length) \
113 _ctf_array_encoded(_type, _item, _src, _length, UTF8, 1, 0)
114
43803cf2
MD
115#undef ctf_user_array_bitfield
116#define ctf_user_array_bitfield(_type, _item, _src, _length) \
117 _ctf_array_bitfield(_type, _item, _src, _length, 1, 0)
118
af2a1fe5
MD
119#undef ctf_user_sequence
120#define ctf_user_sequence(_type, _item, _src, _length_type, _src_length) \
121 _ctf_sequence_encoded(_type, _item, _src, \
122 _length_type, _src_length, none, __BYTE_ORDER, 10, 1, 0)
123
124#undef ctf_user_sequence_hex
125#define ctf_user_sequence_hex(_type, _item, _src, _length_type, _src_length) \
126 _ctf_sequence_encoded(_type, _item, _src, \
127 _length_type, _src_length, none, __BYTE_ORDER, 16, 1, 0)
128
129#undef ctf_user_sequence_text
130#define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
131 _ctf_sequence_encoded(_type, _item, _src, \
5e6f60b2 132 _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
af2a1fe5 133
43803cf2
MD
134#undef ctf_user_sequence_bitfield
135#define ctf_user_sequence_bitfield(_type, _item, _src, _length_type, _src_length) \
136 _ctf_sequence_bitfield(_type, _item, _src, \
137 _length_type, _src_length, 1, 0)
138
af2a1fe5
MD
139#undef ctf_user_string
140#define ctf_user_string(_item, _src) \
141 _ctf_string(_item, _src, 1, 0)
f64dd4be 142
141ddf28
MD
143#undef ctf_user_enum
144#define ctf_user_enum(_name, _type, _item, _src) \
145 _ctf_enum(_name, _type, _item, _src, 1, 0)
146
f64dd4be
MD
147/* types */
148#undef ctf_integer_type
149#define ctf_integer_type(_type, _src) \
150 ctf_integer(_type, unused, _src)
151
907b79ee
JD
152#undef ctf_integer_bitfield_type
153#define ctf_integer_bitfield_type(_type, _src) \
154 ctf_integer_bitfield(_type, unused, _src)
155
f64dd4be
MD
156#undef ctf_integer_hex_type
157#define ctf_integer_hex_type(_type, _src) \
158 ctf_integer_hex(_type, unused, _src)
159
160#undef ctf_integer_oct_type
161#define ctf_integer_oct_type(_type, _item, _src) \
162 ctf_integer_oct(_type, unused, _src)
163
164#undef ctf_integer_network_type
165#define ctf_integer_network_type(_type, _src) \
166 ctf_integer_network(_type, unused, _src)
167
168#undef ctf_integer_network_hex_type
169#define ctf_integer_network_hex_type(_type, _src) \
170 ctf_integer_network_hex(_type, unused, _src)
171
172#undef ctf_array_type
173#define ctf_array_type(_type, _src, _length) \
174 ctf_array(_type, unused, _src, _length)
175
176#undef ctf_array_text_type
177#define ctf_array_text_type(_type, _src, _length) \
178 ctf_array_text(_type, unused, _src, _length)
179
180#undef ctf_array_bitfield_type
181#define ctf_array_bitfield_type(_type, _src, _length) \
182 ctf_array_bitfield(_type, unused, _src, _length)
183
184#undef ctf_sequence_type
185#define ctf_sequence_type(_type, _src, _length_type, _src_length) \
186 ctf_sequence(_type, unused, _src, _length_type, _src_length)
187
188#undef ctf_sequence_hex_type
189#define ctf_sequence_hex_type(_type, _src, _length_type, _src_length) \
190 ctf_sequence_hex(_type, unused, _src, _length_type, _src_length)
191
192#undef ctf_sequence_network_type
193#define ctf_sequence_network_type(_type, _src, _length_type, _src_length) \
194 ctf_sequence_network(_type, unused, _src, _length_type, _src_length)
195
196#undef ctf_sequence_text_type
197#define ctf_sequence_text_type(_type, _src, _length_type, _src_length) \
198 ctf_sequence_text(_type, unused, _src, _length_type, _src_length)
199
200#undef ctf_sequence_bitfield_type
201#define ctf_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
202 ctf_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
203
204#undef ctf_string_type
205#define ctf_string_type(_src) \
206 ctf_string(unused, _src)
207
141ddf28
MD
208#undef ctf_enum_type
209#define ctf_enum_type(_name, _type, _src) \
210 ctf_enum(_name, _type, unused, _src)
211
f64dd4be
MD
212/* user src types */
213#undef ctf_user_integer_type
214#define ctf_user_integer_type(_type, _src) \
215 ctf_user_integer(_type, unused, _src)
216
217#undef ctf_user_integer_hex_type
218#define ctf_user_integer_hex_type(_type, _src) \
219 ctf_user_integer_hex(_type, unused, _src)
220
221#undef ctf_user_integer_oct_type
222#define ctf_user_integer_oct_type(_type, _item, _src) \
223 ctf_user_integer_oct(_type, unused, _src)
224
225#undef ctf_user_integer_network_type
226#define ctf_user_integer_network_type(_type, _src) \
227 ctf_user_integer_network(_type, unused, _src)
228
229#undef ctf_user_integer_network_hex_type
230#define ctf_user_integer_network_hex_type(_type, _src) \
231 ctf_user_integer_network_hex(_type, unused, _src)
232
233#undef ctf_user_array_type
234#define ctf_user_array_type(_type, _src, _length) \
235 ctf_user_array(_type, unused, _src, _length)
236
237#undef ctf_user_array_text_type
238#define ctf_user_array_text_type(_type, _src, _length) \
239 ctf_user_array_text(_type, unused, _src, _length)
240
241#undef ctf_user_array_bitfield_type
242#define ctf_user_array_bitfield_type(_type, _src, _length) \
243 ctf_user_array_bitfield(_type, unused, _src, _length)
244
245#undef ctf_user_sequence_type
246#define ctf_user_sequence_type(_type, _src, _length_type, _src_length) \
247 ctf_user_sequence(_type, unused, _src, _length_type, _src_length)
248
249#undef ctf_user_sequence_hex_type
250#define ctf_user_sequence_hex_type(_type, _src, _length_type, _src_length) \
251 ctf_user_sequence_hex(_type, unused, _src, _length_type, _src_length)
252
253#undef ctf_user_sequence_network_type
254#define ctf_user_sequence_network_type(_type, _src, _length_type, _src_length) \
255 ctf_user_sequence_network(_type, unused, _src, _length_type, _src_length)
256
257#undef ctf_user_sequence_text_type
258#define ctf_user_sequence_text_type(_type, _src, _length_type, _src_length) \
259 ctf_user_sequence_text(_type, unused, _src, _length_type, _src_length)
260
261#undef ctf_user_sequence_bitfield_type
262#define ctf_user_sequence_bitfield_type(_type, _src, _length_type, _src_length) \
263 ctf_user_sequence_bitfield(_type, unused, _src, _length_type, _src_length)
264
265#undef ctf_user_string_type
266#define ctf_user_string_type(_src) \
267 ctf_user_string(unused, _src)
141ddf28
MD
268
269#undef ctf_user_enum_type
270#define ctf_user_enum_type(_name, _type, _src) \
271 ctf_user_enum(_name, _type, unused, _src)
This page took 0.052058 seconds and 4 git commands to generate.