Fix: ctf_packet_seek must use the current packet size when mapping the next

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: Compound type write functions must check the offset before aligning

The ctf_access_ok() check was done after aligning. The write functions would
create a new packet if the ctf_pos_align could not align inside the current
packet.

The functions now report an error if the alignment can't be ensured in the
current packet. The top-level CTF Writer serialization functions will resize
the packets appropriately.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Use the g_hash_table_lookup_extended() functions instead of checking the result

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: The bt_ctf_field_unsigned_set_value must set the _unsigned member of the value union

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Enumeration, string and variant serialization support

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Align the position appropriately when serializing a structure

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Proper array, sequence and structure alignment computation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Add bt_ctf_event_get_payload() which is more consistent with the structure API

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fix: Packet sizes must be aligned on a page

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Remove unimplemented generic integer_set_value function

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Refactor CTF Writer test

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>