X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b2018541e799348bb66131a39284ea8d4cfc49f9..b92ccbf24de98e83153f96b440ec559fc739e295:/src/simix/popping_generated.cpp diff --git a/src/simix/popping_generated.cpp b/src/simix/popping_generated.cpp index c536c05ff5..f518d0ae3e 100644 --- a/src/simix/popping_generated.cpp +++ b/src/simix/popping_generated.cpp @@ -4,7 +4,7 @@ /* DO NOT EVER CHANGE THIS FILE */ /* */ /* change simcalls specification in src/simix/simcalls.in */ -/* Copyright (c) 2014-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2022. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -14,6 +14,7 @@ * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :) */ +#include #include #include #if SIMGRID_HAVE_MC @@ -23,20 +24,12 @@ #include "src/kernel/actor/SimcallObserver.hpp" #include "src/kernel/context/Context.hpp" -XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping); +XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix); using simgrid::simix::Simcall; /** @brief Simcalls' names (generated from src/simix/simcalls.in) */ constexpr std::array simcall_names{{ "Simcall::NONE", - "Simcall::COMM_RECV", - "Simcall::COMM_IRECV", - "Simcall::COMM_SEND", - "Simcall::COMM_ISEND", - "Simcall::COMM_TEST", - "Simcall::COMM_TESTANY", - "Simcall::COMM_WAITANY", - "Simcall::COMM_WAIT", "Simcall::RUN_KERNEL", "Simcall::RUN_BLOCKING", }}; @@ -49,48 +42,11 @@ constexpr std::array simcall_names{{ void simgrid::kernel::actor::ActorImpl::simcall_handle(int times_considered) { XBT_DEBUG("Handling simcall %p: %s", &simcall_, SIMIX_simcall_name(simcall_)); - simcall_.mc_value_ = times_considered; if (simcall_.observer_ != nullptr) simcall_.observer_->prepare(times_considered); if (context_->wannadie()) return; switch (simcall_.call_) { - case Simcall::COMM_RECV: - simcall_HANDLER_comm_recv(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8])); - break; - - case Simcall::COMM_IRECV: - simgrid::simix::marshal>(simcall_.result_, simcall_HANDLER_comm_irecv(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]))); - simcall_answer(); - break; - - case Simcall::COMM_SEND: - simcall_HANDLER_comm_send(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8]), simgrid::simix::unmarshal(simcall_.args_[9])); - break; - - case Simcall::COMM_ISEND: - simgrid::simix::marshal>(simcall_.result_, simcall_HANDLER_comm_isend(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2]), simgrid::simix::unmarshal(simcall_.args_[3]), simgrid::simix::unmarshal(simcall_.args_[4]), simgrid::simix::unmarshal(simcall_.args_[5]), simgrid::simix::unmarshal(simcall_.args_[6]), simgrid::simix::unmarshal(simcall_.args_[7]), simgrid::simix::unmarshal(simcall_.args_[8]), simgrid::simix::unmarshal(simcall_.args_[9]), simgrid::simix::unmarshal(simcall_.args_[10]))); - simcall_answer(); - break; - - case Simcall::COMM_TEST: - simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_comm_test(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]))); - simcall_answer(); - break; - - case Simcall::COMM_TESTANY: - simgrid::simix::marshal(simcall_.result_, simcall_HANDLER_comm_testany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]))); - simcall_answer(); - break; - - case Simcall::COMM_WAITANY: - simcall_HANDLER_comm_waitany(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1]), simgrid::simix::unmarshal(simcall_.args_[2])); - break; - - case Simcall::COMM_WAIT: - simcall_HANDLER_comm_wait(&simcall_, simgrid::simix::unmarshal(simcall_.args_[0]), simgrid::simix::unmarshal(simcall_.args_[1])); - break; - case Simcall::RUN_KERNEL: SIMIX_run_kernel(simgrid::simix::unmarshal const*>(simcall_.args_[0])); simcall_answer();