Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] fix the graph extraction tracing of complex AS hierarchies
authorschnorr <Lucas.Schnorr@imag.fr>
Tue, 6 Mar 2012 12:27:02 +0000 (13:27 +0100)
committerschnorr <Lucas.Schnorr@imag.fr>
Tue, 6 Mar 2012 12:35:20 +0000 (13:35 +0100)
details:
- now it is harder to configure simgrid traces for the graph visualization
by hand, but since simgrid tracing creates them automatically with
parameters for that extent, it should be okay.
- these complex link names are exposed in the graph configuration
generated with --cfg=triva/uncategorized:uncat.plist and
--cfg=triva/categorized:cat.plist

src/instr/instr_routing.c

index c979c77..0802395 100644 (file)
@@ -87,7 +87,10 @@ static void linkContainers (container_t src, container_t dst, xbt_dict_t filter)
 
   //declare type
   char link_typename[INSTR_DEFAULT_STR_SIZE];
 
   //declare type
   char link_typename[INSTR_DEFAULT_STR_SIZE];
-  snprintf (link_typename, INSTR_DEFAULT_STR_SIZE, "%s-%s", src->type->name, dst->type->name);
+  snprintf (link_typename, INSTR_DEFAULT_STR_SIZE, "%s-%s%s-%s%s",
+            father->type->name,
+            src->type->name, src->type->id,
+            dst->type->name, dst->type->id);
   type_t link_type = PJ_type_get_or_null (link_typename, father->type);
   if (link_type == NULL){
     link_type = PJ_type_link_new (link_typename, father->type, src->type, dst->type);
   type_t link_type = PJ_type_get_or_null (link_typename, father->type);
   if (link_type == NULL){
     link_type = PJ_type_link_new (link_typename, father->type, src->type, dst->type);