Parse LTTng indexes

If a trace file has an associated index (same filename and .idx suffix),
we open it and use it instead of generating the index at open.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
live test program

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
pretty printing and write trace on disk

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
missing header file

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
don't write the trace on disk, write and read the data from a mmap'ed region

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
sync header with lttng-tools

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
babeltrace handle the inactive streams (review needed)

when content_size == 0, just set the timestamp_end of the packet and
reinsert the stream in the heap.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
handle inactive beacons

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>