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))
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))
{ \
.name = "exit_signal", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_clone_exit_signal_flags, \
{ \
.name = "options", \
.type = { \
- .atype = atype_enum_nestable, \
+ .type = lttng_kernel_type_enum_nestable, \
.u = { \
.enum_nestable = { \
.desc = &__enum_lttng_clone_option_flags, \
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = 2,
.u.struct_nestable.fields =
__LTTNG_COMPOUND_LITERAL(struct lttng_event_field,
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)
)
)
)
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "_" #name "_length", \
.u.sequence_nestable.elem_type = __LTTNG_COMPOUND_LITERAL(struct lttng_type, \
__type_integer(uint8_t, 0, 0, 0, __BYTE_ORDER, 16, none)), \
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.elem_type = __LTTNG_COMPOUND_LITERAL(struct lttng_type, \
__type_integer(uint8_t, 0, 0, 0, __BYTE_ORDER, 16, none)), \
.u.sequence_nestable.alignment = 0, \
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_pollfd_flag_fields),
.u.struct_nestable.fields = lttng_pollfd_flag_fields,
.u.struct_nestable.alignment = 0,
};
static struct lttng_type lttng_pollfd_elem = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_pollfd_fields),
.u.struct_nestable.fields = lttng_pollfd_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "fds_length", \
.u.sequence_nestable.elem_type = <tng_pollfd_elem, \
} \
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = "fds_length", \
.u.sequence_nestable.elem_type = <tng_pollfd_elem, \
} \
[0] = {
.name = "data_union",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_data_fields),
.u.struct_nestable.fields = lttng_epoll_data_fields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_ctl_events_fields),
.u.struct_nestable.fields = lttng_epoll_ctl_events_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field(
ctf_custom_type(
{
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(epoll_ctl_fields),
.u.struct_nestable.fields = epoll_ctl_fields,
.u.struct_nestable.alignment = 0,
[0] = {
.name = "data_union",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_data_fields),
.u.struct_nestable.fields = lttng_epoll_data_fields,
.u.struct_nestable.alignment = 0,
[2] = {
.name = "events",
.type = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_ctl_events_fields),
.u.struct_nestable.fields = lttng_epoll_ctl_events_fields,
.u.struct_nestable.alignment = 0,
};
static struct lttng_type lttng_epoll_wait_elem = {
- .atype = atype_struct_nestable,
+ .type = lttng_kernel_type_struct_nestable,
.u.struct_nestable.nr_fields = ARRAY_SIZE(lttng_epoll_wait_fields),
.u.struct_nestable.fields = lttng_epoll_wait_fields,
.u.struct_nestable.alignment = 0,
ctf_custom_field( \
ctf_custom_type( \
{ \
- .atype = atype_sequence_nestable, \
+ .type = lttng_kernel_type_sequence_nestable, \
.u.sequence_nestable.length_name = \
"fds_length", \
.u.sequence_nestable.elem_type = \
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)) */
)
)