Add NULL user attribute type
[libside.git] / include / side / trace.h
1 // SPDX-License-Identifier: MIT
2 /*
3 * Copyright 2022 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 */
5
6 #ifndef _SIDE_TRACE_H
7 #define _SIDE_TRACE_H
8
9 #include <stdint.h>
10 #include <inttypes.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <math.h>
14 #include <side/macros.h>
15
16 /* SIDE stands for "Static Instrumentation Dynamically Enabled" */
17
18 //TODO: as those structures will be ABI, we need to either consider them
19 //fixed forever, or think of a scheme that would allow their binary
20 //representation to be extended if need be.
21
22 struct side_arg_vec;
23 struct side_arg_vec_description;
24 struct side_arg_dynamic_vec;
25 struct side_arg_dynamic_vec_vla;
26 struct side_type_description;
27 struct side_event_field;
28 struct side_tracer_visitor_ctx;
29 struct side_tracer_dynamic_struct_visitor_ctx;
30 struct side_tracer_dynamic_vla_visitor_ctx;
31 struct side_event_description;
32 struct side_arg_dynamic_event_struct;
33
34 enum side_type {
35 /* Basic types */
36 SIDE_TYPE_BOOL,
37 SIDE_TYPE_U8,
38 SIDE_TYPE_U16,
39 SIDE_TYPE_U32,
40 SIDE_TYPE_U64,
41 SIDE_TYPE_S8,
42 SIDE_TYPE_S16,
43 SIDE_TYPE_S32,
44 SIDE_TYPE_S64,
45 SIDE_TYPE_BYTE,
46 SIDE_TYPE_FLOAT_BINARY16,
47 SIDE_TYPE_FLOAT_BINARY32,
48 SIDE_TYPE_FLOAT_BINARY64,
49 SIDE_TYPE_FLOAT_BINARY128,
50 SIDE_TYPE_STRING,
51
52 /* Compound types */
53 SIDE_TYPE_STRUCT,
54 SIDE_TYPE_ARRAY,
55 SIDE_TYPE_VLA,
56 SIDE_TYPE_VLA_VISITOR,
57
58 SIDE_TYPE_ARRAY_U8,
59 SIDE_TYPE_ARRAY_U16,
60 SIDE_TYPE_ARRAY_U32,
61 SIDE_TYPE_ARRAY_U64,
62 SIDE_TYPE_ARRAY_S8,
63 SIDE_TYPE_ARRAY_S16,
64 SIDE_TYPE_ARRAY_S32,
65 SIDE_TYPE_ARRAY_S64,
66 SIDE_TYPE_ARRAY_BYTE,
67
68 SIDE_TYPE_VLA_U8,
69 SIDE_TYPE_VLA_U16,
70 SIDE_TYPE_VLA_U32,
71 SIDE_TYPE_VLA_U64,
72 SIDE_TYPE_VLA_S8,
73 SIDE_TYPE_VLA_S16,
74 SIDE_TYPE_VLA_S32,
75 SIDE_TYPE_VLA_S64,
76 SIDE_TYPE_VLA_BYTE,
77
78 /* Enumeration types */
79 SIDE_TYPE_ENUM,
80 SIDE_TYPE_ENUM_BITMAP,
81
82 /* Dynamic type */
83 SIDE_TYPE_DYNAMIC,
84 };
85
86 enum side_dynamic_type {
87 /* Basic types */
88 SIDE_DYNAMIC_TYPE_NULL,
89 SIDE_DYNAMIC_TYPE_BOOL,
90 SIDE_DYNAMIC_TYPE_U8,
91 SIDE_DYNAMIC_TYPE_U16,
92 SIDE_DYNAMIC_TYPE_U32,
93 SIDE_DYNAMIC_TYPE_U64,
94 SIDE_DYNAMIC_TYPE_S8,
95 SIDE_DYNAMIC_TYPE_S16,
96 SIDE_DYNAMIC_TYPE_S32,
97 SIDE_DYNAMIC_TYPE_S64,
98 SIDE_DYNAMIC_TYPE_BYTE,
99 SIDE_DYNAMIC_TYPE_FLOAT_BINARY16,
100 SIDE_DYNAMIC_TYPE_FLOAT_BINARY32,
101 SIDE_DYNAMIC_TYPE_FLOAT_BINARY64,
102 SIDE_DYNAMIC_TYPE_FLOAT_BINARY128,
103 SIDE_DYNAMIC_TYPE_STRING,
104
105 /* Compound types */
106 SIDE_DYNAMIC_TYPE_STRUCT,
107 SIDE_DYNAMIC_TYPE_STRUCT_VISITOR,
108 SIDE_DYNAMIC_TYPE_VLA,
109 SIDE_DYNAMIC_TYPE_VLA_VISITOR,
110 };
111
112 enum side_attr_type {
113 SIDE_ATTR_TYPE_NULL,
114 SIDE_ATTR_TYPE_BOOL,
115 SIDE_ATTR_TYPE_U8,
116 SIDE_ATTR_TYPE_U16,
117 SIDE_ATTR_TYPE_U32,
118 SIDE_ATTR_TYPE_U64,
119 SIDE_ATTR_TYPE_S8,
120 SIDE_ATTR_TYPE_S16,
121 SIDE_ATTR_TYPE_S32,
122 SIDE_ATTR_TYPE_S64,
123 SIDE_ATTR_TYPE_FLOAT_BINARY16,
124 SIDE_ATTR_TYPE_FLOAT_BINARY32,
125 SIDE_ATTR_TYPE_FLOAT_BINARY64,
126 SIDE_ATTR_TYPE_FLOAT_BINARY128,
127 SIDE_ATTR_TYPE_STRING,
128 };
129
130 enum side_loglevel {
131 SIDE_LOGLEVEL_EMERG = 0,
132 SIDE_LOGLEVEL_ALERT = 1,
133 SIDE_LOGLEVEL_CRIT = 2,
134 SIDE_LOGLEVEL_ERR = 3,
135 SIDE_LOGLEVEL_WARNING = 4,
136 SIDE_LOGLEVEL_NOTICE = 5,
137 SIDE_LOGLEVEL_INFO = 6,
138 SIDE_LOGLEVEL_DEBUG = 7,
139 };
140
141 enum side_visitor_status {
142 SIDE_VISITOR_STATUS_OK = 0,
143 SIDE_VISITOR_STATUS_ERROR = -1,
144 };
145
146 typedef enum side_visitor_status (*side_visitor)(
147 const struct side_tracer_visitor_ctx *tracer_ctx,
148 void *app_ctx);
149 typedef enum side_visitor_status (*side_dynamic_struct_visitor)(
150 const struct side_tracer_dynamic_struct_visitor_ctx *tracer_ctx,
151 void *app_ctx);
152 typedef enum side_visitor_status (*side_dynamic_vla_visitor)(
153 const struct side_tracer_dynamic_vla_visitor_ctx *tracer_ctx,
154 void *app_ctx);
155
156 struct side_attr_value {
157 uint32_t type; /* enum side_attr_type */
158 union {
159 uint8_t side_bool;
160 uint8_t side_u8;
161 uint16_t side_u16;
162 uint32_t side_u32;
163 uint64_t side_u64;
164 int8_t side_s8;
165 int16_t side_s16;
166 int32_t side_s32;
167 int64_t side_s64;
168 #if __HAVE_FLOAT16
169 _Float16 side_float_binary16;
170 #endif
171 #if __HAVE_FLOAT32
172 _Float32 side_float_binary32;
173 #endif
174 #if __HAVE_FLOAT64
175 _Float64 side_float_binary64;
176 #endif
177 #if __HAVE_FLOAT128
178 _Float128 side_float_binary128;
179 #endif
180 const char *string;
181 } u;
182 };
183
184 /* User attributes. */
185 struct side_attr {
186 const char *key;
187 const struct side_attr_value value;
188 };
189
190 struct side_enum_mapping {
191 int64_t range_begin;
192 int64_t range_end;
193 const char *label;
194 };
195
196 struct side_enum_mappings {
197 const struct side_enum_mapping *mappings;
198 const struct side_attr *attr;
199 uint32_t nr_mappings;
200 uint32_t nr_attr;
201 };
202
203 struct side_enum_bitmap_mapping {
204 int64_t range_begin;
205 int64_t range_end;
206 const char *label;
207 };
208
209 struct side_enum_bitmap_mappings {
210 const struct side_enum_bitmap_mapping *mappings;
211 const struct side_attr *attr;
212 uint32_t nr_mappings;
213 uint32_t nr_attr;
214 };
215
216 struct side_type_struct {
217 uint32_t nr_fields;
218 uint32_t nr_attr;
219 const struct side_event_field *fields;
220 const struct side_attr *attr;
221 };
222
223 struct side_type_description {
224 uint32_t type; /* enum side_type */
225 union {
226 /* Basic types */
227 struct {
228 const struct side_attr *attr;
229 uint32_t nr_attr;
230 } side_basic;
231
232 /* Compound types */
233 struct {
234 const struct side_type_description *elem_type;
235 const struct side_attr *attr;
236 uint32_t length;
237 uint32_t nr_attr;
238 } side_array;
239 struct {
240 const struct side_type_description *elem_type;
241 const struct side_attr *attr;
242 uint32_t nr_attr;
243 } side_vla;
244 struct {
245 const struct side_type_description *elem_type;
246 side_visitor visitor;
247 const struct side_attr *attr;
248 uint32_t nr_attr;
249 } side_vla_visitor;
250 const struct side_type_struct *side_struct;
251
252 /* Enumeration types */
253 struct {
254 const struct side_enum_mappings *mappings;
255 const struct side_type_description *elem_type;
256 } side_enum;
257 struct {
258 const struct side_enum_bitmap_mappings *mappings;
259 const struct side_type_description *elem_type;
260 } side_enum_bitmap;
261 } u;
262 };
263
264 struct side_event_field {
265 const char *field_name;
266 struct side_type_description side_type;
267 };
268
269 enum side_event_flags {
270 SIDE_EVENT_FLAG_VARIADIC = (1 << 0),
271 };
272
273 struct side_callback {
274 union {
275 void (*call)(const struct side_event_description *desc,
276 const struct side_arg_vec_description *sav_desc,
277 void *priv);
278 void (*call_variadic)(const struct side_event_description *desc,
279 const struct side_arg_vec_description *sav_desc,
280 const struct side_arg_dynamic_event_struct *var_struct,
281 void *priv);
282 } u;
283 void *priv;
284 };
285
286 struct side_callbacks {
287 struct side_callback *cb;
288 uint32_t nr_cb;
289 };
290
291 struct side_event_description {
292 uint32_t version;
293 uint32_t *enabled;
294 uint32_t loglevel; /* enum side_loglevel */
295 uint32_t nr_fields;
296 uint32_t nr_attr;
297 uint32_t _unused;
298 uint64_t flags;
299 const char *provider_name;
300 const char *event_name;
301 const struct side_event_field *fields;
302 const struct side_attr *attr;
303 struct side_callbacks *callbacks;
304 };
305
306 struct side_arg_dynamic_vec {
307 uint32_t dynamic_type; /* enum side_dynamic_type */
308 union {
309 /* Basic types */
310 struct {
311 const struct side_attr *attr;
312 uint32_t nr_attr;
313 union {
314 uint8_t side_bool;
315 uint8_t side_u8;
316 uint16_t side_u16;
317 uint32_t side_u32;
318 uint64_t side_u64;
319 int8_t side_s8;
320 int16_t side_s16;
321 int32_t side_s32;
322 int64_t side_s64;
323 uint8_t side_byte;
324 #if __HAVE_FLOAT16
325 _Float16 side_float_binary16;
326 #endif
327 #if __HAVE_FLOAT32
328 _Float32 side_float_binary32;
329 #endif
330 #if __HAVE_FLOAT64
331 _Float64 side_float_binary64;
332 #endif
333 #if __HAVE_FLOAT128
334 _Float128 side_float_binary128;
335 #endif
336 const char *string;
337 } u;
338 } side_basic;
339
340 /* Compound types */
341 const struct side_arg_dynamic_event_struct *side_dynamic_struct;
342 struct {
343 void *app_ctx;
344 side_dynamic_struct_visitor visitor;
345 const struct side_attr *attr;
346 uint32_t nr_attr;
347 } side_dynamic_struct_visitor;
348 const struct side_arg_dynamic_vec_vla *side_dynamic_vla;
349 struct {
350 void *app_ctx;
351 side_dynamic_vla_visitor visitor;
352 const struct side_attr *attr;
353 uint32_t nr_attr;
354 } side_dynamic_vla_visitor;
355 } u;
356 };
357
358 struct side_arg_dynamic_vec_vla {
359 const struct side_arg_dynamic_vec *sav;
360 const struct side_attr *attr;
361 uint32_t len;
362 uint32_t nr_attr;
363 };
364
365 struct side_arg_dynamic_event_field {
366 const char *field_name;
367 const struct side_arg_dynamic_vec elem;
368 };
369
370 struct side_arg_dynamic_event_struct {
371 const struct side_arg_dynamic_event_field *fields;
372 const struct side_attr *attr;
373 uint32_t len;
374 uint32_t nr_attr;
375 };
376
377 struct side_arg_vec {
378 enum side_type type;
379 union {
380 /* Basic types */
381 uint8_t side_bool;
382 uint8_t side_u8;
383 uint16_t side_u16;
384 uint32_t side_u32;
385 uint64_t side_u64;
386 int8_t side_s8;
387 int16_t side_s16;
388 int32_t side_s32;
389 int64_t side_s64;
390 uint8_t side_byte;
391 #if __HAVE_FLOAT16
392 _Float16 side_float_binary16;
393 #endif
394 #if __HAVE_FLOAT32
395 _Float32 side_float_binary32;
396 #endif
397 #if __HAVE_FLOAT64
398 _Float64 side_float_binary64;
399 #endif
400 #if __HAVE_FLOAT128
401 _Float128 side_float_binary128;
402 #endif
403 const char *string;
404
405 /* Compound types */
406 const struct side_arg_vec_description *side_struct;
407 const struct side_arg_vec_description *side_array;
408 const struct side_arg_vec_description *side_vla;
409 void *side_vla_app_visitor_ctx;
410 void *side_array_fixint;
411 struct {
412 void *p;
413 uint32_t length;
414 } side_vla_fixint;
415
416 /* Dynamic type */
417 struct side_arg_dynamic_vec dynamic;
418 } u;
419 };
420
421 struct side_arg_vec_description {
422 const struct side_arg_vec *sav;
423 uint32_t len;
424 };
425
426 /* The visitor pattern is a double-dispatch visitor. */
427 struct side_tracer_visitor_ctx {
428 enum side_visitor_status (*write_elem)(
429 const struct side_tracer_visitor_ctx *tracer_ctx,
430 const struct side_arg_vec *elem);
431 void *priv; /* Private tracer context. */
432 };
433
434 struct side_tracer_dynamic_struct_visitor_ctx {
435 enum side_visitor_status (*write_field)(
436 const struct side_tracer_dynamic_struct_visitor_ctx *tracer_ctx,
437 const struct side_arg_dynamic_event_field *dynamic_field);
438 void *priv; /* Private tracer context. */
439 };
440
441 struct side_tracer_dynamic_vla_visitor_ctx {
442 enum side_visitor_status (*write_elem)(
443 const struct side_tracer_dynamic_vla_visitor_ctx *tracer_ctx,
444 const struct side_arg_dynamic_vec *elem);
445 void *priv; /* Private tracer context. */
446 };
447
448 /* Event and type attributes */
449
450 #define side_attr(_key, _value) \
451 { \
452 .key = _key, \
453 .value = SIDE_PARAM(_value), \
454 }
455
456 #define side_attr_list(...) \
457 SIDE_COMPOUND_LITERAL(const struct side_attr, __VA_ARGS__)
458
459 #define side_attr_null(_val) { .type = SIDE_ATTR_TYPE_NULL }
460 #define side_attr_bool(_val) { .type = SIDE_ATTR_TYPE_BOOL, .u = { .side_bool = !!(_val) } }
461 #define side_attr_u8(_val) { .type = SIDE_ATTR_TYPE_U8, .u = { .side_u8 = (_val) } }
462 #define side_attr_u16(_val) { .type = SIDE_ATTR_TYPE_U16, .u = { .side_u16 = (_val) } }
463 #define side_attr_u32(_val) { .type = SIDE_ATTR_TYPE_U32, .u = { .side_u32 = (_val) } }
464 #define side_attr_u64(_val) { .type = SIDE_ATTR_TYPE_U64, .u = { .side_u64 = (_val) } }
465 #define side_attr_s8(_val) { .type = SIDE_ATTR_TYPE_S8, .u = { .side_s8 = (_val) } }
466 #define side_attr_s16(_val) { .type = SIDE_ATTR_TYPE_S16, .u = { .side_s16 = (_val) } }
467 #define side_attr_s32(_val) { .type = SIDE_ATTR_TYPE_S32, .u = { .side_s32 = (_val) } }
468 #define side_attr_s64(_val) { .type = SIDE_ATTR_TYPE_S64, .u = { .side_s64 = (_val) } }
469 #define side_attr_float_binary16(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY16, .u = { .side_float_binary16 = (_val) } }
470 #define side_attr_float_binary32(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY32, .u = { .side_float_binary32 = (_val) } }
471 #define side_attr_float_binary64(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY64, .u = { .side_float_binary64 = (_val) } }
472 #define side_attr_float_binary128(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY128, .u = { .side_float_binary128 = (_val) } }
473 #define side_attr_string(_val) { .type = SIDE_ATTR_TYPE_STRING, .u = { .string = (_val) } }
474
475 /* Static field definition */
476
477 #define _side_type_basic(_type, _attr) \
478 { \
479 .type = _type, \
480 .u = { \
481 .side_basic = { \
482 .attr = _attr, \
483 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
484 }, \
485 }, \
486 }
487
488 #define side_type_bool(_attr) _side_type_basic(SIDE_TYPE_BOOL, SIDE_PARAM(_attr))
489 #define side_type_u8(_attr) _side_type_basic(SIDE_TYPE_U8, SIDE_PARAM(_attr))
490 #define side_type_u16(_attr) _side_type_basic(SIDE_TYPE_U16, SIDE_PARAM(_attr))
491 #define side_type_u32(_attr) _side_type_basic(SIDE_TYPE_U32, SIDE_PARAM(_attr))
492 #define side_type_u64(_attr) _side_type_basic(SIDE_TYPE_U64, SIDE_PARAM(_attr))
493 #define side_type_s8(_attr) _side_type_basic(SIDE_TYPE_S8, SIDE_PARAM(_attr))
494 #define side_type_s16(_attr) _side_type_basic(SIDE_TYPE_S16, SIDE_PARAM(_attr))
495 #define side_type_s32(_attr) _side_type_basic(SIDE_TYPE_S32, SIDE_PARAM(_attr))
496 #define side_type_s64(_attr) _side_type_basic(SIDE_TYPE_S64, SIDE_PARAM(_attr))
497 #define side_type_byte(_attr) _side_type_basic(SIDE_TYPE_BYTE, SIDE_PARAM(_attr))
498 #define side_type_float_binary16(_attr) _side_type_basic(SIDE_TYPE_FLOAT_BINARY16, SIDE_PARAM(_attr))
499 #define side_type_float_binary32(_attr) _side_type_basic(SIDE_TYPE_FLOAT_BINARY32, SIDE_PARAM(_attr))
500 #define side_type_float_binary64(_attr) _side_type_basic(SIDE_TYPE_FLOAT_BINARY64, SIDE_PARAM(_attr))
501 #define side_type_float_binary128(_attr) _side_type_basic(SIDE_TYPE_FLOAT_BINARY128, SIDE_PARAM(_attr))
502 #define side_type_string(_attr) _side_type_basic(SIDE_TYPE_STRING, SIDE_PARAM(_attr))
503 #define side_type_dynamic(_attr) _side_type_basic(SIDE_TYPE_DYNAMIC, SIDE_PARAM(_attr))
504
505 #define _side_field(_name, _type) \
506 { \
507 .field_name = _name, \
508 .side_type = _type, \
509 }
510
511 #define side_field_bool(_name, _attr) _side_field(_name, side_type_bool(SIDE_PARAM(_attr)))
512 #define side_field_u8(_name, _attr) _side_field(_name, side_type_u8(SIDE_PARAM(_attr)))
513 #define side_field_u16(_name, _attr) _side_field(_name, side_type_u16(SIDE_PARAM(_attr)))
514 #define side_field_u32(_name, _attr) _side_field(_name, side_type_u32(SIDE_PARAM(_attr)))
515 #define side_field_u64(_name, _attr) _side_field(_name, side_type_u64(SIDE_PARAM(_attr)))
516 #define side_field_s8(_name, _attr) _side_field(_name, side_type_s8(SIDE_PARAM(_attr)))
517 #define side_field_s16(_name, _attr) _side_field(_name, side_type_s16(SIDE_PARAM(_attr)))
518 #define side_field_s32(_name, _attr) _side_field(_name, side_type_s32(SIDE_PARAM(_attr)))
519 #define side_field_s64(_name, _attr) _side_field(_name, side_type_s64(SIDE_PARAM(_attr)))
520 #define side_field_byte(_name, _attr) _side_field(_name, side_type_byte(SIDE_PARAM(_attr)))
521 #define side_field_float_binary16(_name, _attr) _side_field(_name, side_type_float_binary16(SIDE_PARAM(_attr)))
522 #define side_field_float_binary32(_name, _attr) _side_field(_name, side_type_float_binary32(SIDE_PARAM(_attr)))
523 #define side_field_float_binary64(_name, _attr) _side_field(_name, side_type_float_binary64(SIDE_PARAM(_attr)))
524 #define side_field_float_binary128(_name, _attr) _side_field(_name, side_type_float_binary128(SIDE_PARAM(_attr)))
525 #define side_field_string(_name, _attr) _side_field(_name, side_type_string(SIDE_PARAM(_attr)))
526 #define side_field_dynamic(_name, _attr) _side_field(_name, side_type_dynamic(SIDE_PARAM(_attr)))
527
528 #define side_type_enum(_mappings, _elem_type) \
529 { \
530 .type = SIDE_TYPE_ENUM, \
531 .u = { \
532 .side_enum = { \
533 .mappings = _mappings, \
534 .elem_type = _elem_type, \
535 }, \
536 }, \
537 }
538 #define side_field_enum(_name, _mappings, _elem_type) \
539 _side_field(_name, side_type_enum(SIDE_PARAM(_mappings), SIDE_PARAM(_elem_type)))
540
541 #define side_type_enum_bitmap(_mappings, _elem_type) \
542 { \
543 .type = SIDE_TYPE_ENUM_BITMAP, \
544 .u = { \
545 .side_enum_bitmap = { \
546 .mappings = _mappings, \
547 .elem_type = _elem_type, \
548 }, \
549 }, \
550 }
551 #define side_field_enum_bitmap(_name, _mappings, _elem_type) \
552 _side_field(_name, side_type_enum_bitmap(SIDE_PARAM(_mappings), SIDE_PARAM(_elem_type)))
553
554 #define side_type_struct(_struct) \
555 { \
556 .type = SIDE_TYPE_STRUCT, \
557 .u = { \
558 .side_struct = _struct, \
559 }, \
560 }
561 #define side_field_struct(_name, _struct) \
562 _side_field(_name, side_type_struct(SIDE_PARAM(_struct)))
563
564 #define _side_type_struct_define(_fields, _attr) \
565 { \
566 .nr_fields = SIDE_ARRAY_SIZE(SIDE_PARAM(_fields)), \
567 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
568 .fields = _fields, \
569 .attr = _attr, \
570 }
571
572 #define side_define_struct(_identifier, _fields, _attr) \
573 const struct side_type_struct _identifier = _side_type_struct_define(SIDE_PARAM(_fields), SIDE_PARAM(_attr))
574
575 #define side_struct_literal(_fields, _attr) \
576 SIDE_COMPOUND_LITERAL(const struct side_type_struct, \
577 _side_type_struct_define(SIDE_PARAM(_fields), SIDE_PARAM(_attr)))
578
579 #define side_type_array(_elem_type, _length, _attr) \
580 { \
581 .type = SIDE_TYPE_ARRAY, \
582 .u = { \
583 .side_array = { \
584 .elem_type = _elem_type, \
585 .attr = _attr, \
586 .length = _length, \
587 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
588 }, \
589 }, \
590 }
591 #define side_field_array(_name, _elem_type, _length, _attr) \
592 _side_field(_name, side_type_array(SIDE_PARAM(_elem_type), _length, SIDE_PARAM(_attr)))
593
594 #define side_type_vla(_elem_type, _attr) \
595 { \
596 .type = SIDE_TYPE_VLA, \
597 .u = { \
598 .side_vla = { \
599 .elem_type = _elem_type, \
600 .attr = _attr, \
601 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
602 }, \
603 }, \
604 }
605 #define side_field_vla(_name, _elem_type, _attr) \
606 _side_field(_name, side_type_vla(SIDE_PARAM(_elem_type), SIDE_PARAM(_attr)))
607
608 #define side_type_vla_visitor(_elem_type, _visitor, _attr) \
609 { \
610 .type = SIDE_TYPE_VLA_VISITOR, \
611 .u = { \
612 .side_vla_visitor = { \
613 .elem_type = SIDE_PARAM(_elem_type), \
614 .visitor = _visitor, \
615 .attr = _attr, \
616 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
617 }, \
618 }, \
619 }
620 #define side_field_vla_visitor(_name, _elem_type, _visitor, _attr) \
621 _side_field(_name, side_type_vla_visitor(SIDE_PARAM(_elem_type), _visitor, SIDE_PARAM(_attr)))
622
623 #define side_elem(...) \
624 SIDE_COMPOUND_LITERAL(const struct side_type_description, __VA_ARGS__)
625
626 #define side_field_list(...) \
627 SIDE_COMPOUND_LITERAL(const struct side_event_field, __VA_ARGS__)
628
629 /* Static field arguments */
630
631 #define side_arg_bool(_val) { .type = SIDE_TYPE_BOOL, .u = { .side_bool = !!(_val) } }
632 #define side_arg_u8(_val) { .type = SIDE_TYPE_U8, .u = { .side_u8 = (_val) } }
633 #define side_arg_u16(_val) { .type = SIDE_TYPE_U16, .u = { .side_u16 = (_val) } }
634 #define side_arg_u32(_val) { .type = SIDE_TYPE_U32, .u = { .side_u32 = (_val) } }
635 #define side_arg_u64(_val) { .type = SIDE_TYPE_U64, .u = { .side_u64 = (_val) } }
636 #define side_arg_s8(_val) { .type = SIDE_TYPE_S8, .u = { .side_s8 = (_val) } }
637 #define side_arg_s16(_val) { .type = SIDE_TYPE_S16, .u = { .side_s16 = (_val) } }
638 #define side_arg_s32(_val) { .type = SIDE_TYPE_S32, .u = { .side_s32 = (_val) } }
639 #define side_arg_s64(_val) { .type = SIDE_TYPE_S64, .u = { .side_s64 = (_val) } }
640 #define side_arg_byte(_val) { .type = SIDE_TYPE_BYTE, .u = { .side_byte = (_val) } }
641 #define side_arg_enum_bitmap8(_val) { .type = SIDE_TYPE_ENUM_BITMAP8, .u = { .side_u8 = (_val) } }
642 #define side_arg_enum_bitmap16(_val) { .type = SIDE_TYPE_ENUM_BITMAP16, .u = { .side_u16 = (_val) } }
643 #define side_arg_enum_bitmap32(_val) { .type = SIDE_TYPE_ENUM_BITMAP32, .u = { .side_u32 = (_val) } }
644 #define side_arg_enum_bitmap64(_val) { .type = SIDE_TYPE_ENUM_BITMAP64, .u = { .side_u64 = (_val) } }
645 #define side_arg_enum_bitmap_array(_side_type) { .type = SIDE_TYPE_ENUM_BITMAP_ARRAY, .u = { .side_array = (_side_type) } }
646 #define side_arg_enum_bitmap_vla(_side_type) { .type = SIDE_TYPE_ENUM_BITMAP_VLA, .u = { .side_vla = (_side_type) } }
647 #define side_arg_float_binary16(_val) { .type = SIDE_TYPE_FLOAT_BINARY16, .u = { .side_float_binary16 = (_val) } }
648 #define side_arg_float_binary32(_val) { .type = SIDE_TYPE_FLOAT_BINARY32, .u = { .side_float_binary32 = (_val) } }
649 #define side_arg_float_binary64(_val) { .type = SIDE_TYPE_FLOAT_BINARY64, .u = { .side_float_binary64 = (_val) } }
650 #define side_arg_float_binary128(_val) { .type = SIDE_TYPE_FLOAT_BINARY128, .u = { .side_float_binary128 = (_val) } }
651
652 #define side_arg_string(_val) { .type = SIDE_TYPE_STRING, .u = { .string = (_val) } }
653 #define side_arg_struct(_side_type) { .type = SIDE_TYPE_STRUCT, .u = { .side_struct = (_side_type) } }
654 #define side_arg_array(_side_type) { .type = SIDE_TYPE_ARRAY, .u = { .side_array = (_side_type) } }
655 #define side_arg_vla(_side_type) { .type = SIDE_TYPE_VLA, .u = { .side_vla = (_side_type) } }
656 #define side_arg_vla_visitor(_ctx) { .type = SIDE_TYPE_VLA_VISITOR, .u = { .side_vla_app_visitor_ctx = (_ctx) } }
657
658 #define side_arg_array_u8(_ptr) { .type = SIDE_TYPE_ARRAY_U8, .u = { .side_array_fixint = (_ptr) } }
659 #define side_arg_array_u16(_ptr) { .type = SIDE_TYPE_ARRAY_U16, .u = { .side_array_fixint = (_ptr) } }
660 #define side_arg_array_u32(_ptr) { .type = SIDE_TYPE_ARRAY_U32, .u = { .side_array_fixint = (_ptr) } }
661 #define side_arg_array_u64(_ptr) { .type = SIDE_TYPE_ARRAY_U64, .u = { .side_array_fixint = (_ptr) } }
662 #define side_arg_array_s8(_ptr) { .type = SIDE_TYPE_ARRAY_S8, .u = { .side_array_fixint = (_ptr) } }
663 #define side_arg_array_s16(_ptr) { .type = SIDE_TYPE_ARRAY_S16, .u = { .side_array_fixint = (_ptr) } }
664 #define side_arg_array_s32(_ptr) { .type = SIDE_TYPE_ARRAY_S32, .u = { .side_array_fixint = (_ptr) } }
665 #define side_arg_array_s64(_ptr) { .type = SIDE_TYPE_ARRAY_S64, .u = { .side_array_fixint = (_ptr) } }
666 #define side_arg_array_byte(_ptr) { .type = SIDE_TYPE_ARRAY_BYTE, .u = { .side_array_fixint = (_ptr) } }
667
668 #define side_arg_vla_u8(_ptr, _length) { .type = SIDE_TYPE_VLA_U8, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } }
669 #define side_arg_vla_u16(_ptr, _length) { .type = SIDE_TYPE_VLA_U16, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
670 #define side_arg_vla_u32(_ptr, _length) { .type = SIDE_TYPE_VLA_U32, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
671 #define side_arg_vla_u64(_ptr, _length) { .type = SIDE_TYPE_VLA_U64, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
672 #define side_arg_vla_s8(_ptr, _length) { .type = SIDE_TYPE_VLA_S8, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
673 #define side_arg_vla_s16(_ptr, _length) { .type = SIDE_TYPE_VLA_S16, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
674 #define side_arg_vla_s32(_ptr, _length) { .type = SIDE_TYPE_VLA_S32, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
675 #define side_arg_vla_s64(_ptr, _length) { .type = SIDE_TYPE_VLA_S64, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
676 #define side_arg_vla_byte(_ptr, _length) { .type = SIDE_TYPE_VLA_BYTE, .u = { .side_vla_fixint = { .p = (_ptr), .length = (_length) } } }
677
678 #define side_arg_dynamic(_dynamic_arg_type) \
679 { \
680 .type = SIDE_TYPE_DYNAMIC, \
681 .u = { \
682 .dynamic = _dynamic_arg_type, \
683 }, \
684 }
685
686 /* Dynamic field arguments */
687
688 #define side_arg_dynamic_null(_attr) \
689 { \
690 .dynamic_type = SIDE_DYNAMIC_TYPE_NULL, \
691 .u = { \
692 .side_basic = { \
693 .attr = _attr, \
694 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
695 }, \
696 }, \
697 }
698
699 #define side_arg_dynamic_bool(_val, _attr) \
700 { \
701 .dynamic_type = SIDE_DYNAMIC_TYPE_BOOL, \
702 .u = { \
703 .side_basic = { \
704 .attr = _attr, \
705 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
706 .u = { \
707 .side_bool = !!(_val), \
708 }, \
709 }, \
710 }, \
711 }
712
713 #define side_arg_dynamic_u8(_val, _attr) \
714 { \
715 .dynamic_type = SIDE_DYNAMIC_TYPE_U8, \
716 .u = { \
717 .side_basic = { \
718 .attr = _attr, \
719 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
720 .u = { \
721 .side_u8 = (_val), \
722 }, \
723 }, \
724 }, \
725 }
726 #define side_arg_dynamic_u16(_val, _attr) \
727 { \
728 .dynamic_type = SIDE_DYNAMIC_TYPE_U16, \
729 .u = { \
730 .side_basic = { \
731 .attr = _attr, \
732 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
733 .u = { \
734 .side_u16 = (_val), \
735 }, \
736 }, \
737 }, \
738 }
739 #define side_arg_dynamic_u32(_val, _attr) \
740 { \
741 .dynamic_type = SIDE_DYNAMIC_TYPE_U32, \
742 .u = { \
743 .side_basic = { \
744 .attr = _attr, \
745 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
746 .u = { \
747 .side_u32 = (_val), \
748 }, \
749 }, \
750 }, \
751 }
752 #define side_arg_dynamic_u64(_val, _attr) \
753 { \
754 .dynamic_type = SIDE_DYNAMIC_TYPE_U64, \
755 .u = { \
756 .side_basic = { \
757 .attr = _attr, \
758 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
759 .u = { \
760 .side_u64 = (_val), \
761 }, \
762 }, \
763 }, \
764 }
765
766 #define side_arg_dynamic_s8(_val, _attr) \
767 { \
768 .dynamic_type = SIDE_DYNAMIC_TYPE_S8, \
769 .u = { \
770 .side_basic = { \
771 .attr = _attr, \
772 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
773 .u = { \
774 .side_s8 = (_val), \
775 }, \
776 }, \
777 }, \
778 }
779 #define side_arg_dynamic_s16(_val, _attr) \
780 { \
781 .dynamic_type = SIDE_DYNAMIC_TYPE_S16, \
782 .u = { \
783 .side_basic = { \
784 .attr = _attr, \
785 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
786 .u = { \
787 .side_s16 = (_val), \
788 }, \
789 }, \
790 }, \
791 }
792 #define side_arg_dynamic_s32(_val, _attr) \
793 { \
794 .dynamic_type = SIDE_DYNAMIC_TYPE_S32, \
795 .u = { \
796 .side_basic = { \
797 .attr = _attr, \
798 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
799 .u = { \
800 .side_s32 = (_val), \
801 }, \
802 }, \
803 }, \
804 }
805 #define side_arg_dynamic_s64(_val, _attr) \
806 { \
807 .dynamic_type = SIDE_DYNAMIC_TYPE_S64, \
808 .u = { \
809 .side_basic = { \
810 .attr = _attr, \
811 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
812 .u = { \
813 .side_s64 = (_val), \
814 }, \
815 }, \
816 }, \
817 }
818 #define side_arg_dynamic_byte(_val, _attr) \
819 { \
820 .dynamic_type = SIDE_DYNAMIC_TYPE_BYTE, \
821 .u = { \
822 .side_basic = { \
823 .attr = _attr, \
824 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
825 .u = { \
826 .side_byte = (_val), \
827 }, \
828 }, \
829 }, \
830 }
831
832 #define side_arg_dynamic_float_binary16(_val, _attr) \
833 { \
834 .dynamic_type = SIDE_DYNAMIC_TYPE_FLOAT_BINARY16, \
835 .u = { \
836 .side_basic = { \
837 .attr = _attr, \
838 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
839 .u = { \
840 .side_float_binary16 = (_val), \
841 }, \
842 }, \
843 }, \
844 }
845 #define side_arg_dynamic_float_binary32(_val, _attr) \
846 { \
847 .dynamic_type = SIDE_DYNAMIC_TYPE_FLOAT_BINARY32, \
848 .u = { \
849 .side_basic = { \
850 .attr = _attr, \
851 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
852 .u = { \
853 .side_float_binary32 = (_val), \
854 }, \
855 }, \
856 }, \
857 }
858 #define side_arg_dynamic_float_binary64(_val, _attr) \
859 { \
860 .dynamic_type = SIDE_DYNAMIC_TYPE_FLOAT_BINARY64, \
861 .u = { \
862 .side_basic = { \
863 .attr = _attr, \
864 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
865 .u = { \
866 .side_float_binary64 = (_val), \
867 }, \
868 }, \
869 }, \
870 }
871 #define side_arg_dynamic_float_binary128(_val, _attr) \
872 { \
873 .dynamic_type = SIDE_DYNAMIC_TYPE_FLOAT_BINARY128, \
874 .u = { \
875 .side_basic = { \
876 .attr = _attr, \
877 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
878 .u = { \
879 .side_float_binary128 = (_val), \
880 }, \
881 }, \
882 }, \
883 }
884
885 #define side_arg_dynamic_string(_val, _attr) \
886 { \
887 .dynamic_type = SIDE_DYNAMIC_TYPE_STRING, \
888 .u = { \
889 .side_basic = { \
890 .attr = _attr, \
891 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
892 .u = { \
893 .string = (_val), \
894 }, \
895 }, \
896 }, \
897 }
898
899 #define side_arg_dynamic_vla(_vla) \
900 { \
901 .dynamic_type = SIDE_DYNAMIC_TYPE_VLA, \
902 .u = { \
903 .side_dynamic_vla = (_vla), \
904 }, \
905 }
906
907 #define side_arg_dynamic_vla_visitor(_dynamic_vla_visitor, _ctx, _attr) \
908 { \
909 .dynamic_type = SIDE_DYNAMIC_TYPE_VLA_VISITOR, \
910 .u = { \
911 .side_dynamic_vla_visitor = { \
912 .app_ctx = _ctx, \
913 .visitor = _dynamic_vla_visitor, \
914 .attr = _attr, \
915 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
916 }, \
917 }, \
918 }
919
920 #define side_arg_dynamic_struct(_struct) \
921 { \
922 .dynamic_type = SIDE_DYNAMIC_TYPE_STRUCT, \
923 .u = { \
924 .side_dynamic_struct = (_struct), \
925 }, \
926 }
927
928 #define side_arg_dynamic_struct_visitor(_dynamic_struct_visitor, _ctx, _attr) \
929 { \
930 .dynamic_type = SIDE_DYNAMIC_TYPE_STRUCT_VISITOR, \
931 .u = { \
932 .side_dynamic_struct_visitor = { \
933 .app_ctx = _ctx, \
934 .visitor = _dynamic_struct_visitor, \
935 .attr = _attr, \
936 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
937 }, \
938 }, \
939 }
940
941 #define side_arg_dynamic_define_vec(_identifier, _sav, _attr) \
942 const struct side_arg_dynamic_vec _identifier##_vec[] = { _sav }; \
943 const struct side_arg_dynamic_vec_vla _identifier = { \
944 .sav = _identifier##_vec, \
945 .attr = _attr, \
946 .len = SIDE_ARRAY_SIZE(_identifier##_vec), \
947 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
948 }
949
950 #define side_arg_dynamic_define_struct(_identifier, _struct_fields, _attr) \
951 const struct side_arg_dynamic_event_field _identifier##_fields[] = { _struct_fields }; \
952 const struct side_arg_dynamic_event_struct _identifier = { \
953 .fields = _identifier##_fields, \
954 .attr = _attr, \
955 .len = SIDE_ARRAY_SIZE(_identifier##_fields), \
956 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
957 }
958
959 #define side_arg_define_vec(_identifier, _sav) \
960 const struct side_arg_vec _identifier##_vec[] = { _sav }; \
961 const struct side_arg_vec_description _identifier = { \
962 .sav = _identifier##_vec, \
963 .len = SIDE_ARRAY_SIZE(_identifier##_vec), \
964 }
965
966 #define side_arg_dynamic_field(_name, _elem) \
967 { \
968 .field_name = _name, \
969 .elem = _elem, \
970 }
971
972 #define side_arg_list(...) __VA_ARGS__
973
974 #define side_define_enum(_identifier, _mappings, _attr) \
975 const struct side_enum_mappings _identifier = { \
976 .mappings = _mappings, \
977 .attr = _attr, \
978 .nr_mappings = SIDE_ARRAY_SIZE(SIDE_PARAM(_mappings)), \
979 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
980 }
981
982 #define side_enum_mapping_list(...) \
983 SIDE_COMPOUND_LITERAL(const struct side_enum_mapping, __VA_ARGS__)
984
985 #define side_enum_mapping_range(_label, _begin, _end) \
986 { \
987 .range_begin = _begin, \
988 .range_end = _end, \
989 .label = _label, \
990 }
991
992 #define side_enum_mapping_value(_label, _value) \
993 { \
994 .range_begin = _value, \
995 .range_end = _value, \
996 .label = _label, \
997 }
998
999 #define side_define_enum_bitmap(_identifier, _mappings, _attr) \
1000 const struct side_enum_bitmap_mappings _identifier = { \
1001 .mappings = _mappings, \
1002 .attr = _attr, \
1003 .nr_mappings = SIDE_ARRAY_SIZE(SIDE_PARAM(_mappings)), \
1004 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
1005 }
1006
1007 #define side_enum_bitmap_mapping_list(...) \
1008 SIDE_COMPOUND_LITERAL(const struct side_enum_bitmap_mapping, __VA_ARGS__)
1009
1010 #define side_enum_bitmap_mapping_range(_label, _begin, _end) \
1011 { \
1012 .range_begin = _begin, \
1013 .range_end = _end, \
1014 .label = _label, \
1015 }
1016
1017 #define side_enum_bitmap_mapping_value(_label, _value) \
1018 { \
1019 .range_begin = _value, \
1020 .range_end = _value, \
1021 .label = _label, \
1022 }
1023
1024 #define side_event_cond(_desc) if (side_unlikely(_desc##_enabled))
1025
1026 #define side_event_call(_desc, _sav) \
1027 { \
1028 const struct side_arg_vec side_sav[] = { _sav }; \
1029 const struct side_arg_vec_description sav_desc = { \
1030 .sav = side_sav, \
1031 .len = SIDE_ARRAY_SIZE(side_sav), \
1032 }; \
1033 side_call(&(_desc), &sav_desc); \
1034 }
1035
1036 #define side_event(_desc, _sav) \
1037 side_event_cond(_desc) \
1038 side_event_call(_desc, SIDE_PARAM(_sav))
1039
1040 #define side_event_call_variadic(_desc, _sav, _var_fields, _attr) \
1041 { \
1042 const struct side_arg_vec side_sav[] = { _sav }; \
1043 const struct side_arg_vec_description sav_desc = { \
1044 .sav = side_sav, \
1045 .len = SIDE_ARRAY_SIZE(side_sav), \
1046 }; \
1047 const struct side_arg_dynamic_event_field side_fields[] = { _var_fields }; \
1048 const struct side_arg_dynamic_event_struct var_struct = { \
1049 .fields = side_fields, \
1050 .attr = _attr, \
1051 .len = SIDE_ARRAY_SIZE(side_fields), \
1052 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
1053 }; \
1054 side_call_variadic(&(_desc), &sav_desc, &var_struct); \
1055 }
1056
1057 #define side_event_variadic(_desc, _sav, _var, _attr) \
1058 side_event_cond(_desc) \
1059 side_event_call_variadic(_desc, SIDE_PARAM(_sav), SIDE_PARAM(_var), SIDE_PARAM(_attr))
1060
1061 #define _side_define_event(_identifier, _provider, _event, _loglevel, _fields, _attr, _flags) \
1062 uint32_t _identifier##_enabled __attribute__((section("side_event_enable"))); \
1063 struct side_callbacks _identifier##_callbacks __attribute__((section("side_event_callbacks"))); \
1064 const struct side_event_description _identifier = { \
1065 .version = 0, \
1066 .enabled = &(_identifier##_enabled), \
1067 .loglevel = _loglevel, \
1068 .nr_fields = SIDE_ARRAY_SIZE(SIDE_PARAM(_fields)), \
1069 .nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
1070 .flags = (_flags), \
1071 .provider_name = _provider, \
1072 .event_name = _event, \
1073 .fields = _fields, \
1074 .attr = _attr, \
1075 .callbacks = &(_identifier##_callbacks), \
1076 }; \
1077 const struct side_event_description *_identifier##_ptr \
1078 __attribute__((section("side_event_description"), used)) = &(_identifier);
1079
1080 #define side_define_event(_identifier, _provider, _event, _loglevel, _fields, _attr) \
1081 _side_define_event(_identifier, _provider, _event, _loglevel, SIDE_PARAM(_fields), \
1082 SIDE_PARAM(_attr), 0)
1083
1084 #define side_define_event_variadic(_identifier, _provider, _event, _loglevel, _fields, _attr) \
1085 _side_define_event(_identifier, _provider, _event, _loglevel, SIDE_PARAM(_fields), \
1086 SIDE_PARAM(_attr), SIDE_EVENT_FLAG_VARIADIC)
1087
1088 #define side_declare_event(_identifier) \
1089 struct side_event_description _identifier
1090
1091 void side_call(const struct side_event_description *desc,
1092 const struct side_arg_vec_description *sav_desc);
1093 void side_call_variadic(const struct side_event_description *desc,
1094 const struct side_arg_vec_description *sav_desc,
1095 const struct side_arg_dynamic_event_struct *var_struct);
1096
1097 #endif /* _SIDE_TRACE_H */
This page took 0.050503 seconds and 5 git commands to generate.