#include <config.h>
#endif
+#include <stdarg.h>
#include <stdlib.h>
-#include "sync_chain_lttv.h"
+#include "sync_chain.h"
#include "event_processing_lttng_common.h"
#include "event_processing_lttng_null.h"
-#ifndef g_info
-#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
-#endif
-
-
// Functions common to all processing modules
-static void initProcessingLTTVNull(SyncState* const syncState,
- LttvTracesetContext* const traceSetContext);
+static void initProcessingLTTVNull(SyncState* const syncState, ...);
static void destroyProcessingLTTVNull(SyncState* const syncState);
static void finalizeProcessingLTTVNull(SyncState* const syncState);
.initProcessing= &initProcessingLTTVNull,
.destroyProcessing= &destroyProcessingLTTVNull,
.finalizeProcessing= &finalizeProcessingLTTVNull,
- .printProcessingStats= NULL,
- .writeProcessingGraphsPlots= NULL,
- .writeProcessingGraphsOptions= NULL,
};
* syncState: container for synchronization data.
* This function allocates these processingData members:
* hookListList
- * traceSetContext: set of LTTV traces
+ * traceSetContext: LttvTracesetContext*, set of LTTV traces
*/
-static void initProcessingLTTVNull(SyncState* const syncState,
- LttvTracesetContext* const traceSetContext)
+static void initProcessingLTTVNull(SyncState* const syncState, ...)
{
ProcessingDataLTTVNull* processingData;
+ 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);
- registerHooks(processingData->hookListList, traceSetContext,
- &processEventLTTVNull, syncState,
+ registerHooks(processingData->hookListList,
+ processingData->traceSetContext, &processEventLTTVNull, syncState,
syncState->matchingModule->canMatch);
}