Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
#139 :
[simgrid.git] / teshsuite / msg / cloud-simple / cloud-simple.c
index ad7b095..9c96a2c 100644 (file)
@@ -1,12 +1,14 @@
-/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "simgrid/msg.h"
+#include "simgrid/plugins/live_migration.h"
+
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
 
-static int computation_fun(int argc, char* argv[])
+static int computation_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   const char* pr_name   = MSG_process_get_name(MSG_process_self());
   const char* host_name = MSG_host_get_name(MSG_host_self());
@@ -104,7 +106,7 @@ static void launch_communication_worker(msg_host_t tx_host, msg_host_t rx_host)
   xbt_free(mbox);
 }
 
-static int master_main(int argc, char* argv[])
+static int master_main(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
 {
   msg_host_t pm0 = MSG_host_by_name("Fafard");
   msg_host_t pm1 = MSG_host_by_name("Tremblay");
@@ -263,6 +265,7 @@ int main(int argc, char* argv[])
 {
   /* Get the arguments */
   MSG_init(&argc, argv);
+  sg_vm_live_migration_plugin_init();
 
   /* load the platform file */
   const char* platform = "../../platforms/small_platform.xml";