#define OPT_TRACING_DISABLE_LINK "tracing/disable_link"
#define OPT_TRACING_DISABLE_POWER "tracing/disable_power"
-static int trace_enabled;
+static int trace_enabled = 0;
static int trace_platform;
static int trace_platform_topology;
static int trace_smpi_enabled;
int TRACE_start()
{
- TRACE_getopts();
+ if (TRACE_is_configured())
+ TRACE_getopts();
// tracing system must be:
// - enabled (with --cfg=tracing:yes)
// - already configured (TRACE_global_init already called)
- if (TRACE_is_enabled() && TRACE_is_configured()) {
+ if (TRACE_is_enabled()) {
+
XBT_DEBUG("Tracing starts");
/* init the tracing module to generate the right output */