X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0a004a244f170c5ce7d077a174884ff1b4d14503..cc375ad134c19925e1e343bae932be21cf8a8caf:/src/instr/instr_routing.c diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 0dbd2c448e..0b4b84dd86 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "instr/instr_private.h" +#include "mc/mc.h" #ifdef HAVE_TRACING #include "surf/surf_private.h" @@ -117,10 +118,14 @@ static void linkContainers (container_t src, container_t dst, xbt_dict_t filter) //create the link static long long counter = 0; + + if(MC_is_active()) + MC_ignore_data_bss(&counter, sizeof(counter)); + char key[INSTR_DEFAULT_STR_SIZE]; snprintf (key, INSTR_DEFAULT_STR_SIZE, "%lld", counter++); - new_pajeStartLink(SIMIX_get_clock(), father, link_type, src, "G", key); - new_pajeEndLink(SIMIX_get_clock(), father, link_type, dst, "G", key); + new_pajeStartLink(SIMIX_get_clock(), father, link_type, src, "topology", key); + new_pajeEndLink(SIMIX_get_clock(), father, link_type, dst, "topology", key); XBT_DEBUG (" linkContainers %s <-> %s", src->name, dst->name); } @@ -139,6 +144,10 @@ static int graph_extraction_filter_out (container_t c1, container_t c2) static void recursiveGraphExtraction (AS_t rc, container_t container, xbt_dict_t filter) { + if (!TRACE_platform_topology()){ + XBT_DEBUG("Graph extracing disable by user."); + return; + } XBT_DEBUG ("Graph extraction for routing_component = %s", rc->name); if (!xbt_dict_is_empty(rc->routing_sons)){ xbt_dict_cursor_t cursor = NULL; @@ -480,7 +489,7 @@ static xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_node_ const char *sn = instr_node_name (s); const char *dn = instr_node_name (d); int len = strlen(sn)+strlen(dn)+1; - char *name = (char*)malloc(len * sizeof(char)); + char *name = (char*)xbt_malloc(len * sizeof(char)); snprintf (name, len, "%s%s", sn, dn);