[0] = {
.name = "unknown",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(emptyfields),
.u.struct_nestable.fields = emptyfields,
.u.struct_nestable.alignment = 0,
[1] = {
.name = "tcp",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(tcpfields),
.u.struct_nestable.fields = tcpfields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "udp",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(udpfields),
.u.struct_nestable.fields = udpfields,
.u.struct_nestable.alignment = 0,
[3] = {
.name = "icmp",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(icmpfields),
.u.struct_nestable.fields = icmpfields,
.u.struct_nestable.alignment = 0,
[7] = {
.name = "protocol",
.type = {
- .atype = atype_enum_nestable,
+ .type = lttng_kernel_type_enum_nestable,
.u.enum_nestable.desc =
&proto_transport_header_type,
.u.enum_nestable.container_type =
[9] = {
.name = "saddr",
.type = {
- .atype = atype_array_nestable,
+ .type = lttng_kernel_type_array_nestable,
.u.array_nestable.elem_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
__type_integer(uint8_t, 0, 0, 0,
[10] = {
.name = "daddr",
.type = {
- .atype = atype_array_nestable,
+ .type = lttng_kernel_type_array_nestable,
.u.array_nestable.elem_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
__type_integer(uint8_t, 0, 0, 0,
[11] = {
.name = "transport_header_type",
.type = {
- .atype = atype_enum_nestable,
+ .type = lttng_kernel_type_enum_nestable,
.u.enum_nestable.desc = &transport_header_type,
.u.enum_nestable.container_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
[12] = {
.name = "transport_header",
.type = {
- .atype = atype_variant_nestable,
+ .type = lttng_kernel_type_variant_nestable,
.u.variant_nestable.tag_name = "transport_header_type",
.u.variant_nestable.choices = transport_fields,
.u.variant_nestable.nr_choices = ARRAY_SIZE(transport_fields),
[2] = {
.name = "flow_lbl",
.type = {
- .atype = atype_array_nestable,
+ .type = lttng_kernel_type_array_nestable,
.u.array_nestable.elem_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
__type_integer(uint8_t, 0, 0, 0,
[4] = {
.name = "nexthdr",
.type = {
- .atype = atype_enum_nestable,
+ .type = lttng_kernel_type_enum_nestable,
.u.enum_nestable.desc =
&proto_transport_header_type,
.u.enum_nestable.container_type =
[6] = {
.name = "saddr",
.type = {
- .atype = atype_array_nestable,
+ .type = lttng_kernel_type_array_nestable,
.u.array_nestable.elem_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
__type_integer(uint16_t, 0, 0, 0,
[7] = {
.name = "daddr",
.type = {
- .atype = atype_array_nestable,
+ .type = lttng_kernel_type_array_nestable,
.u.array_nestable.elem_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
__type_integer(uint16_t, 0, 0, 0,
[8] = {
.name = "transport_header_type",
.type = {
- .atype = atype_enum_nestable,
+ .type = lttng_kernel_type_enum_nestable,
.u.enum_nestable.desc = &transport_header_type,
.u.enum_nestable.container_type =
__LTTNG_COMPOUND_LITERAL(struct lttng_type,
[9] = {
.name = "transport_header",
.type = {
- .atype = atype_variant_nestable,
+ .type = lttng_kernel_type_variant_nestable,
.u.variant_nestable.tag_name = "transport_header_type",
.u.variant_nestable.choices = transport_fields,
.u.variant_nestable.nr_choices = ARRAY_SIZE(transport_fields),
[0] = {
.name = "unknown",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = 0,
.u.struct_nestable.fields = emptyfields,
.u.struct_nestable.alignment = 0,
[1] = {
.name = "ipv4",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(ipv4fields),
.u.struct_nestable.fields = ipv4fields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "ipv6",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(ipv6fields),
.u.struct_nestable.fields = ipv6fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_variant_nestable,
+ .type = lttng_kernel_type_variant_nestable,
.u.variant_nestable.tag_name = "network_header_type",
.u.variant_nestable.choices = network_fields,
.u.variant_nestable.nr_choices =
{ \
.name = "type", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_mmap_flags_mapping_type, \
{ \
.name = "options", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_mmap_flags_options, \
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = 2,
.u.struct_nestable.fields =
__LTTNG_COMPOUND_LITERAL(struct lttng_event_field,
{ \
.name = "exit_signal", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_clone_exit_signal_flags, \
{ \
.name = "options", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_clone_option_flags, \
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = 2,
.u.struct_nestable.fields =
__LTTNG_COMPOUND_LITERAL(struct lttng_event_field,
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "_" #name "_length", \
.u.sequence_nestable.elem_type = __LTTNG_COMPOUND_LITERAL(struct lttng_type, \
__type_integer(uint8_t, 0, 0, 0, __BYTE_ORDER, 16, none)), \
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.elem_type = __LTTNG_COMPOUND_LITERAL(struct lttng_type, \
__type_integer(uint8_t, 0, 0, 0, __BYTE_ORDER, 16, none)), \
.u.sequence_nestable.alignment = 0, \
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_pollfd_flag_fields),
.u.struct_nestable.fields = lttng_pollfd_flag_fields,
.u.struct_nestable.alignment = 0,
};
static struct lttng_type lttng_pollfd_elem = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_pollfd_fields),
.u.struct_nestable.fields = lttng_pollfd_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "fds_length", \
.u.sequence_nestable.elem_type = <tng_pollfd_elem, \
} \
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "fds_length", \
.u.sequence_nestable.elem_type = <tng_pollfd_elem, \
} \
[0] = {
.name = "data_union",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_data_fields),
.u.struct_nestable.fields = lttng_epoll_data_fields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_ctl_events_fields),
.u.struct_nestable.fields = lttng_epoll_ctl_events_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(epoll_ctl_fields),
.u.struct_nestable.fields = epoll_ctl_fields,
.u.struct_nestable.alignment = 0,
[0] = {
.name = "data_union",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_data_fields),
.u.struct_nestable.fields = lttng_epoll_data_fields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_ctl_events_fields),
.u.struct_nestable.fields = lttng_epoll_ctl_events_fields,
.u.struct_nestable.alignment = 0,
};
static struct lttng_type lttng_epoll_wait_elem = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_wait_fields),
.u.struct_nestable.fields = lttng_epoll_wait_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = \
"fds_length", \
.u.sequence_nestable.elem_type = \
/* Type description */
-enum abstract_types {
- atype_integer,
- atype_string,
- atype_enum_nestable,
- atype_array_nestable,
- atype_sequence_nestable,
- atype_struct_nestable,
- atype_variant_nestable,
- NR_ABSTRACT_TYPES,
+enum lttng_kernel_type {
+ lttng_kernel_type_integer,
+ lttng_kernel_type_string,
+ lttng_kernel_type_enum_nestable,
+ lttng_kernel_type_array_nestable,
+ lttng_kernel_type_sequence_nestable,
+ lttng_kernel_type_struct_nestable,
+ lttng_kernel_type_variant_nestable,
+ NR_LTTNG_KERNEL_TYPES,
};
enum lttng_string_encodings {
#define __type_integer(_type, _size, _alignment, _signedness, \
_byte_order, _base, _encoding) \
{ \
- .atype = atype_integer, \
+ .type = lttng_kernel_type_integer, \
.u.integer = \
{ \
.size = (_size) ? : sizeof(_type) * CHAR_BIT, \
};
struct lttng_type {
- enum abstract_types atype;
+ enum lttng_kernel_type type;
union {
struct lttng_integer_type integer;
struct {
static inline bool lttng_is_bytewise_integer(const struct lttng_type *type)
{
- if (type->atype != atype_integer)
+ if (type->type != lttng_kernel_type_integer)
return false;
switch (type->u.integer.size) {
case 8: /* Fall-through. */
.name = #_item, \
.type = \
{ \
- .atype = atype_array_nestable, \
+ .type = lttng_kernel_type_array_nestable, \
.u = \
{ \
.array_nestable = \
.name = #_item, \
.type = \
{ \
- .atype = atype_array_nestable, \
+ .type = lttng_kernel_type_array_nestable, \
.u = \
{ \
.array_nestable = \
.name = #_item, \
.type = \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u = \
{ \
.sequence_nestable = \
.name = #_item, \
.type = \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u = \
{ \
.sequence_nestable = \
.name = #_item, \
.type = \
{ \
- .atype = atype_string, \
+ .type = lttng_kernel_type_string, \
.u = \
{ \
.string = { .encoding = lttng_encode_UTF8 }, \
{ \
.name = #_item, \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_##_name, \
/* field is only used for types nested within variants. */
ptr->field = NULL;
- switch (field->type.atype) {
- case atype_integer:
+ switch (field->type.type) {
+ case lttng_kernel_type_integer:
ctx_field->get_value(ctx_field, lttng_probe_ctx, &v);
if (field->type.u.integer.signedness) {
ptr->object_type = OBJECT_TYPE_S64;
ptr->ptr = &ptr->u.u64;
}
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
{
const struct lttng_integer_type *itype =
&field->type.u.enum_nestable.container_type->u.integer;
}
break;
}
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
if (!lttng_is_bytewise_integer(field->type.u.array_nestable.elem_type)) {
printk(KERN_WARNING "LTTng: bytecode: Array nesting only supports integer types.\n");
return -EINVAL;
ctx_field->get_value(ctx_field, lttng_probe_ctx, &v);
ptr->ptr = v.str;
break;
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
if (!lttng_is_bytewise_integer(field->type.u.sequence_nestable.elem_type)) {
printk(KERN_WARNING "LTTng: bytecode: Sequence nesting only supports integer types.\n");
return -EINVAL;
ctx_field->get_value(ctx_field, lttng_probe_ctx, &v);
ptr->ptr = v.str;
break;
- case atype_string:
+ case lttng_kernel_type_string:
ptr->object_type = OBJECT_TYPE_STRING;
ctx_field->get_value(ctx_field, lttng_probe_ctx, &v);
ptr->ptr = v.str;
break;
- case atype_struct_nestable:
+ case lttng_kernel_type_struct_nestable:
printk(KERN_WARNING "LTTng: bytecode: Structure type cannot be loaded.\n");
return -EINVAL;
- case atype_variant_nestable:
+ case lttng_kernel_type_variant_nestable:
printk(KERN_WARNING "LTTng: bytecode: Variant type cannot be loaded.\n");
return -EINVAL;
default:
- printk(KERN_WARNING "LTTng: bytecode: Unknown type: %d", (int) field->type.atype);
+ printk(KERN_WARNING "LTTng: bytecode: Unknown type: %d", (int) field->type.type);
return -EINVAL;
}
return 0;
stack_top->u.ptr.ptr = ptr;
stack_top->u.ptr.object_type = gid->elem.type;
stack_top->u.ptr.rev_bo = gid->elem.rev_bo;
- BUG_ON(stack_top->u.ptr.field->type.atype != atype_array_nestable);
+ BUG_ON(stack_top->u.ptr.field->type.type != lttng_kernel_type_array_nestable);
stack_top->u.ptr.field = NULL;
break;
}
stack_top->u.ptr.ptr = ptr;
stack_top->u.ptr.object_type = gid->elem.type;
stack_top->u.ptr.rev_bo = gid->elem.rev_bo;
- BUG_ON(stack_top->u.ptr.field->type.atype != atype_sequence_nestable);
+ BUG_ON(stack_top->u.ptr.field->type.type != lttng_kernel_type_sequence_nestable);
stack_top->u.ptr.field = NULL;
break;
}
{
load->type = LOAD_OBJECT;
- switch (field->type.atype) {
- case atype_integer:
+ switch (field->type.type) {
+ case lttng_kernel_type_integer:
if (field->type.u.integer.signedness)
load->object_type = OBJECT_TYPE_S64;
else
load->object_type = OBJECT_TYPE_U64;
load->rev_bo = false;
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
{
const struct lttng_integer_type *itype =
&field->type.u.enum_nestable.container_type->u.integer;
load->rev_bo = false;
break;
}
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
if (!lttng_is_bytewise_integer(field->type.u.array_nestable.elem_type)) {
printk(KERN_WARNING "LTTng: bytecode: Array nesting only supports integer types.\n");
return -EINVAL;
}
}
break;
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
if (!lttng_is_bytewise_integer(field->type.u.sequence_nestable.elem_type)) {
printk(KERN_WARNING "LTTng: bytecode: Sequence nesting only supports integer types.\n");
return -EINVAL;
}
}
break;
- case atype_string:
+ case lttng_kernel_type_string:
load->object_type = OBJECT_TYPE_STRING;
break;
- case atype_struct_nestable:
+ case lttng_kernel_type_struct_nestable:
printk(KERN_WARNING "LTTng: bytecode: Structure type cannot be loaded.\n");
return -EINVAL;
- case atype_variant_nestable:
+ case lttng_kernel_type_variant_nestable:
printk(KERN_WARNING "LTTng: bytecode: Variant type cannot be loaded.\n");
return -EINVAL;
default:
- printk(KERN_WARNING "LTTng: bytecode: Unknown type: %d", (int) field->type.atype);
+ printk(KERN_WARNING "LTTng: bytecode: Unknown type: %d", (int) field->type.type);
return -EINVAL;
}
return 0;
break;
}
/* compute field offset on stack */
- switch (field->type.atype) {
- case atype_integer:
- case atype_enum_nestable:
+ switch (field->type.type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_enum_nestable:
field_offset += sizeof(int64_t);
break;
- case atype_array_nestable:
- case atype_sequence_nestable:
+ case lttng_kernel_type_array_nestable:
+ case lttng_kernel_type_sequence_nestable:
field_offset += sizeof(unsigned long);
field_offset += sizeof(void *);
break;
- case atype_string:
+ case lttng_kernel_type_string:
field_offset += sizeof(void *);
break;
default:
break;
}
/* compute field offset */
- switch (fields[i].type.atype) {
- case atype_integer:
- case atype_enum_nestable:
+ switch (fields[i].type.type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_enum_nestable:
field_offset += sizeof(int64_t);
break;
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
if (!lttng_is_bytewise_integer(fields[i].type.u.array_nestable.elem_type))
return -EINVAL;
field_offset += sizeof(unsigned long);
field_offset += sizeof(void *);
break;
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
if (!lttng_is_bytewise_integer(fields[i].type.u.sequence_nestable.elem_type))
return -EINVAL;
field_offset += sizeof(unsigned long);
field_offset += sizeof(void *);
break;
- case atype_string:
+ case lttng_kernel_type_string:
field_offset += sizeof(void *);
break;
- case atype_struct_nestable: /* Unsupported. */
- case atype_variant_nestable: /* Unsupported. */
+ case lttng_kernel_type_struct_nestable: /* Unsupported. */
+ case lttng_kernel_type_variant_nestable: /* Unsupported. */
default:
return -EINVAL;
}
struct field_ref *field_ref;
field_ref = (struct field_ref *) op->data;
- switch (field->type.atype) {
- case atype_integer:
- case atype_enum_nestable:
+ switch (field->type.type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_enum_nestable:
op->op = BYTECODE_OP_LOAD_FIELD_REF_S64;
break;
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
{
const struct lttng_type *elem_type = field->type.u.array_nestable.elem_type;
op->op = BYTECODE_OP_LOAD_FIELD_REF_SEQUENCE;
break;
}
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
{
const struct lttng_type *elem_type = field->type.u.sequence_nestable.elem_type;
op->op = BYTECODE_OP_LOAD_FIELD_REF_SEQUENCE;
break;
}
- case atype_string:
+ case lttng_kernel_type_string:
if (field->user)
op->op = BYTECODE_OP_LOAD_FIELD_REF_USER_STRING;
else
op->op = BYTECODE_OP_LOAD_FIELD_REF_STRING;
break;
- case atype_struct_nestable: /* Unsupported. */
- case atype_variant_nestable: /* Unsupported. */
+ case lttng_kernel_type_struct_nestable: /* Unsupported. */
+ case lttng_kernel_type_variant_nestable: /* Unsupported. */
default:
return -EINVAL;
}
struct field_ref *field_ref;
field_ref = (struct field_ref *) op->data;
- switch (ctx_field->event_field.type.atype) {
- case atype_integer:
- case atype_enum_nestable:
+ switch (ctx_field->event_field.type.type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_enum_nestable:
op->op = BYTECODE_OP_GET_CONTEXT_REF_S64;
break;
/* Sequence and array supported as string */
- case atype_string:
+ case lttng_kernel_type_string:
BUG_ON(ctx_field->event_field.user);
op->op = BYTECODE_OP_GET_CONTEXT_REF_STRING;
break;
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
{
const struct lttng_type *elem_type = ctx_field->event_field.type.u.array_nestable.elem_type;
op->op = BYTECODE_OP_GET_CONTEXT_REF_STRING;
break;
}
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
{
const struct lttng_type *elem_type = ctx_field->event_field.type.u.sequence_nestable.elem_type;
op->op = BYTECODE_OP_GET_CONTEXT_REF_STRING;
break;
}
- case atype_struct_nestable: /* Unsupported. */
- case atype_variant_nestable: /* Unsupported. */
+ case lttng_kernel_type_struct_nestable: /* Unsupported. */
+ case lttng_kernel_type_variant_nestable: /* Unsupported. */
default:
return -EINVAL;
}
field = &length_field->event_field;
field->name = ctx_length_name;
- field->type.atype = atype_integer;
+ field->type.type = lttng_kernel_type_integer;
field->type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->type.u.integer.signedness = lttng_is_signed_type(unsigned int);
field = &sequence_field->event_field;
field->name = ctx_name;
- field->type.atype = atype_sequence_nestable;
+ field->type.type = lttng_kernel_type_sequence_nestable;
field->type.u.sequence_nestable.length_name = ctx_length_name;
field->type.u.sequence_nestable.elem_type = &sequence_elem_type;
field->type.u.sequence_nestable.alignment = 0;
return -EEXIST;
}
field->event_field.name = "cgroup_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "cpu_id";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(int);
return -EEXIST;
}
field->event_field.name = "egid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "euid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
return -EEXIST;
}
field->event_field.name = "gid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "hostname";
- field->event_field.type.atype = atype_array_nestable;
+ field->event_field.type.type = lttng_kernel_type_array_nestable;
field->event_field.type.u.array_nestable.elem_type =
&hostname_array_elem_type;
field->event_field.type.u.array_nestable.length = LTTNG_HOSTNAME_CTX_LEN;
return -EEXIST;
}
field->event_field.name = "interruptible";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(int8_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(int8_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(int8_t);
return -EEXIST;
}
field->event_field.name = "ipc_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "migratable";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uint8_t);
return -EEXIST;
}
field->event_field.name = "mnt_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "need_reschedule";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uint8_t);
return -EEXIST;
}
field->event_field.name = "net_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "nice";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(int);
field->destroy = lttng_destroy_perf_counter_field;
field->event_field.name = name_alloc;
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uint64_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uint64_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uint64_t);
return -EEXIST;
}
field->event_field.name = "pid_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "pid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "ppid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "preemptible";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uint8_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uint8_t);
return -EEXIST;
}
field->event_field.name = "prio";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(int);
return -EEXIST;
}
field->event_field.name = "procname";
- field->event_field.type.atype = atype_array_nestable;
+ field->event_field.type.type = lttng_kernel_type_array_nestable;
field->event_field.type.u.array_nestable.elem_type = &procname_array_elem_type;
field->event_field.type.u.array_nestable.length = sizeof(current->comm);
field->event_field.type.u.array_nestable.alignment = 0;
return -EEXIST;
}
field->event_field.name = "sgid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "suid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
return -EEXIST;
}
field->event_field.name = "tid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "time_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "uid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
return -EEXIST;
}
field->event_field.name = "user_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "uts_ns";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(unsigned int) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(unsigned int);
return -EEXIST;
}
field->event_field.name = "vegid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "veuid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
return -EEXIST;
}
field->event_field.name = "vgid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "vpid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "vppid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "vsgid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(gid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(gid_t);
return -EEXIST;
}
field->event_field.name = "vsuid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
return -EEXIST;
}
field->event_field.name = "vtid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(pid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(pid_t);
return -EEXIST;
}
field->event_field.name = "vuid";
- field->event_field.type.atype = atype_integer;
+ field->event_field.type.type = lttng_kernel_type_integer;
field->event_field.type.u.integer.size = sizeof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.alignment = lttng_alignof(uid_t) * CHAR_BIT;
field->event_field.type.u.integer.signedness = lttng_is_signed_type(uid_t);
size_t field_align = 8;
type = &ctx->fields[i].event_field.type;
- switch (type->atype) {
- case atype_integer:
+ switch (type->type) {
+ case lttng_kernel_type_integer:
field_align = type->u.integer.alignment;
break;
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
{
const struct lttng_type *nested_type;
nested_type = type->u.array_nestable.elem_type;
- switch (nested_type->atype) {
- case atype_integer:
+ switch (nested_type->type) {
+ case lttng_kernel_type_integer:
field_align = nested_type->u.integer.alignment;
break;
- case atype_string:
+ case lttng_kernel_type_string:
break;
- case atype_array_nestable:
- case atype_sequence_nestable:
- case atype_struct_nestable:
- case atype_variant_nestable:
+ case lttng_kernel_type_array_nestable:
+ case lttng_kernel_type_sequence_nestable:
+ case lttng_kernel_type_struct_nestable:
+ case lttng_kernel_type_variant_nestable:
default:
WARN_ON_ONCE(1);
break;
type->u.array_nestable.alignment);
break;
}
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
{
const struct lttng_type *nested_type;
nested_type = type->u.sequence_nestable.elem_type;
- switch (nested_type->atype) {
- case atype_integer:
+ switch (nested_type->type) {
+ case lttng_kernel_type_integer:
field_align = nested_type->u.integer.alignment;
break;
- case atype_string:
+ case lttng_kernel_type_string:
break;
- case atype_array_nestable:
- case atype_sequence_nestable:
- case atype_struct_nestable:
- case atype_variant_nestable:
+ case lttng_kernel_type_array_nestable:
+ case lttng_kernel_type_sequence_nestable:
+ case lttng_kernel_type_struct_nestable:
+ case lttng_kernel_type_variant_nestable:
default:
WARN_ON_ONCE(1);
break;
type->u.sequence_nestable.alignment);
break;
}
- case atype_string:
+ case lttng_kernel_type_string:
break;
- case atype_struct_nestable:
- case atype_variant_nestable:
+ case lttng_kernel_type_struct_nestable:
+ case lttng_kernel_type_variant_nestable:
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
default:
WARN_ON_ONCE(1);
break;
ptr = (uint8_t *) output->u.sequence.ptr;
nested_type = output->u.sequence.nested_type;
- switch (nested_type->atype) {
- case atype_integer:
+ switch (nested_type->type) {
+ case lttng_kernel_type_integer:
integer_type = &nested_type->u.integer;
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
/* Treat enumeration as an integer. */
integer_type = &nested_type->u.enum_nestable.container_type->u.integer;
break;
{
int ret;
- WARN_ON_ONCE(type->atype != atype_integer);
+ WARN_ON_ONCE(type->type != lttng_kernel_type_integer);
ret = print_tabs(session, nesting);
if (ret)
return ret;
uint32_t i, nr_fields;
unsigned int alignment;
- WARN_ON_ONCE(type->atype != atype_struct_nestable);
+ WARN_ON_ONCE(type->type != lttng_kernel_type_struct_nestable);
ret = print_tabs(session, nesting);
if (ret)
int ret;
uint32_t i, nr_choices;
- WARN_ON_ONCE(type->atype != atype_variant_nestable);
+ WARN_ON_ONCE(type->type != lttng_kernel_type_variant_nestable);
/*
* CTF 1.8 does not allow expressing nonzero variant alignment in a nestable way.
*/
int ret;
const struct lttng_type *elem_type;
- WARN_ON_ONCE(field->type.atype != atype_array_nestable);
+ WARN_ON_ONCE(field->type.type != lttng_kernel_type_array_nestable);
if (field->type.u.array_nestable.alignment) {
ret = print_tabs(session, nesting);
* currently supported.
*/
elem_type = field->type.u.array_nestable.elem_type;
- switch (elem_type->atype) {
- case atype_integer:
- case atype_struct_nestable:
- case atype_variant_nestable:
+ switch (elem_type->type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_struct_nestable:
+ case lttng_kernel_type_variant_nestable:
ret = _lttng_type_statedump(session, elem_type, nesting);
if (ret)
return ret;
const char *length_name;
const struct lttng_type *elem_type;
- WARN_ON_ONCE(field->type.atype != atype_sequence_nestable);
+ WARN_ON_ONCE(field->type.type != lttng_kernel_type_sequence_nestable);
length_name = field->type.u.sequence_nestable.length_name;
* currently supported.
*/
elem_type = field->type.u.sequence_nestable.elem_type;
- switch (elem_type->atype) {
- case atype_integer:
- case atype_struct_nestable:
- case atype_variant_nestable:
+ switch (elem_type->type) {
+ case lttng_kernel_type_integer:
+ case lttng_kernel_type_struct_nestable:
+ case lttng_kernel_type_variant_nestable:
ret = _lttng_type_statedump(session, elem_type, nesting);
if (ret)
return ret;
unsigned int i, nr_entries;
container_type = type->u.enum_nestable.container_type;
- if (container_type->atype != atype_integer) {
+ if (container_type->type != lttng_kernel_type_integer) {
ret = -EINVAL;
goto end;
}
{
int ret;
- WARN_ON_ONCE(type->atype != atype_string);
+ WARN_ON_ONCE(type->type != lttng_kernel_type_string);
/* Default encoding is UTF8 */
ret = print_tabs(session, nesting);
if (ret)
{
int ret;
- WARN_ON_ONCE(field->type.atype != atype_string);
+ WARN_ON_ONCE(field->type.type != lttng_kernel_type_string);
ret = _lttng_string_type_statedump(session, &field->type, nesting);
if (ret)
return ret;
{
int ret = 0;
- switch (type->atype) {
- case atype_integer:
+ switch (type->type) {
+ case lttng_kernel_type_integer:
ret = _lttng_integer_type_statedump(session, type, nesting);
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
ret = _lttng_enum_type_statedump(session, type, nesting);
break;
- case atype_string:
+ case lttng_kernel_type_string:
ret = _lttng_string_type_statedump(session, type, nesting);
break;
- case atype_struct_nestable:
+ case lttng_kernel_type_struct_nestable:
ret = _lttng_struct_type_statedump(session, type, nesting);
break;
- case atype_variant_nestable:
+ case lttng_kernel_type_variant_nestable:
ret = _lttng_variant_type_statedump(session, type, nesting);
break;
/* Nested arrays and sequences are not supported yet. */
- case atype_array_nestable:
- case atype_sequence_nestable:
+ case lttng_kernel_type_array_nestable:
+ case lttng_kernel_type_sequence_nestable:
default:
WARN_ON_ONCE(1);
return -EINVAL;
{
int ret = 0;
- switch (field->type.atype) {
- case atype_integer:
+ switch (field->type.type) {
+ case lttng_kernel_type_integer:
ret = _lttng_integer_field_statedump(session, field, nesting);
break;
- case atype_enum_nestable:
+ case lttng_kernel_type_enum_nestable:
ret = _lttng_enum_field_statedump(session, field, nesting);
break;
- case atype_string:
+ case lttng_kernel_type_string:
ret = _lttng_string_field_statedump(session, field, nesting);
break;
- case atype_struct_nestable:
+ case lttng_kernel_type_struct_nestable:
ret = _lttng_struct_field_statedump(session, field, nesting);
break;
- case atype_array_nestable:
+ case lttng_kernel_type_array_nestable:
ret = _lttng_array_field_statedump(session, field, nesting);
break;
- case atype_sequence_nestable:
+ case lttng_kernel_type_sequence_nestable:
ret = _lttng_sequence_field_statedump(session, field, nesting);
break;
- case atype_variant_nestable:
+ case lttng_kernel_type_variant_nestable:
ret = _lttng_variant_field_statedump(session, field, nesting);
break;
goto error_field;
}
field->name = "ip";
- field->type.atype = atype_integer;
+ field->type.type = lttng_kernel_type_integer;
field->type.u.integer.size = sizeof(unsigned long) * CHAR_BIT;
field->type.u.integer.alignment = lttng_alignof(unsigned long) * CHAR_BIT;
field->type.u.integer.signedness = lttng_is_signed_type(unsigned long);
goto error_fields;
}
fields[0].name = "ip";
- fields[0].type.atype = atype_integer;
+ fields[0].type.type = lttng_kernel_type_integer;
fields[0].type.u.integer.size = sizeof(unsigned long) * CHAR_BIT;
fields[0].type.u.integer.alignment = lttng_alignof(unsigned long) * CHAR_BIT;
fields[0].type.u.integer.signedness = lttng_is_signed_type(unsigned long);
fields[0].type.u.integer.encoding = lttng_encode_none;
fields[1].name = "parent_ip";
- fields[1].type.atype = atype_integer;
+ fields[1].type.type = lttng_kernel_type_integer;
fields[1].type.u.integer.size = sizeof(unsigned long) * CHAR_BIT;
fields[1].type.u.integer.alignment = lttng_alignof(unsigned long) * CHAR_BIT;
fields[1].type.u.integer.signedness = lttng_is_signed_type(unsigned long);
goto error_fields;
}
fields[0].name = "ip";
- fields[0].type.atype = atype_integer;
+ fields[0].type.type = lttng_kernel_type_integer;
fields[0].type.u.integer.size = sizeof(unsigned long) * CHAR_BIT;
fields[0].type.u.integer.alignment = lttng_alignof(unsigned long) * CHAR_BIT;
fields[0].type.u.integer.signedness = lttng_is_signed_type(unsigned long);