X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15af6f9bf88ff4bfdd0b8e87039e666ee092fbfe..808bc801011b8291383a7fb87669eb67f46f3a07:/src/mc/mc_base.cpp diff --git a/src/mc/mc_base.cpp b/src/mc/mc_base.cpp index df068fa76f..aa6f7afdbf 100644 --- a/src/mc/mc_base.cpp +++ b/src/mc/mc_base.cpp @@ -20,12 +20,12 @@ #include "mc/mc.h" #include "src/mc/mc_protocol.h" -#include "src/simix/Synchro.h" -#include "src/simix/SynchroIo.hpp" -#include "src/simix/SynchroComm.hpp" -#include "src/simix/SynchroRaw.hpp" -#include "src/simix/SynchroSleep.hpp" -#include "src/simix/SynchroExec.hpp" +#include "src/kernel/activity/Synchro.h" +#include "src/kernel/activity/SynchroIo.hpp" +#include "src/kernel/activity/SynchroComm.hpp" +#include "src/kernel/activity/SynchroRaw.hpp" +#include "src/kernel/activity/SynchroSleep.hpp" +#include "src/kernel/activity/SynchroExec.hpp" #if HAVE_MC #include "src/mc/mc_request.h" @@ -86,15 +86,16 @@ bool request_is_enabled(smx_simcall_t req) case SIMCALL_COMM_WAIT: { /* FIXME: check also that src and dst processes are not suspended */ - simgrid::simix::Comm *act = static_cast(simcall_comm_wait__get__comm(req)); + simgrid::kernel::activity::Comm *act = + static_cast(simcall_comm_wait__get__comm(req)); #if HAVE_MC // Fetch from MCed memory: // HACK, type puning - simgrid::mc::Remote temp_comm; + simgrid::mc::Remote temp_comm; if (mc_model_checker != nullptr) { mc_model_checker->process().read(temp_comm, remote(act)); - act = static_cast(temp_comm.getBuffer()); + act = static_cast(temp_comm.getBuffer()); } #endif @@ -113,7 +114,8 @@ bool request_is_enabled(smx_simcall_t req) case SIMCALL_COMM_WAITANY: { xbt_dynar_t comms; - simgrid::simix::Comm *act = static_cast(simcall_comm_wait__get__comm(req)); + simgrid::kernel::activity::Comm *act = + static_cast(simcall_comm_wait__get__comm(req)); #if HAVE_MC s_xbt_dynar_t comms_buffer; @@ -141,15 +143,15 @@ bool request_is_enabled(smx_simcall_t req) #if HAVE_MC // Fetch act from MCed memory: // HACK, type puning - simgrid::mc::Remote temp_comm; + simgrid::mc::Remote temp_comm; if (mc_model_checker != nullptr) { memcpy(&act, buffer + comms->elmsize * index, sizeof(act)); mc_model_checker->process().read(temp_comm, remote(act)); - act = static_cast(temp_comm.getBuffer()); + act = static_cast(temp_comm.getBuffer()); } else #endif - act = xbt_dynar_get_as(comms, index, simgrid::simix::Comm*); + act = xbt_dynar_get_as(comms, index, simgrid::kernel::activity::Comm*); if (act->src_proc && act->dst_proc) return true; } @@ -162,10 +164,10 @@ bool request_is_enabled(smx_simcall_t req) case SIMCALL_MUTEX_LOCK: { smx_mutex_t mutex = simcall_mutex_lock__get__mutex(req); #if HAVE_MC - s_smx_mutex_t temp_mutex; + simgrid::mc::Remote temp_mutex; if (mc_model_checker != nullptr) { - mc_model_checker->process().read(&temp_mutex, remote(mutex)); - mutex = &temp_mutex; + mc_model_checker->process().read(temp_mutex.getBuffer(), remote(mutex)); + mutex = temp_mutex.getBuffer(); } #endif