Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kebab case
[simgrid.git] / examples / msg / trace-link-user-variables / trace-link-user-variables.c
index cb9f44f..90d43b6 100644 (file)
@@ -8,12 +8,8 @@
 
 /** @addtogroup MSG_examples
  *
- * - <b>tracing/link_user_variables.c</b>: This program demonstrates how to trace user variables associated to the
- * links of the platform file. You need to provide the name of the link to update the value of the variable associated
- * to that link. You might want to run this program with the following parameters:
- * --cfg=tracing:yes
- * --cfg=tracing/platform:yes
- * (See \ref tracing_tracing_options for details)
+ * - <b>Links: trace-link-user-variables/trace-link-user-variables.c</b>. You need to provide the name of the link to
+ *   update the value of the variable associated to that link.
  */
 
 //dump function to create and execute a task
@@ -24,7 +20,7 @@ static void create_and_execute_task (void)
   MSG_task_destroy (task);
 }
 
-static int master(int argc, char *argv[])
+static int trace_fun(int argc, char *argv[])
 {
   //set initial values for the link user variables this example only shows for links identified by "6" and "3" in the
   //platform file
@@ -69,9 +65,9 @@ int main(int argc, char *argv[])
   TRACE_link_variable_declare("Link_Capacity");
   TRACE_link_variable_declare_with_color ("Link_Utilization", "0.9 0.1 0.1");
 
-  //register "master" and "slave" functions and launch deployment
-  MSG_function_register("master", master);
-  MSG_function_register("slave", master);
+  //register functions and launch deployment
+  MSG_function_register("master", trace_fun);
+  MSG_function_register("worker", trace_fun);
   MSG_launch_application(argv[2]);
 
   MSG_main();