Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
trace: when simix action gets its category, pass it to surf action
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 8 Oct 2010 16:00:14 +0000 (16:00 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 8 Oct 2010 16:00:14 +0000 (16:00 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8389 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_action.c
src/simix/smx_network.c

index 76dd47b..6aebc61 100644 (file)
@@ -103,6 +103,7 @@ smx_action_t SIMIX_action_execute(smx_host_t host, const char *name,
   DEBUG1("Create execute action %p", act);
 #ifdef HAVE_TRACING
   TRACE_smx_action_execute (act);
+  TRACE_surf_action (act->surf_action, act->category);
 #endif
   return act;
 }
index 3c3ef25..7af536e 100644 (file)
@@ -231,6 +231,7 @@ static XBT_INLINE void SIMIX_communication_start(smx_comm_t comm)
                                          comm->task_size, comm->rate);
 #ifdef HAVE_TRACING
     TRACE_smx_action_communicate (comm->act, comm->src_proc);
+    TRACE_surf_action (comm->act->surf_action, comm->act->category);
 #endif
 
     /* If any of the process is suspend, create the action but stop its execution,