From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 21:32:24 +0000 (-0400) Subject: Fix event ID allocation X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=636c5aa4d9b6b58e291aa4c18f791cd39089724b;p=ust.git Fix event ID allocation Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/ltt-events.c b/libust/ltt-events.c index c9a7773..4a9a8a7 100644 --- a/libust/ltt-events.c +++ b/libust/ltt-events.c @@ -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); }