From: Mathieu Desnoyers Date: Tue, 13 Oct 2015 16:06:26 +0000 (-0400) Subject: Fix: babeltrace-log packet seek X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=185987b146f25ac4e9fbfe087ac835d37d12d1b7;hp=185987b146f25ac4e9fbfe087ac835d37d12d1b7 Fix: babeltrace-log packet seek Packet seek has been removed from ctf helper headers somewhere around Babeltrace 1.1. Since then, babeltrace-log is broken when it needs to output a file larger than the fixed-sized packet (WRITE_PACKET_LEN currently defined as (getpagesize() * 8 * CHAR_BIT). Correctly handle the non-zero return values on ctf_align_pos() and ctf_move_pos() on the dummy position copy, which are used to validate whether we need to switch packet or not. Also add an initial packet seek at the beginning of the file. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---