Cleanup: Rename abstract types to lttng_kernel_type
[lttng-modules.git] / include / instrumentation / syscalls / headers / syscalls_pointers_override.h
index b885fb42ced6b9eeac32a6d944ff413173e89776..0dbdd82b9dbe4d2d7d7807fb580efed19ba71402 100644 (file)
@@ -84,16 +84,16 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_clone_option_flags,
        TP_ENUM_VALUES(
                ctf_enum_value("CLONE_CHILD_CLEARTID",  LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_CHILD_CLEARTID))
                ctf_enum_value("CLONE_CHILD_SETTID",    LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_CHILD_SETTID))
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0))
                ctf_enum_value("CLONE_CLEAR_SIGHAND",   LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_CLEAR_SIGHAND))
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0)) */
+#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,5,0)) */
                ctf_enum_value("CLONE_DETACHED",        LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_DETACHED))
                ctf_enum_value("CLONE_FILES",           LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_FILES))
                ctf_enum_value("CLONE_FS",              LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_FS))
                ctf_enum_value("CLONE_IO",              LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_IO))
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0))
                ctf_enum_value("CLONE_NEWCGROUP",       LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_NEWCGROUP))
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) */
+#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) */
                ctf_enum_value("CLONE_NEWIPC",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_NEWIPC))
                ctf_enum_value("CLONE_NEWNET",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_NEWNET))
                ctf_enum_value("CLONE_NEWNS",           LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_NEWNS))
@@ -102,9 +102,9 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_clone_option_flags,
                ctf_enum_value("CLONE_NEWUTS",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_NEWUTS))
                ctf_enum_value("CLONE_PARENT",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_PARENT))
                ctf_enum_value("CLONE_PARENT_SETTID",   LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_PARENT_SETTID))
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0))
                ctf_enum_value("CLONE_PIDFD",           LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_PIDFD))
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,2,0)) */
+#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,2,0)) */
                ctf_enum_value("CLONE_PTRACE",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_PTRACE))
                ctf_enum_value("CLONE_SETTLS",          LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_SETTLS))
                ctf_enum_value("CLONE_SIGHAND",         LTTNG_CLONE_OPTIONS_FLAGS_TO_CTF(CLONE_SIGHAND))
@@ -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,18 +175,18 @@ 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,
                                                                LTTNG_CLONE_FLAGS
                                                        ),
-                                               .u.struct_nestable.alignment = lttng_alignof(uint32_t) * CHAR_BIT,
+                                               .u.struct_nestable.alignment = lttng_alignof(unsigned long) * CHAR_BIT,
                                        }
                                ),
                                flags,
                                ctf_custom_code(
-                                       ctf_integer_type(uint32_t, clone_flags)
+                                       ctf_integer_type(unsigned long, clone_flags)
                                )
                        )
                )
@@ -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 =                        \
@@ -1112,9 +1112,9 @@ SC_LTTNG_TRACEPOINT_ENUM(lttng_file_status_flags,
                ctf_enum_value("O_CLOEXEC", O_CLOEXEC)
                ctf_enum_value("O_SYNC", __O_SYNC)
                ctf_enum_value("O_PATH", O_PATH)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,11,0))
                ctf_enum_value("O_TMPFILE", __O_TMPFILE)
-#endif /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0)) */
+#endif /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,11,0)) */
        )
 )
 
This page took 0.027992 seconds and 4 git commands to generate.