{
MSG_error_t res = MSG_OK;
+ MSG_global_init(&argc,argv);
+ if (argc < 3) {
+ printf ("Usage: %s platform_file deployment_file\n",argv[0]);
+ printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
+ exit(1);
+ }
+
//starting the simulation tracing
- TRACE_start ("categories.trace");
+ TRACE_start ();
//declaring user categories
TRACE_category ("compute");
TRACE_category ("data");
TRACE_category ("finalize");
- MSG_global_init(&argc,argv);
- if (argc < 3) {
- printf ("Usage: %s platform_file deployment_file\n",argv[0]);
- printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
- exit(1);
- }
res = test_all(argv[1],argv[2]);
MSG_clean();
p Tracing multiple categories master/slave application
-$ $SG_TEST_EXENV tracing/categories$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV tracing/categories$EXEEXT --cfg=tracing/filename:categories.trace --cfg=tracing/platform:1 ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'categories.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/platform' to '1'
> [4.018878] [msg_test/INFO] Simulation time 4.01888
$ $SG_TEST_EXENV cat$EXEEXT ${srcdir:=.}/tracing/../categories.trace
{
MSG_error_t res = MSG_OK;
+ MSG_global_init(&argc,argv);
+ if (argc < 3) {
+ printf ("Usage: %s platform_file deployment_file\n",argv[0]);
+ printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
+ exit(1);
+ }
+
//starting the simulation tracing
- TRACE_start ("ms.trace");
+ TRACE_start ();
//declaring user variables
TRACE_host_variable_declare ("is_slave");
TRACE_category ("compute");
TRACE_category ("finalize");
- MSG_global_init(&argc,argv);
- if (argc < 3) {
- printf ("Usage: %s platform_file deployment_file\n",argv[0]);
- printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
- exit(1);
- }
res = test_all(argv[1],argv[2]);
MSG_clean();
p Tracing master/slave application
-$ $SG_TEST_EXENV tracing/ms$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV tracing/ms$EXEEXT --cfg=tracing/filename:ms.trace --cfg=tracing/platform:1 ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'ms.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/platform' to '1'
> [4.441598] [msg_test/INFO] Simulation time 4.4416
$ $SG_TEST_EXENV cat$EXEEXT ${srcdir:=.}/tracing/../ms.trace
{
MSG_error_t res = MSG_OK;
- //starting the simulation trace
- TRACE_start_with_mask ("procmig.trace", TRACE_PROCESS);
- TRACE_category ("emigrant");
-
/* Argument checking */
MSG_global_init(&argc, argv);
if (argc < 3) {
exit(1);
}
+ //starting the simulation trace
+ TRACE_start ();
+ TRACE_category ("emigrant");
+
/* Simulation setting */
MSG_create_environment(argv[1]);
p Tracing processes
-$ $SG_TEST_EXENV tracing/procmig$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/procmig-deploy.xml
+$ $SG_TEST_EXENV tracing/procmig$EXEEXT --cfg=tracing/filename:procmig.trace --cfg=tracing/msg/process:1 ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/procmig-deploy.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'procmig.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/process' to '1'
> [Fafard:emigrant:(1) 0.000000] [msg_test/INFO] Setting process category
> [Fafard:emigrant:(1) 2.000000] [msg_test/INFO] Migrating to Tremblay
> [Tremblay:emigrant:(1) 4.000000] [msg_test/INFO] Migrating to Jupiter
{
MSG_error_t res = MSG_OK;
- //starting the simulation tracing
- TRACE_start_with_mask ("tasks.trace", TRACE_TASK);
-
- //declaring user categories
- TRACE_category ("compute");
- TRACE_category ("finalize");
-
MSG_global_init(&argc,argv);
if (argc < 3) {
printf ("Usage: %s platform_file deployment_file\n",argv[0]);
printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
exit(1);
}
+
+ //starting the simulation tracing
+ TRACE_start ();
+
+ //declaring user categories
+ TRACE_category ("compute");
+ TRACE_category ("finalize");
+
res = test_all(argv[1],argv[2]);
MSG_clean();
p Tracing tasks
-$ $SG_TEST_EXENV tracing/tasks$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV tracing/tasks$EXEEXT --cfg=tracing/msg/task:1 --cfg=tracing/filename:tasks.trace ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/task' to '1'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'tasks.trace'
> [Tremblay:master:(1) 0.000000] [msg_test/INFO] master 20 50000000.000000 1000000.000000 5
> [Tremblay:slave:(2) 0.002339] [msg_test/INFO] Executing task 50000000.000000
> [Jupiter:slave:(3) 0.168300] [msg_test/INFO] Executing task 50000000.000000
{
MSG_error_t res = MSG_OK;
+ MSG_global_init(&argc,argv);
+ if (argc < 3) {
+ printf ("Usage: %s platform_file deployment_file\n",argv[0]);
+ printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
+ exit(1);
+ }
+
//starting the simulation tracing with the TRACE_VOLUME mask
// - the communication volume among processes expects that:
// - the processes involved have a category
// - the tasks sent have a category
- TRACE_start_with_mask ("volume.trace", TRACE_VOLUME);
+ TRACE_start ();
//declaring user categories (for tasks)
TRACE_category ("compute");
TRACE_category ("master");
TRACE_category ("slave");
- MSG_global_init(&argc,argv);
- if (argc < 3) {
- printf ("Usage: %s platform_file deployment_file\n",argv[0]);
- printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);
- exit(1);
- }
res = test_all(argv[1],argv[2]);
MSG_clean();
p Tracing communications among processes of a master/slave application
-$ $SG_TEST_EXENV tracing/volume$EXEEXT ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+$ $SG_TEST_EXENV tracing/volume$EXEEXT --cfg=tracing/filename:volume.trace --cfg=tracing/msg/volume:1 ${srcdir:=.}/tracing/platform.xml ${srcdir:=.}/tracing/deployment.xml
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/filename' to 'volume.trace'
+> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'tracing/msg/volume' to '1'
> [206.703278] [msg_test/INFO] Simulation time 206.703