INCLUDES= -I$(top_srcdir)/include
AM_CFLAGS=-g
-#TESTS= test_rl test_sg
+TESTS= test_rl test_sg
EXTRA_DIST=chrono_deployment.xml
# AUTOMAKE variable definition
RL_SRC= \
gras/Transport/rl_transport.c gras/Transport/transport_plugin_tcp.c gras/Transport/transport_plugin_file.c \
\
+ gras/Virtu/rl_chrono.c \
gras/Virtu/rl_process.c gras/Virtu/rl_time.c gras/Virtu/rl_conditional.c
SG_SRC= \
msg/task.c msg/host.c msg/m_process.c msg/gos.c \
msg/global.c msg/environment.c msg/deployment.c \
\
- gras/chrono.c \
- \
gras/Transport/sg_transport.c gras/Transport/transport_plugin_sg.c \
\
+ gras/Virtu/sg_chrono.c \
gras/Virtu/sg_process.c gras/Virtu/sg_time.c gras/Virtu/sg_conditional.c
gras/DataDesc/ddt_parse.yy.c: gras/DataDesc/ddt_parse.yy.l
--- /dev/null
+/* $Id$ */
+
+/* rl_chrono.c - code benchmarking for emulation (fake for real life) */
+
+/* Copyright (c) 2005 Martin Quinson, Arnaud Legrand. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include "xbt/sysdep.h"
+#include "xbt/dict.h"
+#include "gras/chrono.h"
+#include "msg/msg.h"
+#include "portable.h"
+
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(chrono,gras,"Benchmarking used code");
+
+
+int gras_bench_always_begin(const char *location, int line)
+{
+ return 0;
+}
+
+int gras_bench_always_end(void)
+{
+ return 0;
+}
+
+int gras_bench_once_begin(const char *location, int line)
+{
+ return 0;
+}
+
+int gras_bench_once_end(void)
+{
+ return 0;
+}
+
+void gras_chrono_init(void)
+{
+}
/* $Id$ */
-/* chrono.c - code benchmarking for emulation */
+/* sg_chrono.c - code benchmarking for emulation */
/* Copyright (c) 2005 Martin Quinson, Arnaud Legrand. All rights reserved. */
static double timer = 0.0;
static int benchmarking = 0;
static xbt_dict_t benchmark_set = NULL;
-static double reference = .01019;
+static double reference = .00523066250047108838;
static double duration = 0.0;
static const char* __location__ = NULL;
/* First initialize the XBT */
xbt_init_defaultlog(argc,argv,defaultlog);
- /*gras_chrono_init(); * FIXME: Arnaud, WTF?? It depends on MSG!! */
+ gras_chrono_init();
/* module registrations:
* - declare process specific data we need (without creating them)
*/