From: compudj Date: Thu, 1 Sep 2005 13:19:19 +0000 (+0000) Subject: fix position saving in event list X-Git-Tag: v0.12.20~2385 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=294550d257aae71f5c55c37efb16a3e925f0a75d;p=lttv.git fix position saving in event list git-svn-id: http://ltt.polymtl.ca/svn@1104 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c index 2a58cb21..4cea582a 100644 --- a/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c +++ b/ltt/branches/poly/lttv/modules/gui/detailedevents/events.c @@ -909,6 +909,7 @@ static void get_events(double new_value, EventViewerData *event_viewer_data) * we are already at the right read position. It would be costier to use the * seek time closest for nothing, as we only have few events to read. */ + /* FIXME : use seek time closest and middle to have a good state. */ lttv_process_traceset_begin(tsc, NULL, NULL, NULL, event_viewer_data->event_hooks, NULL); @@ -952,6 +953,8 @@ int event_hook(void *hook_data, void *call_data) LttvTracesetContextPosition *pos = lttv_traceset_context_position_new(tfc->t_context->ts_context); + lttv_traceset_context_position_save(tfc->t_context->ts_context, pos); + if(field) lttv_print_field(e, field, desc, TRUE);