Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] process container creation must be before simix request
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Feb 2011 15:26:59 +0000 (15:26 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Feb 2011 15:26:59 +0000 (15:26 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9588 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/m_process.c

index 3dfb684..17904de 100644 (file)
@@ -177,6 +177,10 @@ m_process_t MSG_process_create_with_environment(const char *name,
   process->data = data;
   xbt_swag_insert(process, msg_global->process_list);
 
+#ifdef HAVE_TRACING
+  TRACE_msg_process_create (process);
+#endif
+
   /* Let's create the process: SIMIX may decide to start it right now,
    * even before returning the flow control to us */
   SIMIX_req_process_create(&simdata->s_process, name, code, (void *) process, host->name,
@@ -192,10 +196,6 @@ m_process_t MSG_process_create_with_environment(const char *name,
     return NULL;
   }
 
-#ifdef HAVE_TRACING
-  TRACE_msg_process_create (process);
-#endif
-
   return process;
 }