Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bummer: I increased the amount of displayed info to track down an issue in ruby,...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 3 Mar 2010 16:15:08 +0000 (16:15 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 3 Mar 2010 16:15:08 +0000 (16:15 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7175 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/msg/task.c
src/simix/smx_network.c

index b14d7c8..8dd6016 100644 (file)
  *  <em>message size</em> and some <em>private data</em>.
  */
 
  *  <em>message size</em> and some <em>private data</em>.
  */
 
+#ifdef HAVE_RUBY /* FIXME: KILLME */
+XBT_LOG_EXTERNAL_CATEGORY(ruby);
+#endif
+
 /********************************* Task **************************************/
 /** \ingroup m_task_management
  * \brief Creates a new #m_task_t.
 /********************************* Task **************************************/
 /** \ingroup m_task_management
  * \brief Creates a new #m_task_t.
@@ -73,7 +77,9 @@ m_task_t MSG_task_create(const char *name, double compute_duration,
   simdata->comp_amount = NULL;
   simdata->comm_amount = NULL;
 
   simdata->comp_amount = NULL;
   simdata->comm_amount = NULL;
 
-  CINFO2(root,"Created task %p: %s",task,name);
+#ifdef HAVE_RUBY /* FIXME: KILLME */
+  CINFO2(ruby,"Created task %p: %s",task,name);
+#endif
 
   return task;
 }
 
   return task;
 }
index 1089d17..de7af8c 100644 (file)
@@ -339,11 +339,19 @@ void SIMIX_network_copy_data(smx_comm_t comm)
   if(buff_size == 0)
     return;
 
   if(buff_size == 0)
     return;
 
+#ifdef HAVE_RUBY /* FIXME: KILLME */
   INFO6("Copying comm %p data from %s (%p) -> %s (%p) (%zu bytes)",
   INFO6("Copying comm %p data from %s (%p) -> %s (%p) (%zu bytes)",
-         comm,
-         comm->src_proc->smx_host->name, comm->src_buff,
-         comm->dst_proc->smx_host->name, comm->dst_buff,
-         buff_size);
+      comm,
+      comm->src_proc->smx_host->name, comm->src_buff,
+      comm->dst_proc->smx_host->name, comm->dst_buff,
+      buff_size);
+#else
+  DEBUG6("Copying comm %p data from %s (%p) -> %s (%p) (%zu bytes)",
+      comm,
+      comm->src_proc->smx_host->name, comm->src_buff,
+      comm->dst_proc->smx_host->name, comm->dst_buff,
+      buff_size);
+#endif
 
   memcpy(comm->dst_buff, comm->src_buff, buff_size);
 }
 
   memcpy(comm->dst_buff, comm->src_buff, buff_size);
 }