- /* get all host from host_containers */
- xbt_dict_foreach(host_containers, cursor, key, value) {
- pajeDestroyContainer (MSG_get_clock(), "HOST", key);
+ //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);
+ }