Fix: invalid alignment of enumeration fields
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Oct 2018 23:32:06 +0000 (00:32 +0100)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 30 Oct 2018 23:33:56 +0000 (00:33 +0100)
commit9d4e072bc91f17d1f3852e840727754cdb400683
tree1d7ae64835c78c59bf6b02895f9a20e61bb807e5
parent4f10a4adabee5ca61c27ba399b3438505e0cd6de
Fix: invalid alignment of enumeration fields

Issue
---

According to the CTF specification, the alignment of an enumeration is
that of its container integer field declaration. However, an
enumeration field's alignment is always initialized to 1.

This causes babeltrace to fail to read traces produced by lttng-ust
following a fix that causes it to generate extended event headers. The
problem is observed on ARM platforms since lttng-ust will produce a
layout that does not result in unaligned memory accesses.

Solution
---

The alignment of the enumeration declaration's container is sampled
when the enumeration declaration is created.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
types/enum.c
This page took 0.0242790000000001 seconds and 4 git commands to generate.