X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-ip.c;h=3e7885e13c9ea0b830f395622de1b7e6d70c758f;hb=9f47aac89a87197f5f1ea18acdc160087ac58397;hp=fb9229543194d91b6df66a36e447fa4bb59fb314;hpb=3fbec7dc3645facd9e809cf161ba3435a377ce56;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-ip.c b/liblttng-ust/lttng-context-ip.c index fb922954..3e7885e1 100644 --- a/liblttng-ust/lttng-context-ip.c +++ b/liblttng-ust/lttng-context-ip.c @@ -21,6 +21,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -62,12 +63,12 @@ int lttng_add_ip_to_ctx(struct lttng_ctx **ctx) } field->event_field.name = "ip"; field->event_field.type.atype = atype_integer; - field->event_field.type.u.basic.integer.size = sizeof(void *) * CHAR_BIT; - field->event_field.type.u.basic.integer.alignment = lttng_alignof(void *) * CHAR_BIT; - field->event_field.type.u.basic.integer.signedness = lttng_is_signed_type(void *); - field->event_field.type.u.basic.integer.reverse_byte_order = 0; - field->event_field.type.u.basic.integer.base = 16; - field->event_field.type.u.basic.integer.encoding = lttng_encode_none; + field->event_field.type.u.integer.size = sizeof(void *) * CHAR_BIT; + field->event_field.type.u.integer.alignment = lttng_alignof(void *) * CHAR_BIT; + field->event_field.type.u.integer.signedness = lttng_is_signed_type(void *); + field->event_field.type.u.integer.reverse_byte_order = 0; + field->event_field.type.u.integer.base = 16; + field->event_field.type.u.integer.encoding = lttng_encode_none; field->get_size = ip_get_size; field->record = ip_record; lttng_context_update(*ctx);