X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Ftext%2Fsync_chain_batch.c;h=11c4f6368919f3e48b5da1c9ce1d30ddb0e0548f;hb=0a87ec9a018cc9731ce3b04309eaa4dcc77df6d2;hp=23d3e05f9c833aea7b7cca60d8fa0728c5b84a93;hpb=9c7696b8589e76aed870b15cabd09a162d468621;p=lttv.git diff --git a/lttv/modules/text/sync_chain_batch.c b/lttv/modules/text/sync_chain_batch.c index 23d3e05f..11c4f636 100644 --- a/lttv/modules/text/sync_chain_batch.c +++ b/lttv/modules/text/sync_chain_batch.c @@ -338,13 +338,12 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext) SyncState* syncState; struct timeval endTime; struct rusage endUsage; - unsigned int i; int retval; tracesetChainState= g_hash_table_lookup(tracesetChainStates, traceSetContext); syncState= tracesetChainState->syncState; - syncState->processingModule->finalizeProcessing(syncState); + freeAllFactors(syncState->processingModule->finalizeProcessing(syncState)); // Write graphs file if (optionEvalGraphs) @@ -359,19 +358,6 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext) printStats(syncState); - printf("Resulting synchronization factors:\n"); - for (i= 0; i < syncState->traceNb; i++) - { - LttTrace* t; - - t= traceSetContext->traces[i]->t; - - printf("\ttrace %u drift= %g offset= %g (%f) start time= %ld.%09ld\n", - i, t->drift, t->offset, (double) tsc_to_uint64(t->freq_scale, - t->start_freq, t->offset) / NANOSECONDS_PER_SECOND, - t->start_time_from_tsc.tv_sec, t->start_time_from_tsc.tv_nsec); - } - syncState->processingModule->destroyProcessing(syncState); if (syncState->matchingModule != NULL) {