X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d4bd7b4cb322e0749639c724069b0613848b340f..a3bd734d0a2fdda1ef73434c529c938b773bb127:/examples/msg/trace-link-user-variables/trace-link-user-variables.c diff --git a/examples/msg/trace-link-user-variables/trace-link-user-variables.c b/examples/msg/trace-link-user-variables/trace-link-user-variables.c index cb9f44fd8f..57a62157ca 100644 --- a/examples/msg/trace-link-user-variables/trace-link-user-variables.c +++ b/examples/msg/trace-link-user-variables/trace-link-user-variables.c @@ -1,21 +1,10 @@ -/* Copyright (c) 2012-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2016. 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 -/** @addtogroup MSG_examples - * - * - tracing/link_user_variables.c: 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) - */ - //dump function to create and execute a task static void create_and_execute_task (void) { @@ -24,7 +13,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 +58,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();