Cleanup: Rename abstract types to lttng_kernel_type
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Apr 2021 17:40:46 +0000 (13:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 14 Apr 2021 20:38:35 +0000 (16:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Iac1810c9d9830d80109fe72b1965b7b7cf663207

51 files changed:
include/instrumentation/events/net.h
include/instrumentation/syscalls/headers/syscalls_integers_override.h
include/instrumentation/syscalls/headers/syscalls_pointers_override.h
include/lttng/events.h
include/lttng/tracepoint-event-impl.h
src/lttng-bytecode-interpreter.c
src/lttng-bytecode-specialize.c
src/lttng-bytecode.c
src/lttng-context-callstack.c
src/lttng-context-cgroup-ns.c
src/lttng-context-cpu-id.c
src/lttng-context-egid.c
src/lttng-context-euid.c
src/lttng-context-gid.c
src/lttng-context-hostname.c
src/lttng-context-interruptible.c
src/lttng-context-ipc-ns.c
src/lttng-context-migratable.c
src/lttng-context-mnt-ns.c
src/lttng-context-need-reschedule.c
src/lttng-context-net-ns.c
src/lttng-context-nice.c
src/lttng-context-perf-counters.c
src/lttng-context-pid-ns.c
src/lttng-context-pid.c
src/lttng-context-ppid.c
src/lttng-context-preemptible.c
src/lttng-context-prio.c
src/lttng-context-procname.c
src/lttng-context-sgid.c
src/lttng-context-suid.c
src/lttng-context-tid.c
src/lttng-context-time-ns.c
src/lttng-context-uid.c
src/lttng-context-user-ns.c
src/lttng-context-uts-ns.c
src/lttng-context-vegid.c
src/lttng-context-veuid.c
src/lttng-context-vgid.c
src/lttng-context-vpid.c
src/lttng-context-vppid.c
src/lttng-context-vsgid.c
src/lttng-context-vsuid.c
src/lttng-context-vtid.c
src/lttng-context-vuid.c
src/lttng-context.c
src/lttng-event-notifier-notification.c
src/lttng-events.c
src/probes/lttng-kprobes.c
src/probes/lttng-kretprobes.c
src/probes/lttng-uprobes.c

index 6fbe86f86b581ab3067eeeab61a9d2025495138d..d0227423339b3cf2b3a9458e48ad69cbe548f1da 100644 (file)
@@ -138,7 +138,7 @@ static struct lttng_event_field transport_fields[] = {
        [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,
@@ -148,7 +148,7 @@ static struct lttng_event_field transport_fields[] = {
        [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,
@@ -158,7 +158,7 @@ static struct lttng_event_field transport_fields[] = {
        [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,
@@ -168,7 +168,7 @@ static struct lttng_event_field transport_fields[] = {
        [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,
@@ -349,7 +349,7 @@ static struct lttng_event_field ipv4fields[] = {
        [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 =
@@ -366,7 +366,7 @@ static struct lttng_event_field ipv4fields[] = {
        [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,
@@ -378,7 +378,7 @@ static struct lttng_event_field ipv4fields[] = {
        [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,
@@ -390,7 +390,7 @@ static struct lttng_event_field ipv4fields[] = {
        [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,
@@ -401,7 +401,7 @@ static struct lttng_event_field ipv4fields[] = {
        [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),
@@ -424,7 +424,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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,
@@ -441,7 +441,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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 =
@@ -458,7 +458,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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,
@@ -470,7 +470,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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,
@@ -482,7 +482,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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,
@@ -493,7 +493,7 @@ static struct lttng_event_field ipv6fields[] = {
        [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),
@@ -506,7 +506,7 @@ static struct lttng_event_field network_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,
@@ -515,7 +515,7 @@ static struct lttng_event_field network_fields[] = {
        [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,
@@ -524,7 +524,7 @@ static struct lttng_event_field network_fields[] = {
        [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,
@@ -592,7 +592,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(net_dev_template,
                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 =
index 84e204902025eff750441c95391d092305738aca..4a61a5c7f2197c1e50034685feef2b2b169b1077 100644 (file)
@@ -91,7 +91,7 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_mmap_flags_options,
 {                                                                      \
        .name = "type",                                                 \
        .type = {                                                       \
-               .atype = atype_enum_nestable,                           \
+               .type = lttng_kernel_type_enum_nestable,                                \
                .u = {                                                  \
                        .enum_nestable = {                              \
                                .desc = &__enum_lttng_mmap_flags_mapping_type,          \
@@ -107,7 +107,7 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_mmap_flags_options,
 {                                                                      \
        .name = "options",                                              \
        .type = {                                                       \
-               .atype = atype_enum_nestable,                           \
+               .type = lttng_kernel_type_enum_nestable,                                \
                .u = {                                                  \
                        .enum_nestable = {                              \
                                .desc = &__enum_lttng_mmap_flags_options,           \
@@ -150,7 +150,7 @@ SC_LTTNG_TRACEPOINT_EVENT(mmap,
                        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,
index 8b8be95ae523d8e45257fc78f1b07f5a53811397..0dbdd82b9dbe4d2d7d7807fb580efed19ba71402 100644 (file)
@@ -120,7 +120,7 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_clone_option_flags,
 {                                                                      \
        .name = "exit_signal",                                          \
        .type = {                                                       \
-               .atype = atype_enum_nestable,                           \
+               .type = lttng_kernel_type_enum_nestable,                                \
                .u = {                                                  \
                        .enum_nestable = {                              \
                                .desc = &__enum_lttng_clone_exit_signal_flags,          \
@@ -137,7 +137,7 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_clone_option_flags,
 {                                                                      \
        .name = "options",                                              \
        .type = {                                                       \
-               .atype = atype_enum_nestable,                           \
+               .type = lttng_kernel_type_enum_nestable,                                \
                .u = {                                                  \
                        .enum_nestable = {                              \
                                .desc = &__enum_lttng_clone_option_flags,               \
@@ -175,7 +175,7 @@ SC_LTTNG_TRACEPOINT_EVENT(clone,
                        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,
@@ -331,7 +331,7 @@ end:        ; /* Label at end of compound statement. */                                     \
        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)),      \
@@ -379,7 +379,7 @@ end:        ; /* Label at end of compound statement. */                                     \
        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,                                     \
@@ -540,7 +540,7 @@ static struct lttng_event_field lttng_pollfd_fields[] = {
        [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,
@@ -549,7 +549,7 @@ static struct lttng_event_field lttng_pollfd_fields[] = {
 };
 
 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,
@@ -622,7 +622,7 @@ end:                                                                                        \
                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 = &lttng_pollfd_elem,    \
                                }                                                               \
@@ -645,7 +645,7 @@ end:                                                                                        \
                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 = &lttng_pollfd_elem,    \
                                }                                                               \
@@ -812,7 +812,7 @@ static struct lttng_event_field epoll_ctl_fields[] = {
        [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,
@@ -825,7 +825,7 @@ static struct lttng_event_field epoll_ctl_fields[] = {
        [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,
@@ -858,7 +858,7 @@ SC_LTTNG_TRACEPOINT_EVENT_CODE(epoll_ctl,
                        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,
@@ -895,7 +895,7 @@ static struct lttng_event_field lttng_epoll_wait_fields[] = {
        [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,
@@ -908,7 +908,7 @@ static struct lttng_event_field lttng_epoll_wait_fields[] = {
        [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,
@@ -917,7 +917,7 @@ static struct lttng_event_field lttng_epoll_wait_fields[] = {
 };
 
 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,
@@ -980,7 +980,7 @@ static struct lttng_type lttng_epoll_wait_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 =                        \
index e4d62adb8ad9fc3de9bc4395fd426648d6884a8f..9cbc3b999d18a89edb1338608f3d3ded9d4c076d 100644 (file)
@@ -35,15 +35,15 @@ struct lib_ring_buffer_config;
 
 /* 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 {
@@ -74,7 +74,7 @@ struct lttng_enum_entry {
 #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, \
@@ -96,7 +96,7 @@ struct lttng_integer_type {
 };
 
 struct lttng_type {
-       enum abstract_types atype;
+       enum lttng_kernel_type type;
        union {
                struct lttng_integer_type integer;
                struct {
@@ -1359,7 +1359,7 @@ extern const struct file_operations lttng_syscall_list_fops;
 
 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. */
index f5464773cd47fb1e0059ccda2df9ccc6c33feaed..5259c596516d4f4fa55841b4408a69d7d70ff18b 100644 (file)
@@ -307,7 +307,7 @@ void __event_notifier_template_proto___##_name(void);
          .name = #_item,                                       \
          .type =                                               \
                {                                               \
-                 .atype = atype_array_nestable,                \
+                 .type = lttng_kernel_type_array_nestable,             \
                  .u =                                          \
                        {                                       \
                          .array_nestable =                     \
@@ -330,7 +330,7 @@ void __event_notifier_template_proto___##_name(void);
          .name = #_item,                                       \
          .type =                                               \
                {                                               \
-                 .atype = atype_array_nestable,                \
+                 .type = lttng_kernel_type_array_nestable,             \
                  .u =                                          \
                        {                                       \
                          .array_nestable =                     \
@@ -362,7 +362,7 @@ void __event_notifier_template_proto___##_name(void);
          .name = #_item,                                       \
          .type =                                               \
                {                                               \
-                 .atype = atype_sequence_nestable,             \
+                 .type = lttng_kernel_type_sequence_nestable,          \
                  .u =                                          \
                        {                                       \
                          .sequence_nestable =                  \
@@ -393,7 +393,7 @@ void __event_notifier_template_proto___##_name(void);
          .name = #_item,                                       \
          .type =                                               \
                {                                               \
-                 .atype = atype_sequence_nestable,             \
+                 .type = lttng_kernel_type_sequence_nestable,          \
                  .u =                                          \
                        {                                       \
                          .sequence_nestable =                  \
@@ -416,7 +416,7 @@ void __event_notifier_template_proto___##_name(void);
          .name = #_item,                                       \
          .type =                                               \
                {                                               \
-                 .atype = atype_string,                        \
+                 .type = lttng_kernel_type_string,                     \
                  .u =                                          \
                        {                                       \
                          .string = { .encoding = lttng_encode_UTF8 }, \
@@ -432,7 +432,7 @@ void __event_notifier_template_proto___##_name(void);
        {                                                       \
                .name = #_item,                                 \
                .type = {                                       \
-                       .atype = atype_enum_nestable,           \
+                       .type = lttng_kernel_type_enum_nestable,                \
                        .u = {                                  \
                                .enum_nestable = {              \
                                        .desc = &__enum_##_name, \
index 153aeee656190330e34ce582b434b51a24883b99..01828b171aaf799201e6c8677b787c14f2d85d68 100644 (file)
@@ -286,8 +286,8 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
        /* 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;
@@ -299,7 +299,7 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                        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;
@@ -316,7 +316,7 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                }
                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;
@@ -329,7 +329,7 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                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;
@@ -342,19 +342,19 @@ static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                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;
@@ -382,7 +382,7 @@ static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                        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;
                }
@@ -401,7 +401,7 @@ static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
                        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;
                }
index 1ad577a32fb1af3039001fc1eb5cef6b8d2e894c..b5869a88836f81df0b21c25707b52090b5a00a3d 100644 (file)
@@ -322,15 +322,15 @@ static int specialize_load_object(const struct lttng_event_field *field,
 {
        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;
@@ -342,7 +342,7 @@ static int specialize_load_object(const struct lttng_event_field *field,
                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;
@@ -358,7 +358,7 @@ static int specialize_load_object(const struct lttng_event_field *field,
                        }
                }
                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;
@@ -374,17 +374,17 @@ static int specialize_load_object(const struct lttng_event_field *field,
                        }
                }
                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;
@@ -454,17 +454,17 @@ static int specialize_payload_lookup(const struct lttng_event_desc *event_desc,
                        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:
index 38c2d18380c3a5e4c510a6123c13b4c8b9262c43..bd6a30ea095b1521116e3d92822d4c9e2c09dd39 100644 (file)
@@ -196,28 +196,28 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc,
                        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;
                }
@@ -238,12 +238,12 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc,
                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;
 
@@ -255,7 +255,7 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc,
                                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;
 
@@ -267,14 +267,14 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc,
                                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;
                }
@@ -320,17 +320,17 @@ int apply_context_reloc(struct bytecode_runtime *runtime,
                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;
 
@@ -340,7 +340,7 @@ int apply_context_reloc(struct bytecode_runtime *runtime,
                        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;
 
@@ -350,8 +350,8 @@ int apply_context_reloc(struct bytecode_runtime *runtime,
                        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;
                }
index eaaecf4d7dc1d64fddf00932fc26eb03f453776b..d1da784ed56999a2c3d13796efc56d1f441a1d3b 100644 (file)
@@ -137,7 +137,7 @@ int __lttng_add_callstack_generic(struct lttng_ctx **ctx,
 
        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);
@@ -150,7 +150,7 @@ int __lttng_add_callstack_generic(struct lttng_ctx **ctx,
 
        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;
index 3a9429780c83a2f471ad0b2250c8595638e6e458..3d5b518fc61b87bda3c2d534ca3ddd0b17d962f2 100644 (file)
@@ -86,7 +86,7 @@ int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index 498dfcf09eb3f54052265405b101038baf0406a7..d0eac981535eb2a9d714cea8f6b4968cb570a70c 100644 (file)
@@ -57,7 +57,7 @@ int lttng_add_cpu_id_to_ctx(struct lttng_ctx **ctx)
                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);
index e649fec841da36a5852c1a322ba813c73cd7b91d..f12158cd5f4d4bd0003397c48dfaeafc1aa19013 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_egid_to_ctx(struct lttng_ctx **ctx)
                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);
index 79faf3acbb955fe51ba23c3388cf3cb0dc04bacc..00d201ffecd0a795af3e19745673e30adecd4479 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_euid_to_ctx(struct lttng_ctx **ctx)
                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);
index 5620469d386d2f12523c16abdd063b5bf3065c8d..0dbdd301c1df955fa7cae6477a8d8620ce10a6c7 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_gid_to_ctx(struct lttng_ctx **ctx)
                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);
index 86c5d021dd9c42f4cfedbfc250d889a691e5a7f9..55116cfbfedd111df407170a9d3f2fef24805b2a 100644 (file)
@@ -90,7 +90,7 @@ int lttng_add_hostname_to_ctx(struct lttng_ctx **ctx)
                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;
index 9fbf266d5b76522a3949cfbac758366a4525c13d..4bc4d8d715f71ed63e3e765b6ab35c78a5c0f744 100644 (file)
@@ -64,7 +64,7 @@ int lttng_add_interruptible_to_ctx(struct lttng_ctx **ctx)
                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);
index 162fac59ec3ad7f1013a917c1065add5d4a8f854..b4925ac9f9ab730f485f8673e9a904bbbf5ad4c8 100644 (file)
@@ -85,7 +85,7 @@ int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index 207e02ffd8bee82b3ea5178718b358e58fe62119..604f487eea89644ca191e24915a44214bad3a0a4 100644 (file)
@@ -57,7 +57,7 @@ int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx)
                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);
index f62d6a480016421af64deacadd0082c32ac746e9..09fb81a7590346f5a0e76ecaf31946a95e310948 100644 (file)
@@ -87,7 +87,7 @@ int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index 7f8deec24461d00cce6ea410a4653a4244f9fff9..e7a30955f1e996fc6131b67da7b89c71c558e0b3 100644 (file)
@@ -57,7 +57,7 @@ int lttng_add_need_reschedule_to_ctx(struct lttng_ctx **ctx)
                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);
index c9c13e89631eb25529933798d1c86c6a5b0adae5..66b3b8d538eeb391c4afa380c3f9dc2c4ed125f0 100644 (file)
@@ -86,7 +86,7 @@ int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index aaa3643e947cec603b37101fc153a500dd717702..411f336e5fdcc014f41d0e5bfcd19c8134f2e644 100644 (file)
@@ -57,7 +57,7 @@ int lttng_add_nice_to_ctx(struct lttng_ctx **ctx)
                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);
index 25ca8c59f1790c1d6cdcd3ca04e1d71a0be6226c..b9b1e27da6ea2fd68368e34db25a8d1a9217ba41 100644 (file)
@@ -309,7 +309,7 @@ int lttng_add_perf_counter_to_ctx(uint32_t type,
        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);
index 23b0e6d25451559397299e7c875cef7610fa2190..705b50f54033ed159a84bbcba618372eaa061190 100644 (file)
@@ -87,7 +87,7 @@ int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index f3e4aef11b21520dcd0bdc630ca7444306bbff2b..cfce99744047370da863b9d15001f32e7e997fff 100644 (file)
@@ -57,7 +57,7 @@ int lttng_add_pid_to_ctx(struct lttng_ctx **ctx)
                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);
index 854c5159d69fe2d92d28dd8716fad170d192527c..07663f6c39418d4c78ca1fc80bfaada2c3ac184f 100644 (file)
@@ -79,7 +79,7 @@ int lttng_add_ppid_to_ctx(struct lttng_ctx **ctx)
                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);
index 6130a1a26d4acf4313b76c356ad0cda12c7754ac..ae5f825680ab9093c72613f662a75769646d5325 100644 (file)
@@ -75,7 +75,7 @@ int lttng_add_preemptible_to_ctx(struct lttng_ctx **ctx)
                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);
index 2a16ea87ce83f038c9c8f115b788a4f413c5754d..885c48bc8e2827fb9f802298c37dbf90d965943e 100644 (file)
@@ -91,7 +91,7 @@ int lttng_add_prio_to_ctx(struct lttng_ctx **ctx)
                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);
index fb5c36b8314390742e63670597bf21b756902c50..e627b976869b6c6816c997290caa8eb9187b586a 100644 (file)
@@ -62,7 +62,7 @@ int lttng_add_procname_to_ctx(struct lttng_ctx **ctx)
                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;
index 18f1b837ec8ed33d468c716438bc90b33319bdff..c2708283bedd6479f64e9fc8907d74f6f7d26fa3 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_sgid_to_ctx(struct lttng_ctx **ctx)
                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);
index 1aa52dc54aca7ea4002400037f3725bad1fc0f9b..c26b1413e157a76091bcdb0eb197b4250f843b53 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_suid_to_ctx(struct lttng_ctx **ctx)
                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);
index 311613085afedd2e3bed7b5a41703e3d65712353..d4bedafc9370178f7f71b719304a7bed120933d6 100644 (file)
@@ -60,7 +60,7 @@ int lttng_add_tid_to_ctx(struct lttng_ctx **ctx)
                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);
index d3133aca352dbca698ee99f44244f40b86cbc551..3d197827e32c964c9b7505142ca1d31a83a87350 100644 (file)
@@ -85,7 +85,7 @@ int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index c48bd0a6e6b6773b0659b028e3d6d9ade558e2e5..47c740f98b85fe2510a18bea78d6f954618dfae1 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_uid_to_ctx(struct lttng_ctx **ctx)
                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);
index 5be49a59661f46857935011db7ba580e1b675bcb..2b5f46c66b9fb1c39485bd309a8bac6b604278ea 100644 (file)
@@ -71,7 +71,7 @@ int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index 3c399fe3138d44196d64c5a681478a2cc0377623..6e1fabe8b4e4555b3cb522a2bd3209240bc603e2 100644 (file)
@@ -85,7 +85,7 @@ int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx)
                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);
index 6207e61cb7ffe3aba9b3c65a3531460e87d00522..753278242fea2efa5b431e961371b3abb21f8ab9 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_vegid_to_ctx(struct lttng_ctx **ctx)
                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);
index a24982080afe39aa6ac9b5532e2c24d5669986de..2c49b1824fccb45d4a2418f6330afebe17a19c19 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_veuid_to_ctx(struct lttng_ctx **ctx)
                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);
index a833915f89cb9fa9f2fd4cdd3c3d92cf12778981..b42e4988e9a23eb7795f24983844de1050cb68e7 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_vgid_to_ctx(struct lttng_ctx **ctx)
                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);
index 28178b9ead50bc3cb3b8b100bb675269cadafbe7..41296c4811e4828f5a05f4ee9a411a7324efef73 100644 (file)
@@ -72,7 +72,7 @@ int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx)
                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);
index 8757eb29f423ca1cf70f579ef2d4e428807f1882..1ff182c3bee5d5b775a141767cfcfc39a77c1e92 100644 (file)
@@ -101,7 +101,7 @@ int lttng_add_vppid_to_ctx(struct lttng_ctx **ctx)
                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);
index c6a6ea7c8a30571b94c65ce5680e0f8283e8b680..a00545b543b5af090ff47759484381de6c5d25fa 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_vsgid_to_ctx(struct lttng_ctx **ctx)
                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);
index c22d43043a7ca3953003644bcdc58dc239f7cce4..635bba48ab8ee18eeb4615d6d32ea94675625784 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_vsuid_to_ctx(struct lttng_ctx **ctx)
                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);
index 3b0cadc4c3f01a679cf91d9d3062f8302b1c0ef9..1e2e1ad9419fd30c14c5ae41c0091929fcf7a4ae 100644 (file)
@@ -72,7 +72,7 @@ int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx)
                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);
index e83f8989d456cf44d909ca6c6d36e90440760f2a..6980af9ff7eb03381257ab63dbaa9ada313ae450 100644 (file)
@@ -59,7 +59,7 @@ int lttng_add_vuid_to_ctx(struct lttng_ctx **ctx)
                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);
index 311dd6e1cd2d40898d85d277e494123e92b358d1..5c83ffb239eb61fabb7484b5a9c4b12efb7ed692 100644 (file)
@@ -135,26 +135,26 @@ void lttng_context_update(struct lttng_ctx *ctx)
                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;
@@ -163,23 +163,23 @@ void lttng_context_update(struct lttng_ctx *ctx)
                                        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;
@@ -188,14 +188,14 @@ void lttng_context_update(struct lttng_ctx *ctx)
                                        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;
index b39bfaad58545429beaf217badc56b81df7da3dc..906ed109a8a1e01c7f95011387f724b8b898d86a 100644 (file)
@@ -208,11 +208,11 @@ int capture_sequence(struct lttng_msgpack_writer *writer,
 
        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;
index 944d4fb2dafc06ba2de44d813cc13c9636d86656..9df49fac55fe4ca60c62137b10dcde1e12386724 100644 (file)
@@ -3013,7 +3013,7 @@ int _lttng_integer_type_statedump(struct lttng_session *session,
 {
        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;
@@ -3049,7 +3049,7 @@ int _lttng_struct_type_statedump(struct lttng_session *session,
        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)
@@ -3110,7 +3110,7 @@ int _lttng_variant_type_statedump(struct lttng_session *session,
        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.
         */
@@ -3169,7 +3169,7 @@ int _lttng_array_field_statedump(struct lttng_session *session,
        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);
@@ -3187,10 +3187,10 @@ int _lttng_array_field_statedump(struct lttng_session *session,
         * 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;
@@ -3218,7 +3218,7 @@ int _lttng_sequence_field_statedump(struct lttng_session *session,
        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;
 
@@ -3239,10 +3239,10 @@ int _lttng_sequence_field_statedump(struct lttng_session *session,
         * 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;
@@ -3272,7 +3272,7 @@ int _lttng_enum_type_statedump(struct lttng_session *session,
        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;
        }
@@ -3410,7 +3410,7 @@ int _lttng_string_type_statedump(struct lttng_session *session,
 {
        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)
@@ -3429,7 +3429,7 @@ int _lttng_string_field_statedump(struct lttng_session *session,
 {
        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;
@@ -3446,26 +3446,26 @@ int _lttng_type_statedump(struct lttng_session *session,
 {
        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;
@@ -3483,26 +3483,26 @@ int _lttng_field_statedump(struct lttng_session *session,
 {
        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;
 
index 82433bd84c0793c9a1cd93ab40335caf5d475113..c4b089c64f7ce20176f4e6a05aae6e7e2f31263d 100644 (file)
@@ -91,7 +91,7 @@ int lttng_create_kprobe_event(const char *name, struct lttng_event *event)
                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);
index e0037aa7af66d19472d25911282f35658f2a5c5e..25bdec90ef52b90d6bde748a9d66e7704fc762ee 100644 (file)
@@ -129,7 +129,7 @@ int lttng_create_kprobe_event(const char *name, struct lttng_event *event,
                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);
@@ -138,7 +138,7 @@ int lttng_create_kprobe_event(const char *name, struct lttng_event *event,
        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);
index c44ed4f8da511349cd911faafa8440c3e49170a0..b738847f78ba51e8c7cb39044f27ef57bc7941db 100644 (file)
@@ -107,7 +107,7 @@ int lttng_create_uprobe_event(const char *name, struct lttng_event *event)
                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);
This page took 0.073452 seconds and 4 git commands to generate.