fix: pthread_setname_np tests to match compat behavior
[lttng-ust.git] / tests / ust-variant / ust-variant.c
index 3d97c1a30f6d46f771b8b05fe73f77e0885a918a..9a449fd4ed1f22b0c999c26598a017f5157cfb1a 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <stdint.h>
 #include <stdio.h>
-#include <unistd.h>
 #include <string.h>
+#include <unistd.h>
 
 /* Internal UST API: ust-variant.h */
 #include <lttng/ust-variant.h>
@@ -127,23 +128,18 @@ static void __event_probe__myprobe___myevent(void * __tp_data)
 static const struct lttng_event_field myfields[] = {
        [0] = {
                .name = "mytag",
-               .type.atype = atype_enum,
-               .type.u.basic.enumeration.desc = &myenum_desc,
-               .type.u.basic.enumeration.container_type = {
-                       .size = sizeof(char) * CHAR_BIT,
-                       .alignment = lttng_alignof(char) * CHAR_BIT,
-                       .signedness = lttng_is_signed_type(char),
-                       .reverse_byte_order = 0,
-                       .base = 10,
-                       .encoding = lttng_encode_none,
-               },
+               .type.atype = atype_enum_nestable,
+               .type.u.enum_nestable.desc = &myenum_desc,
+               .type.u.enum_nestable.container_type =
+                       __LTTNG_COMPOUND_LITERAL(struct lttng_type,
+                                       __type_integer(char, BYTE_ORDER, 10, none)),
                .nowrite = 0,
        },
        [1] = {
                .name = "myfield",
                .type = {
-                       .atype = atype_variant,
-                       .u.variant = &myvariant,
+                       .atype = atype_variant_nestable,
+                       .u.variant_nestable = &myvariant,
                },
                .nowrite = 0,
        },
This page took 0.024218 seconds and 4 git commands to generate.