X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0d9ca8229eceacdd149c4417b8dde670c48fbbe2..27522f54798d48ca54ec41a4d203f650cbfacdfd:/src/instr/instr_surf.c diff --git a/src/instr/instr_surf.c b/src/instr/instr_surf.c index 9dee8321c9..9db0eb1fca 100644 --- a/src/instr/instr_surf.c +++ b/src/instr/instr_surf.c @@ -159,35 +159,6 @@ void TRACE_surf_host_vivaldi_parse(char *host, double x, double y, pajeSetVariable(0, "vivaldi_h", host, valuestr); } -extern routing_global_t global_routing; -void TRACE_surf_save_onelink(void) -{ - if (!TRACE_is_active()) - return; - - //get the onelinks from the parsed platform - xbt_dynar_t onelink_routes = global_routing->get_onelink_routes(); - if (!onelink_routes) - return; - - //save them in trace file - onelink_t onelink; - unsigned int iter; - xbt_dynar_foreach(onelink_routes, iter, onelink) { - char *src = onelink->src; - char *dst = onelink->dst; - void *link = onelink->link_ptr; - - if (TRACE_surf_link_is_traced(link)) { - char resource[100]; - snprintf(resource, 100, "%p", link); - - pajeNewEvent(0, "source", resource, src); - pajeNewEvent(0, "destination", resource, dst); - } - } -} - void TRACE_surf_action(surf_action_t surf_action, const char *category) { if (!TRACE_is_active())