Fix event ID allocation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 24 Sep 2011 21:32:24 +0000 (17:32 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 24 Sep 2011 21:32:24 +0000 (17:32 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/ltt-events.c

index c9a7773fa744959c0633750d56f7e06dbd5af5d3..4a9a8a72c465fc8536c95d7c086ccb05bbafcb32 100644 (file)
@@ -146,6 +146,9 @@ int pending_probe_fix_events(const struct lttng_event_desc *desc)
                ret |= __tracepoint_probe_register(name,
                                event->desc->probe_callback,
                                event);
+               if (ret)
+                       continue;
+               event->id = chan->free_event_id++;
                ret |= _ltt_event_metadata_statedump(chan->session, chan,
                                event);
        }
This page took 0.032645 seconds and 4 git commands to generate.