// start link
container_t msg = simgrid::instr::Container::byName(vm->getName());
simgrid::instr::Type* type = simgrid::instr::Type::getRootType()->byName("MSG_VM_LINK");
- new simgrid::instr::StartLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
+ new simgrid::instr::StartLinkEvent(MSG_get_clock(), simgrid::instr::Container::getRootContainer(), type, msg, "M",
+ key);
// destroy existing container of this vm
container_t existing_container = simgrid::instr::Container::byName(vm->getName());
delete existing_container;
// create new container on the new_host location
- new simgrid::instr::Container(vm->getCname(), simgrid::instr::INSTR_MSG_VM,
- simgrid::instr::Container::byName(ms->dst_pm->getName()));
+ new simgrid::instr::Container(vm->getCname(), "MSG_VM", simgrid::instr::Container::byName(ms->dst_pm->getName()));
// end link
msg = simgrid::instr::Container::byName(vm->getName());
type = simgrid::instr::Type::getRootType()->byName("MSG_VM_LINK");
- new simgrid::instr::EndLinkEvent(MSG_get_clock(), PJ_container_get_root(), type, msg, "M", key);
+ new simgrid::instr::EndLinkEvent(MSG_get_clock(), simgrid::instr::Container::getRootContainer(), type, msg, "M",
+ key);
}
// Inform the SRC that the migration has been correctly performed