- if (!TRACE_is_configured()) {
- THROW0(tracing_error, TRACE_ERROR_START,
- "TRACE_start should be called after SimGrid initialization functions.");
- return 0;
- }
-
- if (!TRACE_is_enabled()){
- return 0;
- }
-
- if (IS_TRACING) { /* what? trace is already active... ignore.. */
- THROW0(tracing_error, TRACE_ERROR_START,
- "TRACE_start called, but tracing is already active.");
+ // tracing system must be:
+ // - enabled (with --cfg=tracing:1)
+ // - already configured (TRACE_global_init already called)
+ if (!(TRACE_is_enabled() && TRACE_is_configured())){