}
}
-void TRACE_msg_vm_kill(msg_vm_t vm)
-{
- if (TRACE_msg_vm_is_enabled()){
+void TRACE_msg_vm_kill(msg_vm_t vm) {
+ if (TRACE_msg_vm_is_enabled()) {
int len = INSTR_DEFAULT_STR_SIZE;
char str[INSTR_DEFAULT_STR_SIZE];
//kill means that this vm no longer exists, let's destroy it
- PJ_container_free (PJ_container_get (instr_vm_id(vm, str, len)));
+ container_t process = PJ_container_get (instr_vm_id(vm, str, len));
+ PJ_container_remove_from_parent (process);
+ PJ_container_free (process);
}
}
//if child1 is not child2
if (strcmp (child1_name, child2_name) == 0) continue;
- if (graph_extraction_filter_out (child1, NULL)) continue;
- xbt_dict_foreach(container->children, cursor2, child2_name, child2) {
- if (graph_extraction_filter_out (child2, child1)) continue;
- XBT_DEBUG ("get_route from %s to %s", child1_name, child2_name);
-
//get the route
sg_platf_route_cbarg_t route = xbt_new0(s_sg_platf_route_cbarg_t,1);
route->link_list = xbt_dynar_new(sizeof(sg_routing_link_t),NULL);