Add support for module options
[lttv.git] / lttv / lttv / sync / event_processing_lttng_standard.c
index a8c08aaf05a1e2924d194e12c64933ba6a503965..1ee27c761567ddbee8e707b149cb00cc708208dd 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "sync_chain_lttv.h"
+#include "sync_chain.h"
 #include "event_processing_lttng_common.h"
 
 #include "event_processing_lttng_standard.h"
@@ -380,12 +380,12 @@ static gboolean processEventLTTVStandard(void* hookData, void* callData)
 
        traceHook= (LttvTraceHook*) hookData;
        tfc= (LttvTracefileContext*) callData;
+       trace= tfc->t_context->t;
        syncState= (SyncState*) traceHook->hook_data;
        processingData= (ProcessingDataLTTVStandard*) syncState->processingData;
        event= ltt_tracefile_get_event(tfc->tf);
        time= ltt_event_time(event);
-       tsc= ltt_event_cycle_count(event);
-       trace= tfc->t_context->t;
+       tsc= trace->drift * ltt_event_cycle_count(event) + trace->offset;
        info= marker_get_info_from_id(tfc->tf->mdata, event->event_id);
 
        g_assert(g_hash_table_lookup_extended(processingData->traceNumTable,
This page took 0.024634 seconds and 4 git commands to generate.