info->pointer_size = pointer_size;
info->size_t_size = size_t_size;
info->alignment = alignment;
+ info->fields = NULL;
info->next = NULL;
head = marker_get_info_from_name(trace, name);
if (!head)
static inline struct marker_info *marker_get_info_from_id(LttTrace *trace,
guint16 id)
{
- if (unlikely(trace->markers->len < id))
+ if (unlikely(trace->markers->len <= id))
return NULL;
return &g_array_index(trace->markers, struct marker_info, id);
}
pos += sizeof(guint16);
} else {
/* Compact event */
+ event->event_size = 0xFFFF;
}
if (a_event_debug)
}
info = marker_get_info_from_id(tf->trace, tf->event.event_id);
+
if (tf->event.event_id >= MARKER_CORE_IDS)
g_assert(info != NULL);