Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] setting the category of the simix communicate action
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:21 +0000 (09:56 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 7 Dec 2010 09:56:21 +0000 (09:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9035 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/msg_mailbox.c

index c4fb1ea..c49896e 100644 (file)
@@ -162,6 +162,9 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task,
   TRY {
     t_simdata->comm = SIMIX_req_comm_isend(mailbox, t_simdata->message_size,
                        t_simdata->rate, task, sizeof(void *), task);
+#ifdef HAVE_TRACING
+    SIMIX_req_set_category(t_simdata->comm, task->category);
+#endif
     SIMIX_req_comm_wait(t_simdata->comm, timeout);
   }