(struct ltt_trace_header_2_0 *)header;
tf->buffer_header_size =
sizeof(struct ltt_block_start_header)
- + sizeof(struct ltt_trace_header_1_0);
+ + sizeof(struct ltt_trace_header_2_0);
tf->tscbits = vheader->tscbits;
tf->eventbits = vheader->eventbits;
tf->tsc_mask = ((1ULL << tf->tscbits) - 1);
event->timestamp = ltt_get_uint32(LTT_GET_BO(tf), pos);
event->event_id = event->timestamp >> tf->tscbits;
- event->timestamp = event->timestamp & tsc_mask;
+ event->timestamp = event->timestamp & tf->tsc_mask;
pos += sizeof(guint32);
switch (event->event_id) {
*/
if (likely(info && info->fields)) {
/* alignment */
- event->data += ltt_align((off_t)event->data, info->largest_align,
+ tf->event.data += ltt_align((off_t)tf->event.data, info->largest_align,
info->alignment);
/* size, dynamically computed */
if (info->size != -1)