Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix on smpi tracing: check if tracing is disabled
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 Aug 2010 11:32:28 +0000 (11:32 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 10 Aug 2010 11:32:28 +0000 (11:32 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8149 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/smpi_instr.c

index a53d3a2..1ab4ee5 100644 (file)
@@ -123,6 +123,8 @@ void TRACE_smpi_ptp_out (int rank, int src, int dst, const char *operation)
 
 void TRACE_smpi_send (int rank, int src, int dst)
 {
 
 void TRACE_smpi_send (int rank, int src, int dst)
 {
+  if (!IS_TRACING_SMPI) return;
+
   char key[100], str[100];
   _TRACE_smpi_put_key (src, dst, key, 100);
   pajeStartLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
   char key[100], str[100];
   _TRACE_smpi_put_key (src, dst, key, 100);
   pajeStartLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
@@ -131,6 +133,8 @@ void TRACE_smpi_send (int rank, int src, int dst)
 
 void TRACE_smpi_recv (int rank, int src, int dst)
 {
 
 void TRACE_smpi_recv (int rank, int src, int dst)
 {
+  if (!IS_TRACING_SMPI) return;
+
   char key[100], str[100];
   _TRACE_smpi_get_key (src, dst, key, 100);
   pajeEndLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
   char key[100], str[100];
   _TRACE_smpi_get_key (src, dst, key, 100);
   pajeEndLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",