static void initProcessingLTTVNull(SyncState* const syncState, ...)
{
ProcessingDataLTTVNull* processingData;
- LttvTracesetContext* traceSetContext;
va_list ap;
processingData= malloc(sizeof(ProcessingDataLTTVNull));
syncState->processingData= processingData;
- processingData->traceSetContext= traceSetContext;
-
+ va_start(ap, syncState);
+ processingData->traceSetContext= va_arg(ap, LttvTracesetContext*);
+ va_end(ap);
+ syncState->traceNb=
+ lttv_traceset_number(processingData->traceSetContext->ts);
processingData->hookListList= g_array_sized_new(FALSE, FALSE,
sizeof(GArray*), syncState->traceNb);
- va_start(ap, syncState);
- traceSetContext= va_arg(ap, LttvTracesetContext*);
- va_end(ap);
- registerHooks(processingData->hookListList, traceSetContext,
- &processEventLTTVNull, syncState,
+ registerHooks(processingData->hookListList,
+ processingData->traceSetContext, &processEventLTTVNull, syncState,
syncState->matchingModule->canMatch);
}
va_start(ap, syncState);
processingData->traceSetContext= va_arg(ap, LttvTracesetContext*);
va_end(ap);
+ syncState->traceNb=
+ lttv_traceset_number(processingData->traceSetContext->ts);
+ processingData->hookListList= g_array_sized_new(FALSE, FALSE,
+ sizeof(GArray*), syncState->traceNb);
- if (syncState->stats)
- {
- processingData->stats= calloc(1, sizeof(ProcessingStatsLTTVStandard));
- }
- else
+ processingData->traceNumTable= g_hash_table_new(&g_direct_hash, NULL);
+ for(i= 0; i < syncState->traceNb; i++)
{
- processingData->stats= NULL;
+ g_hash_table_insert(processingData->traceNumTable,
+ processingData->traceSetContext->traces[i]->t, (gpointer) i);
}
- processingData->traceNumTable= g_hash_table_new(&g_direct_hash, NULL);
- processingData->hookListList= g_array_sized_new(FALSE, FALSE,
- sizeof(GArray*), syncState->traceNb);
processingData->pendingRecv= malloc(sizeof(GHashTable*) *
syncState->traceNb);
-
for(i= 0; i < syncState->traceNb; i++)
{
- g_hash_table_insert(processingData->traceNumTable,
- processingData->traceSetContext->traces[i]->t, (gpointer) i);
+ processingData->pendingRecv[i]= g_hash_table_new_full(&g_direct_hash,
+ NULL, NULL, &gdnDestroyEvent);
+ }
+
+ if (syncState->stats)
+ {
+ processingData->stats= calloc(1, sizeof(ProcessingStatsLTTVStandard));
+ }
+ else
+ {
+ processingData->stats= NULL;
}
if (syncState->graphsStream)
processingData->graphs= NULL;
}
- for(i= 0; i < syncState->traceNb; i++)
- {
- processingData->pendingRecv[i]= g_hash_table_new_full(&g_direct_hash,
- NULL, NULL, &gdnDestroyEvent);
- }
-
registerHooks(processingData->hookListList,
processingData->traceSetContext, &processEventLTTVStandard, syncState,
syncState->matchingModule->canMatch);
// Initialize data structures
syncState= malloc(sizeof(SyncState));
- syncState->traceNb= lttv_traceset_number(traceSetContext->ts);
if (optionSyncStats.present)
{
g_error("Analysis module '%s' not found", optionSyncAnalysis.arg);
}
+ syncState->processingModule->initProcessing(syncState, traceSetContext);
if (!optionSyncNull.present)
{
- syncState->analysisModule->initAnalysis(syncState);
syncState->matchingModule->initMatching(syncState);
+ syncState->analysisModule->initAnalysis(syncState);
}
- syncState->processingModule->initProcessing(syncState, traceSetContext);
// Process traceset
lttv_process_traceset_seek_time(traceSetContext, ltt_time_zero);