struct marker_info *info, *head;
int found = 0;
- if (trace->markers->len < id)
+ if (trace->markers->len <= id)
trace->markers = g_array_set_size(trace->markers, id+1);
info = &g_array_index(trace->markers, struct marker_info, id);
info->name = name;
//pos += ltt_align((size_t)pos, tf->trace->arch_size, tf->alignment);
pos += ltt_align((size_t)pos, sizeof(uint16_t), tf->alignment);
id = ltt_get_uint16(LTT_GET_BO(tf), pos);
+ g_debug("In MARKER_ID_SET_MARKER_ID of marker %s id %hu",
+ marker_name, id);
pos += sizeof(guint16);
int_size = *(guint8*)pos;
pos += sizeof(guint8);
#include <config.h>
#endif
+#include <glib.h>
#include <lttv/lttv.h>
#include <lttv/module.h>
#include <lttv/state.h>