X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/33eca433c4f055cdfcc55e46d125f8708e1848c7..49514a74128a35ed4c0ba6dc190d70d35dd9fd7a:/src/mc/mc_global.c diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index 126622e77f..4614ac9c77 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -27,15 +27,12 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, "Logging specific to MC (global)"); -double *mc_time = NULL; - -#ifdef HAVE_MC int user_max_depth_reached = 0; /* MC global data structures */ mc_state_t mc_current_state = NULL; char mc_replay_mode = FALSE; - +double *mc_time = NULL; __thread mc_comparison_times_t mc_comp_times = NULL; __thread double mc_snapshot_comparison_time; mc_stats_t mc_stats = NULL; @@ -765,6 +762,18 @@ void MC_process_clock_add(smx_process_t process, double amount) mc_time[process->pid] += amount; } +double MC_process_clock_get(smx_process_t process) +{ + if (mc_time) { + if (process != NULL) + return mc_time[process->pid]; + else + return -1; + } else { + return 0; + } +} + void MC_automaton_load(const char *file) { @@ -832,16 +841,3 @@ void MC_dump_stacks(FILE* file) if (raw_mem_set) MC_SET_MC_HEAP; } -#endif - -double MC_process_clock_get(smx_process_t process) -{ - if (mc_time) { - if (process != NULL) - return mc_time[process->pid]; - else - return -1; - } else { - return 0; - } -}