X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9ae8726744b95dd29d8a68ddc3010781ef09a502..67c7181f9993f11534086e9f9e4f2f42408731f3:/src/mc/mc_comm_pattern.hpp diff --git a/src/mc/mc_comm_pattern.hpp b/src/mc/mc_comm_pattern.hpp index 83803216bb..401c68fd19 100644 --- a/src/mc/mc_comm_pattern.hpp +++ b/src/mc/mc_comm_pattern.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2021. 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. */ @@ -7,9 +7,7 @@ #define SIMGRID_MC_COMM_PATTERN_H #include - -#include "smpi/smpi.h" -#include "src/mc/mc_state.hpp" +#include "src/mc/mc_pattern.hpp" namespace simgrid { namespace mc { @@ -46,26 +44,19 @@ extern XBT_PRIVATE std::vector> static inline simgrid::mc::CallType MC_get_call_type(const s_smx_simcall* req) { using simgrid::mc::CallType; + using simgrid::simix::Simcall; switch (req->call_) { - case SIMCALL_COMM_ISEND: + case Simcall::COMM_ISEND: return CallType::SEND; - case SIMCALL_COMM_IRECV: + case Simcall::COMM_IRECV: return CallType::RECV; - case SIMCALL_COMM_WAIT: + case Simcall::COMM_WAIT: return CallType::WAIT; - case SIMCALL_COMM_WAITANY: + case Simcall::COMM_WAITANY: return CallType::WAITANY; default: return CallType::NONE; } } -XBT_PRIVATE void MC_handle_comm_pattern(simgrid::mc::CallType call_type, smx_simcall_t request, int value, - int backtracking); - -XBT_PRIVATE void MC_restore_communications_pattern(simgrid::mc::State* state); - -XBT_PRIVATE void MC_state_copy_incomplete_communications_pattern(simgrid::mc::State* state); -XBT_PRIVATE void MC_state_copy_index_communications_pattern(simgrid::mc::State* state); - #endif