const struct side_tracer_dynamic_vla_visitor_ctx *tracer_ctx,
void *app_ctx);
+struct side_integer_value {
+ uint8_t side_u8;
+ uint16_t side_u16;
+ uint32_t side_u32;
+ uint64_t side_u64;
+ int8_t side_s8;
+ int16_t side_s16;
+ int32_t side_s32;
+ int64_t side_s64;
+};
+
struct side_attr_value {
uint32_t type; /* enum side_attr_type */
union {
+ struct side_integer_value integer_value;
uint8_t side_bool;
- uint8_t side_u8;
- uint16_t side_u16;
- uint32_t side_u32;
- uint64_t side_u64;
- int8_t side_s8;
- int16_t side_s16;
- int32_t side_s32;
- int64_t side_s64;
+
#if __HAVE_FLOAT16
_Float16 side_float_binary16;
#endif
uint32_t nr_attr;
uint32_t byte_order; /* enum side_type_byte_order */
union {
+ struct side_integer_value integer_value;
uint8_t side_bool;
- uint8_t side_u8;
- uint16_t side_u16;
- uint32_t side_u32;
- uint64_t side_u64;
- int8_t side_s8;
- int16_t side_s16;
- int32_t side_s32;
- int64_t side_s64;
uint8_t side_byte;
#if __HAVE_FLOAT16
_Float16 side_float_binary16;
enum side_type type;
union {
/* Integer types */
- uint8_t side_u8;
- uint16_t side_u16;
- uint32_t side_u32;
- uint64_t side_u64;
- int8_t side_s8;
- int16_t side_s16;
- int32_t side_s32;
- int64_t side_s64;
+ struct side_integer_value integer_value;
/* Basic types */
uint8_t side_bool;
# define SIDE_TYPE_VLA_POINTER_HOST SIDE_TYPE_VLA_POINTER64
# define SIDE_DYNAMIC_TYPE_POINTER_HOST SIDE_DYNAMIC_TYPE_POINTER64
# define SIDE_ATTR_TYPE_POINTER_HOST SIDE_ATTR_TYPE_POINTER64
-# define SIDE_PTR_HOST .side_u64
+# define SIDE_PTR_HOST .integer_value.side_u64
#else
# define SIDE_TYPE_POINTER_HOST SIDE_TYPE_POINTER32
# define SIDE_TYPE_ARRAY_POINTER_HOST SIDE_TYPE_ARRAY_POINTER32
# define SIDE_TYPE_VLA_POINTER_HOST SIDE_TYPE_VLA_POINTER32
# define SIDE_DYNAMIC_TYPE_POINTER_HOST SIDE_DYNAMIC_TYPE_POINTER32
# define SIDE_ATTR_TYPE_POINTER_HOST SIDE_ATTR_TYPE_POINTER32
-# define SIDE_PTR_HOST .side_u32
+# define SIDE_PTR_HOST .integer_value.side_u32
#endif
#define side_attr(_key, _value) \
#define side_attr_null(_val) { .type = SIDE_ATTR_TYPE_NULL }
#define side_attr_bool(_val) { .type = SIDE_ATTR_TYPE_BOOL, .u = { .side_bool = !!(_val) } }
-#define side_attr_u8(_val) { .type = SIDE_ATTR_TYPE_U8, .u = { .side_u8 = (_val) } }
-#define side_attr_u16(_val) { .type = SIDE_ATTR_TYPE_U16, .u = { .side_u16 = (_val) } }
-#define side_attr_u32(_val) { .type = SIDE_ATTR_TYPE_U32, .u = { .side_u32 = (_val) } }
-#define side_attr_u64(_val) { .type = SIDE_ATTR_TYPE_U64, .u = { .side_u64 = (_val) } }
-#define side_attr_s8(_val) { .type = SIDE_ATTR_TYPE_S8, .u = { .side_s8 = (_val) } }
-#define side_attr_s16(_val) { .type = SIDE_ATTR_TYPE_S16, .u = { .side_s16 = (_val) } }
-#define side_attr_s32(_val) { .type = SIDE_ATTR_TYPE_S32, .u = { .side_s32 = (_val) } }
-#define side_attr_s64(_val) { .type = SIDE_ATTR_TYPE_S64, .u = { .side_s64 = (_val) } }
+#define side_attr_u8(_val) { .type = SIDE_ATTR_TYPE_U8, .u = { .integer_value.side_u8 = (_val) } }
+#define side_attr_u16(_val) { .type = SIDE_ATTR_TYPE_U16, .u = { .integer_value.side_u16 = (_val) } }
+#define side_attr_u32(_val) { .type = SIDE_ATTR_TYPE_U32, .u = { .integer_value.side_u32 = (_val) } }
+#define side_attr_u64(_val) { .type = SIDE_ATTR_TYPE_U64, .u = { .integer_value.side_u64 = (_val) } }
+#define side_attr_s8(_val) { .type = SIDE_ATTR_TYPE_S8, .u = { .integer_value.side_s8 = (_val) } }
+#define side_attr_s16(_val) { .type = SIDE_ATTR_TYPE_S16, .u = { .integer_value.side_s16 = (_val) } }
+#define side_attr_s32(_val) { .type = SIDE_ATTR_TYPE_S32, .u = { .integer_value.side_s32 = (_val) } }
+#define side_attr_s64(_val) { .type = SIDE_ATTR_TYPE_S64, .u = { .integer_value.side_s64 = (_val) } }
#define side_attr_pointer(_val) { .type = SIDE_ATTR_TYPE_POINTER_HOST, .u = { SIDE_PTR_HOST = (uintptr_t) (_val) } }
#define side_attr_float_binary16(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY16, .u = { .side_float_binary16 = (_val) } }
#define side_attr_float_binary32(_val) { .type = SIDE_ATTR_TYPE_FLOAT_BINARY32, .u = { .side_float_binary32 = (_val) } }
/* Static field arguments */
#define side_arg_bool(_val) { .type = SIDE_TYPE_BOOL, .u = { .side_bool = !!(_val) } }
-#define side_arg_u8(_val) { .type = SIDE_TYPE_U8, .u = { .side_u8 = (_val) } }
-#define side_arg_u16(_val) { .type = SIDE_TYPE_U16, .u = { .side_u16 = (_val) } }
-#define side_arg_u32(_val) { .type = SIDE_TYPE_U32, .u = { .side_u32 = (_val) } }
-#define side_arg_u64(_val) { .type = SIDE_TYPE_U64, .u = { .side_u64 = (_val) } }
-#define side_arg_s8(_val) { .type = SIDE_TYPE_S8, .u = { .side_s8 = (_val) } }
-#define side_arg_s16(_val) { .type = SIDE_TYPE_S16, .u = { .side_s16 = (_val) } }
-#define side_arg_s32(_val) { .type = SIDE_TYPE_S32, .u = { .side_s32 = (_val) } }
-#define side_arg_s64(_val) { .type = SIDE_TYPE_S64, .u = { .side_s64 = (_val) } }
+#define side_arg_u8(_val) { .type = SIDE_TYPE_U8, .u = { .integer_value.side_u8 = (_val) } }
+#define side_arg_u16(_val) { .type = SIDE_TYPE_U16, .u = { .integer_value.side_u16 = (_val) } }
+#define side_arg_u32(_val) { .type = SIDE_TYPE_U32, .u = { .integer_value.side_u32 = (_val) } }
+#define side_arg_u64(_val) { .type = SIDE_TYPE_U64, .u = { .integer_value.side_u64 = (_val) } }
+#define side_arg_s8(_val) { .type = SIDE_TYPE_S8, .u = { .integer_value.side_s8 = (_val) } }
+#define side_arg_s16(_val) { .type = SIDE_TYPE_S16, .u = { .integer_value.side_s16 = (_val) } }
+#define side_arg_s32(_val) { .type = SIDE_TYPE_S32, .u = { .integer_value.side_s32 = (_val) } }
+#define side_arg_s64(_val) { .type = SIDE_TYPE_S64, .u = { .integer_value.side_s64 = (_val) } }
#define side_arg_byte(_val) { .type = SIDE_TYPE_BYTE, .u = { .side_byte = (_val) } }
#define side_arg_pointer(_val) { .type = SIDE_TYPE_POINTER_HOST, .u = { SIDE_PTR_HOST = (uintptr_t) (_val) } }
-#define side_arg_enum_bitmap8(_val) { .type = SIDE_TYPE_ENUM_BITMAP8, .u = { .side_u8 = (_val) } }
-#define side_arg_enum_bitmap16(_val) { .type = SIDE_TYPE_ENUM_BITMAP16, .u = { .side_u16 = (_val) } }
-#define side_arg_enum_bitmap32(_val) { .type = SIDE_TYPE_ENUM_BITMAP32, .u = { .side_u32 = (_val) } }
-#define side_arg_enum_bitmap64(_val) { .type = SIDE_TYPE_ENUM_BITMAP64, .u = { .side_u64 = (_val) } }
+#define side_arg_enum_bitmap8(_val) { .type = SIDE_TYPE_ENUM_BITMAP8, .u = { .integer_value.side_u8 = (_val) } }
+#define side_arg_enum_bitmap16(_val) { .type = SIDE_TYPE_ENUM_BITMAP16, .u = { .integer_value.side_u16 = (_val) } }
+#define side_arg_enum_bitmap32(_val) { .type = SIDE_TYPE_ENUM_BITMAP32, .u = { .integer_value.side_u32 = (_val) } }
+#define side_arg_enum_bitmap64(_val) { .type = SIDE_TYPE_ENUM_BITMAP64, .u = { .integer_value.side_u64 = (_val) } }
#define side_arg_enum_bitmap_array(_side_type) { .type = SIDE_TYPE_ENUM_BITMAP_ARRAY, .u = { .side_array = (_side_type) } }
#define side_arg_enum_bitmap_vla(_side_type) { .type = SIDE_TYPE_ENUM_BITMAP_VLA, .u = { .side_vla = (_side_type) } }
#define side_arg_float_binary16(_val) { .type = SIDE_TYPE_FLOAT_BINARY16, .u = { .side_float_binary16 = (_val) } }
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = SIDE_TYPE_BYTE_ORDER_HOST, \
.u = { \
- .side_u8 = (_val), \
+ .integer_value.side_u8 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = SIDE_TYPE_BYTE_ORDER_HOST, \
.u = { \
- .side_s8 = (_val), \
+ .integer_value.side_s8 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_u16 = (_val), \
+ .integer_value.side_u16 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_u32 = (_val), \
+ .integer_value.side_u32 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_u64 = (_val), \
+ .integer_value.side_u64 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_s16 = (_val), \
+ .integer_value.side_s16 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_s32 = (_val), \
+ .integer_value.side_s32 = (_val), \
}, \
}, \
}, \
.nr_attr = SIDE_ARRAY_SIZE(SIDE_PARAM(_attr)), \
.byte_order = _byte_order, \
.u = { \
- .side_s64 = (_val), \
+ .integer_value.side_s64 = (_val), \
}, \
}, \
}, \
switch (attr->value.type) {
case SIDE_ATTR_TYPE_U8:
- val = attr->value.u.side_u8;
+ val = attr->value.u.integer_value.side_u8;
break;
case SIDE_ATTR_TYPE_U16:
- val = attr->value.u.side_u16;
+ val = attr->value.u.integer_value.side_u16;
break;
case SIDE_ATTR_TYPE_U32:
- val = attr->value.u.side_u32;
+ val = attr->value.u.integer_value.side_u32;
break;
case SIDE_ATTR_TYPE_U64:
- val = attr->value.u.side_u64;
+ val = attr->value.u.integer_value.side_u64;
break;
case SIDE_ATTR_TYPE_S8:
- val = attr->value.u.side_s8;
+ val = attr->value.u.integer_value.side_s8;
break;
case SIDE_ATTR_TYPE_S16:
- val = attr->value.u.side_s16;
+ val = attr->value.u.integer_value.side_s16;
break;
case SIDE_ATTR_TYPE_S32:
- val = attr->value.u.side_s32;
+ val = attr->value.u.integer_value.side_s32;
break;
case SIDE_ATTR_TYPE_S64:
- val = attr->value.u.side_s64;
+ val = attr->value.u.integer_value.side_s64;
break;
default:
fprintf(stderr, "Unexpected attribute type\n");
printf("%s", attr->value.u.side_bool ? "true" : "false");
break;
case SIDE_ATTR_TYPE_U8:
- printf("%" PRIu8, attr->value.u.side_u8);
+ printf("%" PRIu8, attr->value.u.integer_value.side_u8);
break;
case SIDE_ATTR_TYPE_U16:
- printf("%" PRIu16, attr->value.u.side_u16);
+ printf("%" PRIu16, attr->value.u.integer_value.side_u16);
break;
case SIDE_ATTR_TYPE_U32:
- printf("%" PRIu32, attr->value.u.side_u32);
+ printf("%" PRIu32, attr->value.u.integer_value.side_u32);
break;
case SIDE_ATTR_TYPE_U64:
- printf("%" PRIu64, attr->value.u.side_u64);
+ printf("%" PRIu64, attr->value.u.integer_value.side_u64);
break;
case SIDE_ATTR_TYPE_S8:
- printf("%" PRId8, attr->value.u.side_s8);
+ printf("%" PRId8, attr->value.u.integer_value.side_s8);
break;
case SIDE_ATTR_TYPE_S16:
- printf("%" PRId16, attr->value.u.side_s16);
+ printf("%" PRId16, attr->value.u.integer_value.side_s16);
break;
case SIDE_ATTR_TYPE_S32:
- printf("%" PRId32, attr->value.u.side_s32);
+ printf("%" PRId32, attr->value.u.integer_value.side_s32);
break;
case SIDE_ATTR_TYPE_S64:
- printf("%" PRId64, attr->value.u.side_s64);
+ printf("%" PRId64, attr->value.u.integer_value.side_s64);
break;
case SIDE_ATTR_TYPE_POINTER32:
- printf("0x%" PRIx32, attr->value.u.side_u32);
+ printf("0x%" PRIx32, attr->value.u.integer_value.side_u32);
break;
case SIDE_ATTR_TYPE_POINTER64:
- printf("0x%" PRIx64, attr->value.u.side_u64);
+ printf("0x%" PRIx64, attr->value.u.integer_value.side_u64);
break;
case SIDE_ATTR_TYPE_FLOAT_BINARY16:
#if __HAVE_FLOAT16
}
switch (item->type) {
case SIDE_TYPE_U8:
- value = (int64_t) item->u.side_u8;
+ value = (int64_t) item->u.integer_value.side_u8;
break;
case SIDE_TYPE_U16:
{
uint16_t v;
- v = item->u.side_u16;
+ v = item->u.integer_value.side_u16;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_16(v);
value = (int64_t) v;
{
uint32_t v;
- v = item->u.side_u32;
+ v = item->u.integer_value.side_u32;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_32(v);
value = (int64_t) v;
{
uint64_t v;
- v = item->u.side_u64;
+ v = item->u.integer_value.side_u64;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_64(v);
value = (int64_t) v;
break;
}
case SIDE_TYPE_S8:
- value = (int64_t) item->u.side_s8;
+ value = (int64_t) item->u.integer_value.side_s8;
break;
case SIDE_TYPE_S16:
{
int16_t v;
- v = item->u.side_s16;
+ v = item->u.integer_value.side_s16;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_16(v);
value = (int64_t) v;
{
int32_t v;
- v = item->u.side_s32;
+ v = item->u.integer_value.side_s32;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_32(v);
value = (int64_t) v;
{
int64_t v;
- v = item->u.side_s64;
+ v = item->u.integer_value.side_s64;
if (type_to_host_reverse_bo(elem_type))
v = side_bswap_64(v);
value = v;
switch (stride_bit) {
case 8:
{
- uint8_t v = array_item[bit / 8].u.side_u8;
+ uint8_t v = array_item[bit / 8].u.integer_value.side_u8;
if (v & (1ULL << (bit % 8))) {
match = true;
goto match;
}
case 16:
{
- uint16_t v = array_item[bit / 16].u.side_u16;
+ uint16_t v = array_item[bit / 16].u.integer_value.side_u16;
if (reverse_byte_order)
v = side_bswap_16(v);
if (v & (1ULL << (bit % 16))) {
}
case 32:
{
- uint32_t v = array_item[bit / 32].u.side_u32;
+ uint32_t v = array_item[bit / 32].u.integer_value.side_u32;
if (reverse_byte_order)
v = side_bswap_32(v);
if (v & (1ULL << (bit % 32))) {
}
case 64:
{
- uint64_t v = array_item[bit / 64].u.side_u64;
+ uint64_t v = array_item[bit / 64].u.integer_value.side_u64;
if (reverse_byte_order)
v = side_bswap_64(v);
if (v & (1ULL << (bit % 64))) {
type_desc->u.side_integer.nr_attr);
switch (type) {
case SIDE_TYPE_U8:
- v.v_unsigned = item->u.side_u8;
+ v.v_unsigned = item->u.integer_value.side_u8;
break;
case SIDE_TYPE_U16:
{
uint16_t side_u16;
- side_u16 = item->u.side_u16;
+ side_u16 = item->u.integer_value.side_u16;
if (type_to_host_reverse_bo(type_desc))
side_u16 = side_bswap_16(side_u16);
v.v_unsigned = side_u16;
{
uint32_t side_u32;
- side_u32 = item->u.side_u32;
+ side_u32 = item->u.integer_value.side_u32;
if (type_to_host_reverse_bo(type_desc))
side_u32 = side_bswap_32(side_u32);
v.v_unsigned = side_u32;
{
uint64_t side_u64;
- side_u64 = item->u.side_u64;
+ side_u64 = item->u.integer_value.side_u64;
if (type_to_host_reverse_bo(type_desc))
side_u64 = side_bswap_64(side_u64);
v.v_unsigned = side_u64;
break;
}
case SIDE_TYPE_S8:
- v.v_signed = item->u.side_s8;
+ v.v_signed = item->u.integer_value.side_s8;
break;
case SIDE_TYPE_S16:
{
int16_t side_s16;
- side_s16 = item->u.side_s16;
+ side_s16 = item->u.integer_value.side_s16;
if (type_to_host_reverse_bo(type_desc))
side_s16 = side_bswap_16(side_s16);
v.v_unsigned = side_s16;
{
int32_t side_s32;
- side_s32 = item->u.side_s32;
+ side_s32 = item->u.integer_value.side_s32;
if (type_to_host_reverse_bo(type_desc))
side_s32 = side_bswap_32(side_s32);
v.v_unsigned = side_s32;
{
int64_t side_s64;
- side_s64 = item->u.side_s64;
+ side_s64 = item->u.integer_value.side_s64;
if (type_to_host_reverse_bo(type_desc))
side_s64 = side_bswap_64(side_s64);
v.v_unsigned = side_s64;
{
uint32_t v;
- v = item->u.side_u32;
+ v = item->u.integer_value.side_u32;
if (type_to_host_reverse_bo(type_desc))
v = side_bswap_32(v);
tracer_print_basic_type_header(type_desc);
{
uint64_t v;
- v = item->u.side_u64;
+ v = item->u.integer_value.side_u64;
if (type_to_host_reverse_bo(type_desc))
v = side_bswap_64(v);
tracer_print_basic_type_header(type_desc);
switch (side_type) {
case SIDE_TYPE_U8:
- sav_elem.u.side_u8 = ((const uint8_t *) p)[i];
+ sav_elem.u.integer_value.side_u8 = ((const uint8_t *) p)[i];
break;
case SIDE_TYPE_S8:
- sav_elem.u.side_s8 = ((const int8_t *) p)[i];
+ sav_elem.u.integer_value.side_s8 = ((const int8_t *) p)[i];
break;
case SIDE_TYPE_U16:
- sav_elem.u.side_u16 = ((const uint16_t *) p)[i];
+ sav_elem.u.integer_value.side_u16 = ((const uint16_t *) p)[i];
break;
case SIDE_TYPE_S16:
- sav_elem.u.side_s16 = ((const int16_t *) p)[i];
+ sav_elem.u.integer_value.side_s16 = ((const int16_t *) p)[i];
break;
case SIDE_TYPE_U32:
- sav_elem.u.side_u32 = ((const uint32_t *) p)[i];
+ sav_elem.u.integer_value.side_u32 = ((const uint32_t *) p)[i];
break;
case SIDE_TYPE_S32:
- sav_elem.u.side_s32 = ((const int32_t *) p)[i];
+ sav_elem.u.integer_value.side_s32 = ((const int32_t *) p)[i];
break;
case SIDE_TYPE_U64:
- sav_elem.u.side_u64 = ((const uint64_t *) p)[i];
+ sav_elem.u.integer_value.side_u64 = ((const uint64_t *) p)[i];
break;
case SIDE_TYPE_S64:
- sav_elem.u.side_s64 = ((const int64_t *) p)[i];
+ sav_elem.u.integer_value.side_s64 = ((const int64_t *) p)[i];
break;
case SIDE_TYPE_BYTE:
sav_elem.u.side_byte = ((const uint8_t *) p)[i];
break;
case SIDE_TYPE_POINTER32:
- sav_elem.u.side_u32 = ((const uint32_t *) p)[i];
+ sav_elem.u.integer_value.side_u32 = ((const uint32_t *) p)[i];
break;
case SIDE_TYPE_POINTER64:
- sav_elem.u.side_u64 = ((const uint64_t *) p)[i];
+ sav_elem.u.integer_value.side_u64 = ((const uint64_t *) p)[i];
break;
default:
switch (side_type) {
case SIDE_TYPE_U8:
- sav_elem.u.side_u8 = ((const uint8_t *) p)[i];
+ sav_elem.u.integer_value.side_u8 = ((const uint8_t *) p)[i];
break;
case SIDE_TYPE_S8:
- sav_elem.u.side_s8 = ((const int8_t *) p)[i];
+ sav_elem.u.integer_value.side_s8 = ((const int8_t *) p)[i];
break;
case SIDE_TYPE_U16:
- sav_elem.u.side_u16 = ((const uint16_t *) p)[i];
+ sav_elem.u.integer_value.side_u16 = ((const uint16_t *) p)[i];
break;
case SIDE_TYPE_S16:
- sav_elem.u.side_s16 = ((const int16_t *) p)[i];
+ sav_elem.u.integer_value.side_s16 = ((const int16_t *) p)[i];
break;
case SIDE_TYPE_U32:
- sav_elem.u.side_u32 = ((const uint32_t *) p)[i];
+ sav_elem.u.integer_value.side_u32 = ((const uint32_t *) p)[i];
break;
case SIDE_TYPE_S32:
- sav_elem.u.side_s32 = ((const int32_t *) p)[i];
+ sav_elem.u.integer_value.side_s32 = ((const int32_t *) p)[i];
break;
case SIDE_TYPE_U64:
- sav_elem.u.side_u64 = ((const uint64_t *) p)[i];
+ sav_elem.u.integer_value.side_u64 = ((const uint64_t *) p)[i];
break;
case SIDE_TYPE_S64:
- sav_elem.u.side_s64 = ((const int64_t *) p)[i];
+ sav_elem.u.integer_value.side_s64 = ((const int64_t *) p)[i];
break;
case SIDE_TYPE_BYTE:
sav_elem.u.side_byte = ((const uint8_t *) p)[i];
break;
case SIDE_TYPE_POINTER32:
- sav_elem.u.side_u32 = ((const uint32_t *) p)[i];
+ sav_elem.u.integer_value.side_u32 = ((const uint32_t *) p)[i];
break;
case SIDE_TYPE_POINTER64:
- sav_elem.u.side_u64 = ((const uint64_t *) p)[i];
+ sav_elem.u.integer_value.side_u64 = ((const uint64_t *) p)[i];
break;
default:
{
uint8_t v;
- v = item->u.side_basic.u.side_u8;
+ v = item->u.side_basic.u.integer_value.side_u8;
tracer_print_dynamic_basic_type_header(item);
switch (base) {
case TRACER_DISPLAY_BASE_2:
{
uint16_t v;
- v = item->u.side_basic.u.side_u16;
+ v = item->u.side_basic.u.integer_value.side_u16;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_16(v);
tracer_print_dynamic_basic_type_header(item);
{
uint32_t v;
- v = item->u.side_basic.u.side_u32;
+ v = item->u.side_basic.u.integer_value.side_u32;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_32(v);
tracer_print_dynamic_basic_type_header(item);
{
uint64_t v;
- v = item->u.side_basic.u.side_u64;
+ v = item->u.side_basic.u.integer_value.side_u64;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_64(v);
tracer_print_dynamic_basic_type_header(item);
{
int8_t v;
- v = item->u.side_basic.u.side_s8;
+ v = item->u.side_basic.u.integer_value.side_s8;
tracer_print_dynamic_basic_type_header(item);
switch (base) {
case TRACER_DISPLAY_BASE_2:
{
int16_t v;
- v = item->u.side_basic.u.side_u16;
+ v = item->u.side_basic.u.integer_value.side_u16;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_16(v);
tracer_print_dynamic_basic_type_header(item);
{
int32_t v;
- v = item->u.side_basic.u.side_u32;
+ v = item->u.side_basic.u.integer_value.side_u32;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_32(v);
tracer_print_dynamic_basic_type_header(item);
{
int64_t v;
- v = item->u.side_basic.u.side_u64;
+ v = item->u.side_basic.u.integer_value.side_u64;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_64(v);
tracer_print_dynamic_basic_type_header(item);
{
uint32_t v;
- v = item->u.side_basic.u.side_u32;
+ v = item->u.side_basic.u.integer_value.side_u32;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_32(v);
tracer_print_dynamic_basic_type_header(item);
{
uint64_t v;
- v = item->u.side_basic.u.side_u64;
+ v = item->u.side_basic.u.integer_value.side_u64;
if (dynamic_type_to_host_reverse_bo(item))
v = side_bswap_64(v);
tracer_print_dynamic_basic_type_header(item);