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 f4927eb..c8e4196 100644 (file)
@@ -49,10 +49,12 @@ int TRACE_start_with_mask(const char *filename, int mask) {
     return 0;
   }
 
-  /* checking if the mask is good (only TRACE_PLATFORM for now) */
-  if (mask != TRACE_PLATFORM){
+  /* checking mask */
+  if (!(mask&TRACE_PLATFORM ||
+      mask&TRACE_TASK ||
+      mask&TRACE_PROCESS)){
     THROW0 (tracing_error, TRACE_ERROR_MASK,
-            "Only TRACE_PLATFORM mask is accepted for now");
+          "unknown tracing mask");
   }
 
   FILE *file = fopen(filename, "w");
@@ -87,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");
   }