X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9dbeb2372ad9a123d0558132ebb6e003e10aa641..3203ed1f4fb6f4617e94d5351661ba07e8b8f833:/src/instr/instr_config.c?ds=sidebyside diff --git a/src/instr/instr_config.c b/src/instr/instr_config.c index f955263942..978762ed2e 100644 --- a/src/instr/instr_config.c +++ b/src/instr/instr_config.c @@ -1,10 +1,10 @@ -/* Copyright (c) 2010-2014. The SimGrid Team. +/* Copyright (c) 2010-2015. 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 "instr/instr_private.h" +#include "src/instr/instr_private.h" #include "simgrid/sg_config.h" #include "surf/surf.h" @@ -360,6 +360,10 @@ char *TRACE_get_viva_cat_conf (void) void TRACE_global_init(int *argc, char **argv) { + static int is_initialised = 0; + if (is_initialised) return; + + is_initialised = 1; /* name of the tracefile */ xbt_cfg_register(&_sg_cfg_set, OPT_TRACING_FILENAME, "Trace file created by the instrumented SimGrid.", @@ -484,7 +488,7 @@ void TRACE_global_init(int *argc, char **argv) /* format -- Switch the ouput format of Tracing */ xbt_cfg_register(&_sg_cfg_set, OPT_TRACING_FORMAT, - "(smpi only for now) Switch the ouput format of Tracing", + "(smpi only for now) Switch the output format of Tracing", xbt_cfgelm_string, 1, 1, NULL, NULL); xbt_cfg_setdefault_string(_sg_cfg_set, OPT_TRACING_FORMAT, "Paje");