1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "instr/instr_private.h"
12 XBT_LOG_NEW_CATEGORY(instr, "Logging the behavior of the tracing system (used for Visualization/Analysis of simulations)");
13 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_config, instr, "Configuration");
15 #define OPT_TRACING "tracing"
16 #define OPT_TRACING_PLATFORM "tracing/platform"
17 #define OPT_TRACING_TOPOLOGY "tracing/platform/topology"
18 #define OPT_TRACING_SMPI "tracing/smpi"
19 #define OPT_TRACING_SMPI_GROUP "tracing/smpi/group"
20 #define OPT_TRACING_SMPI_COMPUTING "tracing/smpi/computing"
21 #define OPT_TRACING_CATEGORIZED "tracing/categorized"
22 #define OPT_TRACING_UNCATEGORIZED "tracing/uncategorized"
23 #define OPT_TRACING_MSG_PROCESS "tracing/msg/process"
24 #define OPT_TRACING_FILENAME "tracing/filename"
25 #define OPT_TRACING_BUFFER "tracing/buffer"
26 #define OPT_TRACING_ONELINK_ONLY "tracing/onelink_only"
27 #define OPT_TRACING_DISABLE_DESTROY "tracing/disable_destroy"
28 #define OPT_TRACING_BASIC "tracing/basic"
29 #define OPT_TRACING_COMMENT "tracing/comment"
30 #define OPT_TRACING_COMMENT_FILE "tracing/comment_file"
31 #define OPT_TRIVA_UNCAT_CONF "triva/uncategorized"
32 #define OPT_TRIVA_CAT_CONF "triva/categorized"
33 #define OPT_VIVA_UNCAT_CONF "viva/uncategorized"
34 #define OPT_VIVA_CAT_CONF "viva/categorized"
36 static int trace_enabled;
37 static int trace_platform;
38 static int trace_platform_topology;
39 static int trace_smpi_enabled;
40 static int trace_smpi_grouped;
41 static int trace_smpi_computing;
42 static int trace_categorized;
43 static int trace_uncategorized;
44 static int trace_msg_process_enabled;
45 static int trace_buffer;
46 static int trace_onelink_only;
47 static int trace_disable_destroy;
48 static int trace_basic;
50 static int trace_configured = 0;
51 static int trace_active = 0;
53 static void TRACE_getopts(void)
55 trace_enabled = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING);
56 trace_platform = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_PLATFORM);
57 trace_platform_topology = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_TOPOLOGY);
58 trace_smpi_enabled = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_SMPI);
59 trace_smpi_grouped = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_SMPI_GROUP);
60 trace_smpi_computing = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_SMPI_COMPUTING);
61 trace_categorized = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_CATEGORIZED);
62 trace_uncategorized = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_UNCATEGORIZED);
63 trace_msg_process_enabled = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_MSG_PROCESS);
64 trace_buffer = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_BUFFER);
65 trace_onelink_only = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_ONELINK_ONLY);
66 trace_disable_destroy = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_DISABLE_DESTROY);
67 trace_basic = xbt_cfg_get_int(_surf_cfg_set, OPT_TRACING_BASIC);
74 // tracing system must be:
75 // - enabled (with --cfg=tracing:1)
76 // - already configured (TRACE_global_init already called)
77 if (!(TRACE_is_enabled() && TRACE_is_configured())){
81 XBT_DEBUG("Tracing starts");
83 /* open the trace file */
87 if (trace_active == 1){
88 THROWF (tracing_error, 0, "Tracing is already active");
91 XBT_DEBUG ("Tracing is on");
93 /* other trace initialization */
94 created_categories = xbt_dict_new_homogeneous(xbt_free);
95 declared_marks = xbt_dict_new_homogeneous (xbt_free);
96 user_host_variables = xbt_dict_new_homogeneous (xbt_free);
97 user_link_variables = xbt_dict_new_homogeneous (xbt_free);
108 TRACE_generate_triva_uncat_conf();
109 TRACE_generate_triva_cat_conf();
110 TRACE_generate_viva_uncat_conf();
111 TRACE_generate_viva_cat_conf();
113 /* dump trace buffer */
114 TRACE_last_timestamp_to_dump = surf_get_clock();
115 TRACE_paje_dump_buffer(1);
117 /* destroy all data structures of tracing (and free) */
118 PJ_container_free_all();
120 PJ_container_release();
122 TRACE_smpi_release();
123 TRACE_surf_release();
124 xbt_dict_free(&user_link_variables);
125 xbt_dict_free(&user_host_variables);
126 xbt_dict_free(&declared_marks);
127 xbt_dict_free(&created_categories);
129 /* close the trace file */
132 /* de-activate trace */
134 XBT_DEBUG ("Tracing is off");
135 XBT_DEBUG("Tracing system is shutdown");
139 int TRACE_needs_platform (void)
141 return TRACE_msg_process_is_enabled() ||
142 TRACE_categorized() ||
143 TRACE_uncategorized() ||
145 (TRACE_smpi_is_enabled() && TRACE_smpi_is_grouped());
148 int TRACE_is_enabled(void)
150 return trace_enabled;
153 int TRACE_platform(void)
155 return trace_platform;
158 int TRACE_platform_topology(void)
160 return trace_platform_topology;
163 int TRACE_is_configured(void)
165 return trace_configured;
168 int TRACE_smpi_is_enabled(void)
170 return (trace_smpi_enabled || TRACE_smpi_is_grouped())
171 && TRACE_is_enabled();
174 int TRACE_smpi_is_grouped(void)
176 return trace_smpi_grouped;
179 int TRACE_smpi_is_computing(void)
181 return trace_smpi_computing;
185 int TRACE_categorized (void)
187 return trace_categorized;
190 int TRACE_uncategorized (void)
192 return trace_uncategorized;
195 int TRACE_msg_process_is_enabled(void)
197 return trace_msg_process_enabled && TRACE_is_enabled();
200 int TRACE_buffer (void)
202 return trace_buffer && TRACE_is_enabled();
205 int TRACE_onelink_only (void)
207 return trace_onelink_only && TRACE_is_enabled();
210 int TRACE_disable_destroy (void)
212 return trace_disable_destroy && TRACE_is_enabled();
215 int TRACE_basic (void)
217 return trace_basic && TRACE_is_enabled();
220 char *TRACE_get_comment (void)
222 return xbt_cfg_get_string(_surf_cfg_set, OPT_TRACING_COMMENT);
225 char *TRACE_get_comment_file (void)
227 return xbt_cfg_get_string(_surf_cfg_set, OPT_TRACING_COMMENT_FILE);
230 char *TRACE_get_filename(void)
232 return xbt_cfg_get_string(_surf_cfg_set, OPT_TRACING_FILENAME);
235 char *TRACE_get_triva_uncat_conf (void)
237 return xbt_cfg_get_string(_surf_cfg_set, OPT_TRIVA_UNCAT_CONF);
240 char *TRACE_get_triva_cat_conf (void)
242 return xbt_cfg_get_string(_surf_cfg_set, OPT_TRIVA_CAT_CONF);
245 char *TRACE_get_viva_uncat_conf (void)
247 return xbt_cfg_get_string(_surf_cfg_set, OPT_VIVA_UNCAT_CONF);
250 char *TRACE_get_viva_cat_conf (void)
252 return xbt_cfg_get_string(_surf_cfg_set, OPT_VIVA_CAT_CONF);
255 void TRACE_global_init(int *argc, char **argv)
257 /* name of the tracefile */
258 char *default_tracing_filename = xbt_strdup("simgrid.trace");
259 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_FILENAME,
260 "Trace file created by the instrumented SimGrid.",
261 xbt_cfgelm_string, &default_tracing_filename, 1, 1,
265 int default_tracing = 0;
266 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING,
268 xbt_cfgelm_int, &default_tracing, 0, 1,
271 /* register platform in the trace */
272 int default_tracing_platform = 0;
273 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_PLATFORM,
274 "Register the platform in the trace as a hierarchy.",
275 xbt_cfgelm_int, &default_tracing_platform, 0, 1,
278 /* register platform in the trace */
279 int default_tracing_platform_topology = 1;
280 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_TOPOLOGY,
281 "Register the platform topology in the trace as a graph.",
282 xbt_cfgelm_int, &default_tracing_platform_topology, 0, 1,
286 int default_tracing_smpi = 0;
287 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_SMPI,
288 "Tracing of the SMPI interface.",
289 xbt_cfgelm_int, &default_tracing_smpi, 0, 1,
293 int default_tracing_smpi_grouped = 0;
294 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_SMPI_GROUP,
295 "Group MPI processes by host.",
296 xbt_cfgelm_int, &default_tracing_smpi_grouped, 0, 1,
300 int default_tracing_smpi_computing = 0;
301 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_SMPI_COMPUTING,
302 "Generate states for timing out of SMPI parts of the application",
303 xbt_cfgelm_int, &default_tracing_smpi_computing, 0, 1,
306 /* tracing categorized resource utilization traces */
307 int default_tracing_categorized = 0;
308 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_CATEGORIZED,
309 "Tracing categorized resource utilization of hosts and links.",
310 xbt_cfgelm_int, &default_tracing_categorized, 0, 1,
313 /* tracing uncategorized resource utilization */
314 int default_tracing_uncategorized = 0;
315 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_UNCATEGORIZED,
316 "Tracing uncategorized resource utilization of hosts and links.",
317 xbt_cfgelm_int, &default_tracing_uncategorized, 0, 1,
321 int default_tracing_msg_process = 0;
322 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_MSG_PROCESS,
323 "Tracing of MSG process behavior.",
324 xbt_cfgelm_int, &default_tracing_msg_process, 0, 1,
328 int default_buffer = 1;
329 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_BUFFER,
330 "Buffer trace events to put them in temporal order.",
331 xbt_cfgelm_int, &default_buffer, 0, 1,
334 /* tracing one link only */
335 int default_onelink_only = 0;
336 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_ONELINK_ONLY,
337 "Use only routes with one link to trace platform.",
338 xbt_cfgelm_int, &default_onelink_only, 0, 1,
341 /* disable destroy */
342 int default_disable_destroy = 0;
343 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_DISABLE_DESTROY,
344 "Disable platform containers destruction.",
345 xbt_cfgelm_int, &default_disable_destroy, 0, 1,
348 /* basic -- Avoid extended events (impoverished trace file) */
349 int default_basic = 0;
350 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_BASIC,
351 "Avoid extended events (impoverished trace file).",
352 xbt_cfgelm_int, &default_basic, 0, 1,
356 char *default_tracing_comment = xbt_strdup ("");
357 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_COMMENT,
358 "Comment to be added on the top of the trace file.",
359 xbt_cfgelm_string, &default_tracing_comment, 1, 1,
363 char *default_tracing_comment_file = xbt_strdup ("");
364 xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_COMMENT_FILE,
365 "The contents of the file are added to the top of the trace file as comment.",
366 xbt_cfgelm_string, &default_tracing_comment_file, 1, 1,
369 /* Triva graph configuration for uncategorized tracing */
370 char *default_triva_uncat_conf_file = xbt_strdup ("");
371 xbt_cfg_register(&_surf_cfg_set, OPT_TRIVA_UNCAT_CONF,
372 "Triva Graph configuration file for uncategorized resource utilization traces.",
373 xbt_cfgelm_string, &default_triva_uncat_conf_file, 1, 1,
376 /* Triva graph configuration for uncategorized tracing */
377 char *default_triva_cat_conf_file = xbt_strdup ("");
378 xbt_cfg_register(&_surf_cfg_set, OPT_TRIVA_CAT_CONF,
379 "Triva Graph configuration file for categorized resource utilization traces.",
380 xbt_cfgelm_string, &default_triva_cat_conf_file, 1, 1,
383 /* Viva graph configuration for uncategorized tracing */
384 char *default_viva_uncat_conf_file = xbt_strdup ("");
385 xbt_cfg_register(&_surf_cfg_set, OPT_VIVA_UNCAT_CONF,
386 "Viva Graph configuration file for uncategorized resource utilization traces.",
387 xbt_cfgelm_string, &default_viva_uncat_conf_file, 1, 1,
390 /* Viva graph configuration for uncategorized tracing */
391 char *default_viva_cat_conf_file = xbt_strdup ("");
392 xbt_cfg_register(&_surf_cfg_set, OPT_VIVA_CAT_CONF,
393 "Viva Graph configuration file for categorized resource utilization traces.",
394 xbt_cfgelm_string, &default_viva_cat_conf_file, 1, 1,
397 /* instrumentation can be considered configured now */
398 trace_configured = 1;
401 static void print_line (const char *option, const char *desc, const char *longdesc, int detailed)
403 char str[INSTR_DEFAULT_STR_SIZE];
404 snprintf (str, INSTR_DEFAULT_STR_SIZE, "--cfg=%s ", option);
406 int len = strlen (str);
407 printf ("%s%*.*s %s\n", str, 30-len, 30-len, "", desc);
408 if (!!longdesc && detailed){
409 printf ("%s\n\n", longdesc);
413 void TRACE_help (int detailed)
416 "Description of the tracing options accepted by this simulator:\n\n");
417 print_line (OPT_TRACING, "Enable the tracing system",
418 " It activates the tracing system and register the simulation platform\n"
419 " in the trace file. You have to enable this option to others take effect.",
421 print_line (OPT_TRACING_CATEGORIZED, "Trace categorized resource utilization",
422 " It activates the categorized resource utilization tracing. It should\n"
423 " be enabled if tracing categories are used by this simulator.",
425 print_line (OPT_TRACING_UNCATEGORIZED, "Trace uncategorized resource utilization",
426 " It activates the uncategorized resource utilization tracing. Use it if\n"
427 " this simulator do not use tracing categories and resource use have to be\n"
430 print_line (OPT_TRACING_FILENAME, "Filename to register traces",
431 " A file with this name will be created to register the simulation. The file\n"
432 " is in the Paje format and can be analyzed using Triva or Paje visualization\n"
433 " tools. More information can be found in these webpages:\n"
434 " http://triva.gforge.inria.fr/\n"
435 " http://paje.sourceforge.net/",
437 print_line (OPT_TRACING_SMPI, "Trace the MPI Interface (SMPI)",
438 " This option only has effect if this simulator is SMPI-based. Traces the MPI\n"
439 " interface and generates a trace that can be analyzed using Gantt-like\n"
440 " visualizations. Every MPI function (implemented by SMPI) is transformed in a\n"
441 " state, and point-to-point communications can be analyzed with arrows.",
443 print_line (OPT_TRACING_SMPI_GROUP, "Group MPI processes by host (SMPI)",
444 " This option only has effect if this simulator is SMPI-based. The processes\n"
445 " are grouped by the hosts where they were executed.",
447 print_line (OPT_TRACING_SMPI_COMPUTING, "Generates a \" Computing \" State",
448 " This option aims at tracing computations in the application, outside SMPI\n"
449 " to allow further study of simulated or real computation time",
451 print_line (OPT_TRACING_MSG_PROCESS, "Trace processes behavior (MSG)",
452 " This option only has effect if this simulator is MSG-based. It traces the\n"
453 " behavior of all categorized MSG processes, grouping them by hosts. This option\n"
454 " can be used to track process location if this simulator has process migration.",
456 print_line (OPT_TRACING_BUFFER, "Buffer events to put them in temporal order",
457 " This option put some events in a time-ordered buffer using the insertion\n"
458 " sort algorithm. The process of acquiring and releasing locks to access this\n"
459 " buffer and the cost of the sorting algorithm make this process slow. The\n"
460 " simulator performance can be severely impacted if this option is activated,\n"
461 " but you are sure to get a trace file with events sorted.",
463 print_line (OPT_TRACING_ONELINK_ONLY, "Consider only one link routes to trace platform",
464 " This option changes the way SimGrid register its platform on the trace file.\n"
465 " Normally, the tracing considers all routes (no matter their size) on the\n"
466 " platform file to re-create the resource topology. If this option is activated,\n"
467 " only the routes with one link are used to register the topology within an AS.\n"
468 " Routes among AS continue to be traced as usual.",
470 print_line (OPT_TRACING_DISABLE_DESTROY, "Disable platform containers destruction",
471 " Disable the destruction of containers at the end of simulation. This can be\n"
472 " used with simulators that have a different notion of time (different from\n"
473 " the simulated time).",
475 print_line (OPT_TRACING_BASIC, "Avoid extended events (impoverished trace file).",
476 " Some visualization tools are not able to parse correctly the Paje file format.\n"
477 " Use this option if you are using one of these tools to visualize the simulation\n"
478 " trace. Keep in mind that the trace might be incomplete, without all the\n"
479 " information that would be registered otherwise.",
481 print_line (OPT_TRACING_COMMENT, "Comment to be added on the top of the trace file.",
482 " Use this to add a comment line to the top of the trace file.",
484 print_line (OPT_TRACING_COMMENT_FILE, "File contents added to trace file as comment.",
485 " Use this to add the contents of a file to the top of the trace file as comment.",
487 print_line (OPT_TRIVA_UNCAT_CONF, "Generate graph configuration for Triva",
488 " This option can be used in all types of simulators build with SimGrid\n"
489 " to generate a uncategorized resource utilization graph to be used as\n"
490 " configuration for the Triva visualization analysis. This option\n"
491 " can be used with tracing/categorized:1 and tracing:1 options to\n"
492 " analyze an unmodified simulator before changing it to contain\n"
495 print_line (OPT_TRIVA_CAT_CONF, "generate uncategorized graph configuration for Triva",
496 " This option can be used if this simulator uses tracing categories\n"
497 " in its code. The file specified by this option holds a graph configuration\n"
498 " file for the Triva visualization tool that can be used to analyze a categorized\n"
499 " resource utilization.",
501 print_line (OPT_VIVA_UNCAT_CONF, "Generate a graph configuration for Viva",
502 " This option can be used in all types of simulators build with SimGrid\n"
503 " to generate a uncategorized resource utilization graph to be used as\n"
504 " configuration for the Viva visualization tool. This option\n"
505 " can be used with tracing/categorized:1 and tracing:1 options to\n"
506 " analyze an unmodified simulator before changing it to contain\n"
509 print_line (OPT_VIVA_CAT_CONF, "Generate an uncategorized graph configuration for Viva",
510 " This option can be used if this simulator uses tracing categories\n"
511 " in its code. The file specified by this option holds a graph configuration\n"
512 " file for the Viva visualization tool that can be used to analyze a categorized\n"
513 " resource utilization.",
515 print_line (OPT_TRACING_TOPOLOGY, "Register the platform topology as a graph",
516 " This option (enabled by default) can be used to disable the tracing of\n"
517 " the platform topology in the trace file. Sometimes, such task is really\n"
518 " time consuming, since it must get the route from each host ot other hosts\n"
519 " within the same Autonomous System (AS).",
523 static void output_types (const char *name, xbt_dynar_t types, FILE *file)
526 fprintf (file, " %s = (", name);
527 for (i = xbt_dynar_length(types); i > 0; i--) {
528 char *type = *(char**)xbt_dynar_get_ptr(types, i - 1);
529 fprintf (file, "\"%s\"", type);
533 fprintf (file, ");\n");
536 xbt_dynar_free (&types);
539 static void output_categories (const char *name, xbt_dynar_t cats, FILE *file)
542 fprintf (file, " values = (");
543 for (i = xbt_dynar_length(cats); i > 0; i--) {
544 char *cat = *(char**)xbt_dynar_get_ptr(cats, i - 1);
545 fprintf (file, "\"%s%s\"", name, cat);
549 fprintf (file, ");\n");
552 xbt_dynar_free (&cats);
555 static void uncat_configuration (FILE *file)
557 //register NODE and EDGE types
558 output_types ("node", TRACE_get_node_types(), file);
559 output_types ("edge", TRACE_get_edge_types(), file);
560 fprintf (file, "\n");
562 //configuration for all nodes
565 " type = \"square\";\n"
566 " size = \"power\";\n"
567 " values = (\"power_used\");\n"
570 " type = \"rhombus\";\n"
571 " size = \"bandwidth\";\n"
572 " values = (\"bandwidth_used\");\n"
577 static void cat_configuration (FILE *file)
579 //register NODE and EDGE types
580 output_types ("node", TRACE_get_node_types(), file);
581 output_types ("edge", TRACE_get_edge_types(), file);
582 fprintf (file, "\n");
584 //configuration for all nodes
587 " type = \"square\";\n"
588 " size = \"power\";\n");
589 output_categories ("p", TRACE_get_categories(), file);
593 " type = \"rhombus\";\n"
594 " size = \"bandwidth\";\n");
595 output_categories ("b", TRACE_get_categories(), file);
596 fprintf (file, " };\n");
600 static void generate_uncat_configuration (const char *output, const char *name, int brackets)
602 if (output && strlen(output) > 0){
603 FILE *file = fopen (output, "w");
605 THROWF (system_error, 1, "Unable to open file (%s) for writing %s graph "
606 "configuration (uncategorized).", output, name);
609 if (brackets) fprintf (file, "{\n");
610 uncat_configuration (file);
611 if (brackets) fprintf (file, "}\n");
616 static void generate_cat_configuration (const char *output, const char *name, int brackets)
618 if (output && strlen(output) > 0){
619 //check if we do have categories declared
620 if (xbt_dict_is_empty(created_categories)){
621 XBT_INFO("No categories declared, ignoring generation of %s graph configuration", name);
625 FILE *file = fopen (output, "w");
627 THROWF (system_error, 1, "Unable to open file (%s) for writing %s graph "
628 "configuration (categorized).", output, name);
631 if (brackets) fprintf (file, "{\n");
632 cat_configuration (file);
633 if (brackets) fprintf (file, "}\n");
638 void TRACE_generate_triva_uncat_conf (void)
640 generate_uncat_configuration (TRACE_get_triva_uncat_conf (), "triva", 1);
643 void TRACE_generate_triva_cat_conf (void)
645 generate_cat_configuration (TRACE_get_triva_cat_conf(), "triva", 1);
648 void TRACE_generate_viva_uncat_conf (void)
650 generate_uncat_configuration (TRACE_get_viva_uncat_conf (), "viva", 0);
653 void TRACE_generate_viva_cat_conf (void)
655 generate_cat_configuration (TRACE_get_viva_cat_conf(), "viva", 0);
658 static int previous_trace_state = -1;
660 void instr_pause_tracing (void)
662 previous_trace_state = trace_enabled;
663 if (!TRACE_is_enabled()){
664 XBT_DEBUG ("Tracing is already paused, therefore do nothing.");
666 XBT_DEBUG ("Tracing is being paused.");
669 XBT_DEBUG ("Tracing is paused.");
672 void instr_resume_tracing (void)
674 if (TRACE_is_enabled()){
675 XBT_DEBUG ("Tracing is already running while trying to resume, therefore do nothing.");
677 XBT_DEBUG ("Tracing is being resumed.");
680 if (previous_trace_state != -1){
681 trace_enabled = previous_trace_state;
685 XBT_DEBUG ("Tracing is resumed.");
686 previous_trace_state = -1;
690 #undef OPT_TRACING_PLATFORM
691 #undef OPT_TRACING_TOPOLOGY
692 #undef OPT_TRACING_SMPI
693 #undef OPT_TRACING_SMPI_GROUP
694 #undef OPT_TRACING_CATEGORIZED
695 #undef OPT_TRACING_UNCATEGORIZED
696 #undef OPT_TRACING_MSG_PROCESS
697 #undef OPT_TRACING_FILENAME
698 #undef OPT_TRACING_BUFFER
699 #undef OPT_TRACING_ONELINK_ONLY
700 #undef OPT_TRACING_DISABLE_DESTROY
701 #undef OPT_TRACING_BASIC
702 #undef OPT_TRACING_COMMENT
703 #undef OPT_TRACING_COMMENT_FILE
704 #undef OPT_TRIVA_UNCAT_CONF
705 #undef OPT_TRIVA_CAT_CONF
706 #undef OPT_VIVA_UNCAT_CONF
707 #undef OPT_VIVA_CAT_CONF
709 #endif /* HAVE_TRACING */