Propagate error from packet_seek in case of truncated packet stable-1.4
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 7 Feb 2018 22:52:05 +0000 (17:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 20 Feb 2018 19:15:58 +0000 (14:15 -0500)
commitd013ee49c0f8cc99f92df4118e9804eca3640b7b
treeaea8f238266922d0f25f7d8e034bb177aafa4b64
parent6730cff6c77ecfc1a11a2ed9deabc945d7818b95
Propagate error from packet_seek in case of truncated packet

Report the error all the way up allowing users/scripts to perform error
detection and act on it.

Print to stderr the truncated packet information for easier
identification.

Introduce bt_packet_seek_error enum for specific error handling.

Use the ERANGE errno for error propagation inside bt_iter_next and
ctf_read_event.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace.c
formats/ctf/ctf.c
formats/lttng-live/lttng-live-comm.c
include/babeltrace/error.h
lib/iterator.c
This page took 0.026539 seconds and 4 git commands to generate.