Fix: convey enum value signedness into metadata
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 20 Mar 2016 18:11:29 +0000 (14:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Mar 2016 16:13:26 +0000 (12:13 -0400)
commit16940765eedb97f2600ee2e8c33a44c910fcde73
tree20d674042397f853f45a7f13cafe8b00fd6116b4
parent358b7b742dd749ca68218c82daa31dd9cc91fb51
Fix: convey enum value signedness into metadata

Currently, passing an enum range of:

  ctf_enum_range("blah", 0, UINT_MAX)

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 <mathieu.desnoyers@efficios.com>
include/lttng/ust-ctl.h
include/lttng/ust-events.h
include/lttng/ust-tracepoint-event.h
liblttng-ust-comm/lttng-ust-comm.c
liblttng-ust/lttng-ust-dynamic-type.c
This page took 0.026766 seconds and 4 git commands to generate.