From: Mathieu Desnoyers Date: Wed, 21 Oct 2020 16:24:40 +0000 (-0400) Subject: Fix: type mismatch in clone instrumentation X-Git-Tag: v2.13.0-rc1~160 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=d1f635338ee4804f25dfe4efd52bee8e81932e9f;p=lttng-modules.git Fix: type mismatch in clone instrumentation The data and metadata types should all agree to use "unsigned long", else it triggers babeltrace trace parsing errors. Signed-off-by: Mathieu Desnoyers --- diff --git a/include/instrumentation/syscalls/headers/syscalls_pointers_override.h b/include/instrumentation/syscalls/headers/syscalls_pointers_override.h index b885fb42..866f7f83 100644 --- a/include/instrumentation/syscalls/headers/syscalls_pointers_override.h +++ b/include/instrumentation/syscalls/headers/syscalls_pointers_override.h @@ -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) ) ) )