From: compudj Date: Wed, 26 May 2004 17:08:03 +0000 (+0000) Subject: use hook call return value X-Git-Tag: v0.12.20~2938 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=a54f091ae0fcccfd434512ae4f81b7e34a49d373;hp=99cf61d904b8f7224b731bc487418e72e894e9ab;p=lttv.git use hook call return value git-svn-id: http://ltt.polymtl.ca/svn@551 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.c b/ltt/branches/poly/lttv/lttv/tracecontext.c index 5b6cdba7..d455348f 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.c +++ b/ltt/branches/poly/lttv/lttv/tracecontext.c @@ -612,6 +612,8 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self, unsigned count = 0; + gboolean last_ret = FALSE; /* return value of the last hook list called */ + /* Get the next event from the pqueue, call its hooks, reinsert in the pqueue the following event from the same tracefile unless the tracefile is finished or the event is later than the @@ -634,7 +636,8 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self, * break the loop. */ - if(count >= nb_events || + if(last_ret == TRUE || + count >= nb_events || lttv_traceset_context_ctx_pos_compare(self, end_position) >= 0 || ltt_time_compare(tfc->timestamp, end) >= 0) @@ -651,7 +654,7 @@ guint lttv_process_traceset_middle(LttvTracesetContext *self, count++; id = ltt_event_eventtype_id(tfc->e); - lttv_hooks_call_merge(tfc->event, tfc, + last_ret = lttv_hooks_call_merge(tfc->event, tfc, lttv_hooks_by_id_get(tfc->event_by_id, id), tfc); event = ltt_tracefile_read(tfc->tf);