Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] graphicator needs the platform to creata a graph of it
authorLucas Schnorr <Lucas.Schnorr@inf.ufrgs.br>
Tue, 24 May 2011 12:12:18 +0000 (14:12 +0200)
committerLucas Schnorr <Lucas.Schnorr@inf.ufrgs.br>
Tue, 24 May 2011 12:42:26 +0000 (14:42 +0200)
details:
- users should specify --cfg=tracing/platform:1 from now on

src/instr/instr_interface.c
tools/graphicator/graphicator.c
tools/graphicator/graphicator.tesh

index dce7e48..5c228a8 100644 (file)
@@ -155,7 +155,7 @@ const char *TRACE_node_name (xbt_node_t node)
 
 xbt_graph_t TRACE_platform_graph (void)
 {
-  if (!TRACE_is_active())
+  if (!TRACE_is_enabled())
     return NULL;
 
   return instr_routing_platform_graph ();
index 2f1a887..72b8fce 100644 (file)
@@ -31,14 +31,14 @@ int main(int argc, char **argv)
   //creating the graph structure
   xbt_graph_t graph = TRACE_platform_graph();
   if (graph == NULL){
-    XBT_INFO ("%s expects --cfg=tracing:1", argv[0]);
+    XBT_INFO ("%s expects --cfg=tracing:1 --cfg=tracing/platform:1", argv[0]);
   }else{
     TRACE_platform_graph_export_graphviz (graph, graphvizFile);
     XBT_INFO ("Output is in file %s", graphvizFile);
   }
   MSG_clean();
 #else
-  XBT_INFO ("works only if simgrid has tracing enabled.");
+  XBT_INFO ("works only if simgrid was compiled with tracing enabled.");
 #endif
   return 0;
 }
index a78c3cd..8b9eacc 100644 (file)
@@ -1,7 +1,8 @@
 #! ./tesh
 
-$ ${bindir:=.}/graphicator ${srcdir:=.}/teshsuite/simdag/platforms/one_cluster.xml --cfg=tracing:1 test.dot
+$ ${bindir:=.}/graphicator ${srcdir:=.}/teshsuite/simdag/platforms/one_cluster.xml --cfg=tracing:1 --cfg=tracing/platform:1 test.dot
 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing' to '1'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/platform' to '1'
 > [0.000000] [graphicator/INFO] Output is in file test.dot