Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] avoid Paje inconsistencies by forcing the generation of a time-ordered trace...
authorschnorr <Lucas.Schnorr@imag.fr>
Tue, 3 Apr 2012 08:51:19 +0000 (10:51 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Tue, 3 Apr 2012 08:51:19 +0000 (10:51 +0200)
details:
- this might come with a performance penalty.
If so, set tracing/buffer to zero, and sort the trace afterward.

src/instr/instr_config.c

index ce36bb4..c9de3a3 100644 (file)
@@ -264,7 +264,7 @@ void TRACE_global_init(int *argc, char **argv)
                    NULL, NULL);
 
   /* tracing buffer */
                    NULL, NULL);
 
   /* tracing buffer */
-  int default_buffer = 0;
+  int default_buffer = 1;
   xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_BUFFER,
                    "Buffer trace events to put them in temporal order.",
                    xbt_cfgelm_int, &default_buffer, 0, 1,
   xbt_cfg_register(&_surf_cfg_set, OPT_TRACING_BUFFER,
                    "Buffer trace events to put them in temporal order.",
                    xbt_cfgelm_int, &default_buffer, 0, 1,