Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] remove the function that was used to save the one link routes of the platform...
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:44:31 +0000 (16:44 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 13 Dec 2010 16:44:31 +0000 (16:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9164 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/instr_private.h
src/instr/instr_surf.c
src/simdag/sd_global.c
src/simix/smx_environment.c

index 839cd84..ff29ff3 100644 (file)
@@ -112,7 +112,6 @@ void TRACE_surf_host_vivaldi_parse(char *host, double x, double y,
 void TRACE_surf_link_set_bandwidth(double date, void *link,
                                    double bandwidth);
 void TRACE_surf_link_set_latency(double date, void *link, double latency);
 void TRACE_surf_link_set_bandwidth(double date, void *link,
                                    double bandwidth);
 void TRACE_surf_link_set_latency(double date, void *link, double latency);
-void TRACE_surf_save_onelink(void);
 void TRACE_surf_action(surf_action_t surf_action, const char *category);
 
 //for tracing gtnets
 void TRACE_surf_action(surf_action_t surf_action, const char *category);
 
 //for tracing gtnets
index 9dee832..9db0eb1 100644 (file)
@@ -159,35 +159,6 @@ void TRACE_surf_host_vivaldi_parse(char *host, double x, double y,
   pajeSetVariable(0, "vivaldi_h", host, valuestr);
 }
 
   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())
 void TRACE_surf_action(surf_action_t surf_action, const char *category)
 {
   if (!TRACE_is_active())
index 29dbf96..01c3a62 100644 (file)
@@ -191,10 +191,6 @@ void SD_create_environment(const char *platform_file)
 
   DEBUG2("Workstation number: %d, link number: %d",
          SD_workstation_get_number(), SD_link_get_number());
 
   DEBUG2("Workstation number: %d, link number: %d",
          SD_workstation_get_number(), SD_link_get_number());
-
-#ifdef HAVE_TRACING
-  TRACE_surf_save_onelink();
-#endif
 }
 
 /**
 }
 
 /**
index 20ce044..6621fe9 100644 (file)
@@ -46,10 +46,6 @@ void SIMIX_create_environment(const char *file)
   end = xbt_os_time();
   DEBUG1("PARSE TIME: %lg", (end - start));
 
   end = xbt_os_time();
   DEBUG1("PARSE TIME: %lg", (end - start));
 
-#ifdef HAVE_TRACING
-  TRACE_surf_save_onelink();
-#endif
-
   xbt_dict_foreach(surf_model_resource_set(surf_workstation_model), cursor,
                    name, workstation) {
     SIMIX_host_create(name, workstation, NULL);
   xbt_dict_foreach(surf_model_resource_set(surf_workstation_model), cursor,
                    name, workstation) {
     SIMIX_host_create(name, workstation, NULL);