From: Mathieu Desnoyers Date: Sun, 20 Mar 2016 18:54:18 +0000 (-0400) Subject: Fix: convey enum value signedness into metadata X-Git-Tag: v2.9.0-rc1~327 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=3b016e589cc2229f0d3be8e6e61e8eeed8b7e9e6;hp=3b016e589cc2229f0d3be8e6e61e8eeed8b7e9e6 Fix: convey enum value signedness into metadata Currently, passing an enum range of: ctf_enum_range("blah", 0, UINT_MAX) in LTTng-UST will print a range of 0 ... -1 in the generated CTF metadata, which does not reflect signedness of the values. Also, struct ustctl_enum_entry is missing a LTTNG_PACKED attribute, which is against our protocol rules. This change needs to be pushed in locked-step into lttng-tools and lttng-ust, since it breaks the protocol between the two when UST uses the new enumeration type (introduced in 2.8.0-rc1). Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---