babeltrace:stable-1.4

Last commit made on 2018-02-20
Get this branch:
git clone -b stable-1.4 https://git.launchpad.net/babeltrace

Branch merges

Branch information

Name:
stable-1.4
Repository:
lp:babeltrace

Recent commits

d013ee4... by Jonathan Rajotte

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 <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

6730cff... by Mathieu Desnoyers

Fix: report truncated files while reading

When index files are available, this ensures we report the issue
properly before mapping a truncated packet rather than hitting a
SIGBUS.

For traces without index files, remove the check that was done at
index creation, and use the new check done when mapping the packet
instead. This ensures babeltrace can print stream data prior to the
truncated packet for this stream.

TODO: What is _not_ done in this patch is changing handling of truncated
packets: this should be treated as a warning rather than an error, so
processing of other streams continue.

Signed-off-by: Mathieu Desnoyers <email address hidden>
CC: Jonathan Rajotte-Julien <email address hidden>
CC: Jérémie Galarneau <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

a08b9eb... by =?utf-8?q?J=C3=A9r=C3=A9mie_Galarneau?= <email address hidden>

Update version to v1.4.4

Signed-off-by: Jérémie Galarneau <email address hidden>

dbeb52b... by =?utf-8?q?J=C3=A9r=C3=A9mie_Galarneau?= <email address hidden>

Fix: signedness error in python complements

Signed-off-by: Jérémie Galarneau <email address hidden>

ccce44e... by Mathieu Desnoyers

Fix: handle packet_seek errors

This is needed to correctly handle SIGINT in live view mode. Without
handling this situation correctly, we can often see the following issue
upon SIGINT:

[error] Stream 18446744073709551615 is not declared in metadata.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Signed-off-by: Julien Desfossez <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

1e8e8e2... by Julien Desfossez <email address hidden>

Fix: prevent calling adding the same trace recursively

add_one_trace may need to fetch new streams, which may lead to adding
new traces to the ctf_traces hashtable and recursively calling
add_one_trace. This is problematic because we cannot modify a hashtable
we are iterating on, and we cannot perform twice the add_one_trace for
the same trace.

This fix, ensures this situation cannot happen, by checking if the
number of traces changed during the iteration and by making sure a trace
is considered in_use as soon as we enter the add_one_trace function.

Signed-off-by: Julien Desfossez <email address hidden>
Acked-by: Jonathan Rajotte-Julien <email address hidden>
Tested-by: Jonathan Rajotte-Julien <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

4a6f6ed... by Julien Desfossez <email address hidden>

Fix: Make sure we have all the metadata streams before adding new traces

The add_one_trace function needs to have a metadata stream for all the
known traces. If it does not, we could end up in situations where we
fetch new streams while adding a trace which causes a lot of problems.

Now we ensure we have all the metadata streams before adding the traces.

Signed-off-by: Julien Desfossez <email address hidden>
Acked-by: Jonathan Rajotte-Julien <email address hidden>
Tested-by: Jonathan Rajotte-Julien <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

b963fd1... by Julien Desfossez <email address hidden>

Add missing debugging information in the live plugin

Signed-off-by: Julien Desfossez <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

1ab659e... by Mathieu Desnoyers

Fix: set stream id in HUP case

In the case where a stream is closed when we get its first index, we
still need a valid stream_id to assign it in the right stream (channel).
In this case, it is not useful afterwards, but the debug output has the
right value instead of -1ULL.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Signed-off-by: Julien Desfossez <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>

bb35f03... by Mathieu Desnoyers

Fix: Use list rather than ptr array for trace streams

This fixes stream removal on HUP.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Signed-off-by: Julien Desfossez <email address hidden>
Signed-off-by: Jérémie Galarneau <email address hidden>