Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
setting the type of the task so we can define its color in the swarm
[simgrid.git] / src / instr / interface.c
index 9976c69..c8e4196 100644 (file)
@@ -50,9 +50,9 @@ int TRACE_start_with_mask(const char *filename, int mask) {
   }
 
   /* checking mask */
-  if (mask != TRACE_PLATFORM &&
-      mask != TRACE_TASK &&
-      mask != TRACE_PROCESS){
+  if (!(mask&TRACE_PLATFORM ||
+      mask&TRACE_TASK ||
+      mask&TRACE_PROCESS)){
     THROW0 (tracing_error, TRACE_ERROR_MASK,
           "unknown tracing mask");
   }
@@ -89,6 +89,7 @@ int TRACE_start_with_mask(const char *filename, int mask) {
   if (IS_TRACING_TASKS){
     //tasks grouped by host
     pajeDefineContainerType("TASK", "HOST", "TASK");
+    pajeDefineStateType("category", "TASK", "category");
     pajeDefineStateType("presence", "TASK", "presence");
   }