X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a8cd62135619ad52e05ae1c929ef07e166e4260..43c98702056fac491ffe054cdba3f36e4c8dbf3a:/src/instr/instr_interface.c diff --git a/src/instr/instr_interface.c b/src/instr/instr_interface.c index e18be1f617..a2ff8b3fda 100644 --- a/src/instr/instr_interface.c +++ b/src/instr/instr_interface.c @@ -1,14 +1,15 @@ -/* Copyright (c) 2010. The SimGrid Team. +/* Copyright (c) 2010-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #include "simgrid_config.h" #ifdef HAVE_TRACING #include "instr/instr_private.h" -#include "surf/network_private.h" +#include "surf/surf.h" +#include "surf/surf_private.h" typedef enum { INSTR_US_DECLARE, @@ -374,7 +375,7 @@ static void instr_user_srcdst_variable(double time, unsigned int i; void *link; xbt_dynar_foreach (route, i, link) { - char *link_name = ((link_CM02_t)link)->lmm_resource.generic_resource.name; + char *link_name = (char*)surf_resource_name(link); instr_user_variable (time, link_name, variable, father_type, value, what, NULL, user_link_variables); } } @@ -397,7 +398,7 @@ int TRACE_platform_graph_export_graphviz (const char *filename) xbt_graph_t g = instr_routing_platform_graph(); if (g == NULL) return 0; instr_routing_platform_graph_export_graphviz (g, filename); - xbt_graph_free_graph (g, xbt_free, xbt_free, NULL); + xbt_graph_free_graph(g, xbt_free_f, xbt_free_f, NULL); return 1; }