From: Jonathan Rajotte Date: Mon, 5 Feb 2018 23:19:00 +0000 (-0500) Subject: Fix: add-context cannot be performed after a session has been started X-Git-Tag: v2.11.0-rc1~389 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=9a699f7bb912d287630c8940459069a4b04d2399;hp=9a699f7bb912d287630c8940459069a4b04d2399 Fix: add-context cannot be performed after a session has been started The following scenario lead to a corrupted trace/metadata layout problem: - lttng create test - lttng enable-channel -u test - lttng enable-event -u -a -c test - lttng start - ./instrumented-application - lttng stop - lttng add-context -u -t procname -c test - lttng start - ./instrumented-application - lttng stop - lttng view Babeltrace 1.5.x will fail with: [error] Unexpected end of packet. Either the trace data stream is corrupted or metadata description does not match data layout. [error] Reading event failed. Error printing trace. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau ---