Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] always set initial value for variables, if not, we get an invalid trace file
authorschnorr <Lucas.Schnorr@imag.fr>
Wed, 2 May 2012 15:46:41 +0000 (17:46 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Wed, 2 May 2012 15:46:41 +0000 (17:46 +0200)
examples/msg/tracing/ms.c

index 0b75720..575612e 100644 (file)
@@ -74,6 +74,9 @@ int slave(int argc, char *argv[])
   m_task_t task = NULL;
 
   TRACE_host_variable_set(MSG_host_get_name(MSG_host_self()), "is_slave", 1);
+  TRACE_host_variable_set(MSG_host_get_name(MSG_host_self()),
+                          "task_computation",
+                          0);
   while (1) {
     MSG_task_receive(&(task), "master_mailbox");