+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Michel Dagenais
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
/* This module inserts a hook in the program main loop. This hook processes
all the events in the main tracefile. */
#include <lttv/hook.h>
#include <lttv/option.h>
#include <lttv/module.h>
-#include <lttv/processTrace.h>
+#include <lttv/tracecontext.h>
#include <lttv/state.h>
#include <lttv/stats.h>
#include <ltt/trace.h>
}
-G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
+static void init()
{
LttvAttributeValue value;
}
-G_MODULE_EXPORT void destroy()
+static void destroy()
{
guint i, nb;
lttv_traceset_destroy(traceset);
}
+
+LTTV_MODULE("batchAnalysis", "Batch processing of a trace", \
+ "Run through a trace calling all the registered hooks", \
+ init, destroy, "state", "stats", "option")