Fix: type mismatch in clone instrumentation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Oct 2020 16:24:40 +0000 (12:24 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Oct 2020 16:24:40 +0000 (12:24 -0400)
The data and metadata types should all agree to use "unsigned long",
else it triggers babeltrace trace parsing errors.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/syscalls/headers/syscalls_pointers_override.h

index b885fb42ced6b9eeac32a6d944ff413173e89776..866f7f8399a4245e659300a5f8dfebf6121a3602 100644 (file)
@@ -181,12 +181,12 @@ SC_LTTNG_TRACEPOINT_EVENT(clone,
                                                        __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)
                                )
                        )
                )
This page took 0.028318 seconds and 4 git commands to generate.