From 46b9e6d14dd54341e0fc10781fba35077cfac9a9 Mon Sep 17 00:00:00 2001 From: Lucas Schnorr Date: Tue, 24 May 2011 14:12:18 +0200 Subject: [PATCH] [trace] graphicator needs the platform to creata a graph of it details: - users should specify --cfg=tracing/platform:1 from now on --- src/instr/instr_interface.c | 2 +- tools/graphicator/graphicator.c | 4 ++-- tools/graphicator/graphicator.tesh | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index dce7e4844d..5c228a83aa 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -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 (); diff --git a/tools/graphicator/graphicator.c b/tools/graphicator/graphicator.c index 2f1a8878b8..72b8fceb5b 100644 --- a/tools/graphicator/graphicator.c +++ b/tools/graphicator/graphicator.c @@ -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; } diff --git a/tools/graphicator/graphicator.tesh b/tools/graphicator/graphicator.tesh index a78c3cdef7..8b9eacc02f 100644 --- a/tools/graphicator/graphicator.tesh +++ b/tools/graphicator/graphicator.tesh @@ -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 -- 2.20.1