Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
surf actions might arrive here without category
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 13 Oct 2010 08:05:37 +0000 (08:05 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 13 Oct 2010 08:05:37 +0000 (08:05 +0000)
details:
- if category is null, it means that caller did not
find a category to this surf action, or because the surf
action should not be traced

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8407 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/surf_instr.c

index 6f48031..2f9f930 100644 (file)
@@ -260,9 +260,9 @@ void TRACE_surf_action(surf_action_t surf_action, const char *category)
     return;
   if (!IS_TRACING_PLATFORM)
     return;
     return;
   if (!IS_TRACING_PLATFORM)
     return;
-  if (!category) {
-    xbt_die("invalid tracing category");
-  }
+  if (!category)
+    return;
+
   surf_action->category = xbt_new(char, strlen(category) + 1);
   strncpy(surf_action->category, category, strlen(category) + 1);
 }
   surf_action->category = xbt_new(char, strlen(category) + 1);
   strncpy(surf_action->category, category, strlen(category) + 1);
 }